/* AURORA AI OCR home: night sky with a slow aurora; short promise + one button; five glass squares on the first screen */
:root {
  --night: #04060c;
  --night-2: #0a1020;
  --ink: #eef3ff;
  --ink-soft: #aab6cf;
  --ink-faint: #8b97b1;
  --glass: rgba(255, 255, 255, .055);
  --glass-edge: rgba(255, 255, 255, .14);
  --green: #3dffb4;
  --teal: #29d3ff;
  --violet: #9b6bff;
  --display: "Syne", "Segoe UI", sans-serif;
  --body: "Figtree", "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

* { box-sizing: border-box; }
html { background: var(--night); scrollbar-color: #2a3550 var(--night); }
body { margin: 0; min-height: 100%; background: var(--night); color: var(--ink); font: 400 1rem/1.6 var(--body); overflow-x: hidden; }
::selection { background: rgba(61, 255, 180, .28); color: #fff; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 8px; }

/* ---------- aurora sky ---------- */
.sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 110%, var(--night-2), var(--night) 60%); }
.band { position: absolute; width: 90vmax; height: 50vmax; border-radius: 50%; mix-blend-mode: screen; opacity: .55; will-change: transform; }
.band.b1 { left: -20vmax; top: -18vmax; background: radial-gradient(closest-side, rgba(61,255,180,.55), rgba(61,255,180,0)); animation: drift1 26s ease-in-out infinite alternate; }
.band.b2 { right: -25vmax; top: -10vmax; background: radial-gradient(closest-side, rgba(155,107,255,.5), rgba(155,107,255,0)); animation: drift2 32s ease-in-out infinite alternate; }
.band.b3 { left: 10vmax; top: 8vmax; width: 70vmax; height: 26vmax; background: radial-gradient(closest-side, rgba(41,211,255,.38), rgba(41,211,255,0)); animation: drift3 22s ease-in-out infinite alternate; }
.band.b4 { left: 30vmax; top: 30vmax; width: 60vmax; height: 30vmax; opacity: .3; background: radial-gradient(closest-side, rgba(255,111,181,.35), rgba(255,111,181,0)); animation: drift2 38s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate3d(14vmax, 6vmax, 0) rotate(12deg) scale(1.15); } }
@keyframes drift2 { to { transform: translate3d(-16vmax, 8vmax, 0) rotate(-14deg) scale(1.1); } }
@keyframes drift3 { to { transform: translate3d(-8vmax, -5vmax, 0) rotate(8deg) scaleX(1.3); } }
.stars { position: absolute; inset: 0; opacity: .5;
  background-image:
    radial-gradient(1px 1px at 12% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 14%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 44% 8%, #cfe 50%, transparent 51%),
    radial-gradient(1px 1px at 91% 41%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 63%, #dfe 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 33%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 30% 45%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 85% 75%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 20% 88%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 55% 70%, #eaf 50%, transparent 51%); }

/* ---------- page ---------- */
.page { position: relative; z-index: 1; max-width: 76rem; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px));
  padding-block: 0 36px; display: grid; gap: clamp(28px, 4.5vh, 48px); }
header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 20px; }
.mark { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 12px; font: 700 1.02rem var(--display); letter-spacing: .03em; text-decoration: none; }
.mark .tagline { font: 500 .86rem var(--body); letter-spacing: .01em; color: var(--ink-faint); padding-left: 12px; border-left: 1px solid rgba(255,255,255,.18); }
.mark i { font-style: normal; color: var(--green); }
.lang { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-edge);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.lang a { font: 600 .74rem var(--body); letter-spacing: .08em; color: var(--ink-faint); text-decoration: none; border-radius: 999px; padding: 6px 12px; transition: color .2s, background .2s; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current="true"] { color: var(--night); background: var(--ink); }

/* hero: the promise, read in by a scan line */
.hero { position: relative; display: grid; justify-items: start; padding-top: clamp(16px, 7vh, 72px); padding-bottom: clamp(0px, 2vh, 16px); }
h1 { position: relative; margin: 0; max-width: none; font: 800 clamp(2rem, 4.1vw, 3.9rem)/1.06 var(--display); letter-spacing: -.03em; text-wrap: balance; }
h1 .line { display: block; }
/* "machine learning" on wide screens, "ML" on phones so the coloured line stays one line */
h1 .w.short { display: none; }
h1 .w { display: inline-block; animation: read 1s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--i) * 80ms + 200ms); }
h1 .w.hl { color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(100deg, var(--green), var(--teal) 50%, var(--violet)); }
@keyframes read { from { filter: blur(12px); opacity: .25; } to { filter: blur(0); opacity: 1; } }
.scan { position: absolute; top: -4%; bottom: -4%; left: 0; width: 3px; border-radius: 3px; pointer-events: none;
  background: var(--green); box-shadow: 0 0 18px 4px rgba(61,255,180,.55), 0 0 60px 12px rgba(41,211,255,.25);
  opacity: 0; animation: scan 1.4s cubic-bezier(.45, 0, .2, 1) .15s both; }
@keyframes scan { 0% { left: 0; opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.lede { margin: 0; max-width: 62rem; font-size: clamp(1rem, 1.6vw, 1.18rem); line-height: 1.5; color: var(--ink-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 6px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; text-decoration: none;
  font: 600 1rem var(--body); color: var(--night); background: linear-gradient(100deg, var(--green), var(--teal));
  box-shadow: 0 12px 30px -10px rgba(61,255,180,.55); transition: transform .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(61,255,180,.75); }
.btn .go { transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.btn:hover .go { transform: translateX(4px); }
.link2 { font-weight: 500; color: var(--ink-soft); text-underline-offset: 4px; text-decoration-color: rgba(255,255,255,.3); }
.link2:hover { color: var(--ink); }

/* ---------- glass squares ---------- */
/* two audiences side by side: three squares each */
.groups { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 28px; align-items: start; }
.group { display: grid; gap: 12px; min-width: 0; }
.group h2 { margin: 0; font: 600 .95rem var(--body); color: var(--ink-soft); }
.g-biz { position: relative; padding-left: 28px; border-left: 1px solid rgba(255,255,255,.08); }
/* 05.11 хозяин: «Для людей» — четыре квадрата в одну строку; «Для бизнеса» — своей секцией под образцами */
.groups.odna { grid-template-columns: 1fr; }
.groups.odna .g-biz { padding-left: 0; border-left: 0; }
.g-people .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.products-biz { margin-top: 8px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 14px; perspective: 900px; }
.api { justify-self: start; font-weight: 600; color: var(--teal); text-decoration: none; padding: 4px 0; }
.api span { display: inline-block; transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.api:hover span { transform: translateX(4px); }
.tile { position: relative; min-width: 0; min-height: clamp(10.5rem, 13vw, 12rem); border-radius: 22px; padding: 18px; isolation: isolate;
  display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink);
  background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.02) 55%), var(--glass);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 24px 50px -24px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.12);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s cubic-bezier(.16, 1, .3, 1), box-shadow .4s;
  animation: tileIn .8s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(.5s + var(--n) * 70ms); }
@keyframes tileIn { from { opacity: .15; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.tile::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: -1; pointer-events: none;
  background: conic-gradient(from var(--ang), var(--glass-edge) 0 60%, var(--green) 70%, var(--teal) 76%, var(--violet) 82%, var(--glass-edge) 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: edge 7s linear infinite; animation-delay: calc(var(--n) * -1.4s); }
@keyframes edge { to { --ang: 360deg; } }
.tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 30%), rgba(61,255,180,.16), rgba(155,107,255,.08) 40%, transparent 70%); }
.tile.link:hover::after, .tile.link:focus-visible::after { opacity: 1; }
.tile.link:hover { box-shadow: 0 34px 70px -28px rgba(0,0,0,.9), 0 0 0 1px rgba(61,255,180,.2), inset 0 1px 0 rgba(255,255,255,.18); }
.tile:not(.link) { cursor: default; }
.tile:not(.link) .ico { color: var(--ink-faint); }
.ico { width: 38px; height: 38px; color: var(--green); flex: none; }
.ico svg { width: 100%; height: 100%; display: block; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.txt { display: grid; gap: 6px; margin-top: auto; min-width: 0; }
.tile h3 { margin: 0; font: 700 clamp(1.02rem, 1.4vw, 1.22rem)/1.12 var(--display); letter-spacing: -.01em; text-wrap: balance; }
.tile h3 .go { display: inline-block; color: var(--green); transition: transform .4s cubic-bezier(.16, 1, .3, 1); }
.tile.link:hover h3 .go { transform: translateX(5px); }
.tile p { margin: 0; font-size: .95rem; line-height: 1.4; color: var(--ink-soft); }
/* the square says what it does; the brand is the small print under it, like a tool shelf */
/* the one product people can use today stands out */
.tile.primary { background: linear-gradient(160deg, rgba(61,255,180,.16), rgba(41,211,255,.05) 60%), var(--glass); }
.tile.primary h3 { color: #fff; }
.tag { position: absolute; top: 16px; right: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px;
  font: 600 .66rem var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); border: 1px solid var(--glass-edge); }
.tag.live { color: var(--green); border-color: rgba(61,255,180,.35); }
.tag.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2.4s ease-in-out infinite; }
.tag.more { color: var(--teal); border-color: rgba(41,211,255,.35); }
@keyframes pulse { 50% { opacity: .35; } }
.stage { margin: 14px 0 0; font-size: .88rem; color: var(--ink-faint); }

/* ---------- footer ---------- */
footer { font-size: .82rem; line-height: 1.8; color: var(--ink-faint); border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; margin-top: 12px; }
footer b { color: var(--ink-soft); font-weight: 600; }
footer a { text-decoration-color: rgba(255,255,255,.25); text-underline-offset: 3px; }
footer a:hover { color: var(--ink); }

@media (max-width: 1100px) {
  .groups { grid-template-columns: 1fr; }
  .g-biz { padding-left: 0; border-left: 0; }
  .g-people .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* phone: squares become compact rows so several fit on the first screen */
@media (max-width: 720px) {
  .tiles, .g-biz .tiles, .g-people .tiles { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 10px; }
  .tile { min-height: 0; flex-direction: row; align-items: flex-start; gap: 14px; padding: 14px 16px; border-radius: 18px; }
  .ico { width: 30px; height: 30px; margin-top: 2px; }
  .txt { margin-top: 0; padding-right: 88px; }
  .tile p { font-size: .88rem; }
  .tag { top: 14px; right: 14px; }
  .btn { width: 100%; justify-content: center; }
  .mark { flex-direction: column; }
  .mark .tagline { padding-left: 0; border-left: 0; font-size: .78rem; }
  h1 { font-size: min(2.4rem, 8.4vw); }
  h1 .w.long { display: none; }
  h1 .w.short { display: inline-block; }
}
@media (prefers-reduced-motion: reduce) {
  .band, .tile::before, .tag.live::before, h1 .w, .tile { animation: none; }
  .scan { display: none; }
  .tile, .btn { transition: none; }
}

/* ---------- product pages (OCR) ---------- */
.back { font: 500 .9rem var(--body); color: var(--ink-faint); text-decoration: none; }
.back:hover { color: var(--ink); }
.prod-lede { margin: 18px 0 0; max-width: 44rem; font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.55; color: var(--ink-soft); }
/* the letters the model tells apart; shape-twins are tinted */
.strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 8px; }
.strip span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 12px; font: 600 1.4rem var(--body);
  background: var(--glass); border: 1px solid var(--glass-edge); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.strip span.pair { color: var(--green); border-color: rgba(61,255,180,.35); background: rgba(61,255,180,.08); }
.panel { position: relative; border-radius: 22px; padding: clamp(18px, 3vw, 28px); isolation: isolate;
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02) 55%), var(--glass);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 24px 50px -24px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.12); border: 1px solid var(--glass-edge); }
.sec h2 { margin: 0 0 14px; font: 700 clamp(1.3rem, 2.4vw, 1.8rem)/1.15 var(--display); letter-spacing: -.01em; }
.sec p { margin: 0 0 12px; max-width: 46rem; color: var(--ink-soft); }
.scores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.score { display: grid; gap: 4px; }
.score b { font: 800 clamp(2.2rem, 5vw, 3.4rem)/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums;
  color: transparent; -webkit-background-clip: text; background-clip: text; background-image: linear-gradient(100deg, var(--green), var(--teal) 60%, var(--violet)); }
.score span { color: var(--ink-soft); font-size: .95rem; }
dl.spec { display: grid; grid-template-columns: minmax(10rem, auto) 1fr; gap: 10px 22px; margin: 0; }
dl.spec dt { color: var(--ink-faint); font-size: .92rem; }
dl.spec dd { margin: 0; min-width: 0; font-variant-numeric: tabular-nums; }
.note { margin: 18px 0 0; padding-top: 14px; border-top: 1px dashed rgba(255,255,255,.14); font-size: .9rem; color: var(--ink-faint); }
.note b { color: var(--ink-soft); font-weight: 600; }
.sec a.more-link { color: var(--green); font-weight: 600; text-decoration: none; }
.sec a.more-link:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 720px) {
  .scores { grid-template-columns: 1fr; }
  dl.spec { grid-template-columns: 1fr; gap: 2px 0; }
  dl.spec dd { margin-bottom: 10px; }
}
/* product page title: big product name, smaller promise under it */
.prod h1 .line + .line { margin-top: .25em; font-size: .56em; line-height: 1.15; }
h1 { overflow-wrap: break-word; hyphens: auto; }
.scores.four { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 0; }
.scores.four { gap: 18px 24px; }
.scores.four b { font-size: clamp(1.6rem, 2.5vw, 2.15rem); white-space: nowrap; }
.sec p b { color: var(--ink); font-weight: 600; }
@media (max-width: 1000px) { .scores.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .scores.four { grid-template-columns: 1fr; } }
/* offer cards on a service page */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card h3 { margin: 0 0 8px; font: 700 1.1rem/1.2 var(--display); }
.card p { margin: 0; font-size: .95rem; line-height: 1.5; color: var(--ink-soft); }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
/* letter strip reels (strip.js) */
.strip span { position: relative; overflow: hidden; }
.strip .reel { position: absolute; inset: 0 0 auto; display: flex; flex-direction: column; font-style: normal; will-change: transform; }
.strip .reel b { height: var(--h); display: grid; place-items: center; font: inherit; }

/* ---------- shared site frame: header menu, footer columns (all pages) ---------- */
.skip { position: absolute; left: -999px; top: 12px; z-index: 50; padding: 8px 14px; border-radius: 8px; background: var(--ink); color: var(--night); font-weight: 600; }
.skip:focus { left: 16px; }
.main { display: grid; gap: clamp(28px, 4.5vh, 48px); min-width: 0; }
header.top { gap: 10px 18px; }
header.top .mark { margin-right: auto; }
.nav { display: flex; gap: 2px; }
.nav a { padding: 8px 12px; border-radius: 999px; font: 500 .92rem var(--body); color: var(--ink-soft); text-decoration: none; transition: color .2s, background .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--glass); }
/* one language button with a list under it: more languages are more lines, the header stays the same */
.jazyk { position: relative; }
.jazyk summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 7px; height: 42px; padding: 0 12px 0 13px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-edge); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font: 600 .78rem var(--body); letter-spacing: .08em; color: var(--ink); transition: border-color .2s; }
.jazyk summary::-webkit-details-marker { display: none; }
.jazyk summary svg { width: 17px; height: 17px; fill: none; stroke: var(--ink-soft); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.jazyk summary .ug { width: 11px; height: 11px; stroke-width: 1.8; transition: transform .2s; }
.jazyk summary:hover, .jazyk[open] summary { border-color: rgba(61,255,180,.45); }
.jazyk[open] summary .ug { transform: rotate(180deg); }
.jazyk-spisok { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 190px; display: grid; gap: 2px; padding: 6px;
  border-radius: 14px; background: rgba(10, 16, 32, .97); border: 1px solid var(--glass-edge); box-shadow: 0 30px 60px -20px rgba(0,0,0,.9); }
.jazyk-spisok a { display: flex; align-items: baseline; gap: 12px; padding: 9px 12px; border-radius: 10px; font: 500 .94rem var(--body); color: var(--ink-soft); text-decoration: none; }
.jazyk-spisok a b { width: 1.9em; font: 600 .74rem var(--body); letter-spacing: .08em; color: var(--ink-faint); }
.jazyk-spisok a:hover { background: var(--glass); color: var(--ink); }
.jazyk-spisok a[aria-current="true"] { color: var(--ink); }
.jazyk-spisok a[aria-current="true"] b { color: var(--green); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: var(--glass); border: 1px solid var(--glass-edge); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
.menu[open] summary { border-color: rgba(61,255,180,.45); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; width: min(calc(100vw - 32px), 320px); display: grid; gap: 16px;
  padding: 18px; border-radius: 16px; background: rgba(10, 16, 32, .97); border: 1px solid var(--glass-edge); box-shadow: 0 30px 60px -20px rgba(0,0,0,.9); }
.menu-panel b { display: block; margin-bottom: 4px; font: 600 .74rem var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.menu-panel a:not(.btn) { display: block; padding: 6px 0; color: var(--ink); text-decoration: none; }
.menu-panel .btn { justify-content: center; }
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu { display: block; }
  .mark .tagline { display: none; }
}

.foot-cols { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 18px 24px; padding-bottom: 20px; margin-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.06); line-height: 1.6; }
.foot-cols b { display: block; margin-bottom: 6px; }
.foot-cols a { display: block; width: fit-content; padding: 2px 0; text-decoration: none; color: var(--ink-soft); }
.foot-cols a:hover { color: var(--ink); }
.foot-cols span { display: block; max-width: 18rem; }
@media (max-width: 760px) { .foot-cols { grid-template-columns: 1fr 1fr; } .foot-cols > :first-child { grid-column: 1 / -1; } }

/* ---------- building blocks for content pages ---------- */
.eyebrow { margin: 0 0 12px; font: 600 .76rem var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 22px; }
.btn.ghost { color: var(--ink); background: transparent; border: 1px solid var(--glass-edge); box-shadow: none; }
.btn.ghost:hover { border-color: rgba(61,255,180,.5); box-shadow: none; }
.group h2 a { text-decoration: none; color: var(--ink); }
.group h2 a .go { display: inline-block; color: var(--green); transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.group h2 a:hover .go { transform: translateX(4px); }
.group .sub { margin: -6px 0 2px; font-size: .9rem; color: var(--ink-faint); }
.layers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 28px; }
.layers > div { padding-top: 16px; border-top: 1px solid; border-image: linear-gradient(90deg, var(--green), var(--teal) 40%, transparent) 1; }
.layers h3 { margin: 0 0 6px; font: 700 1.05rem/1.25 var(--display); }
.layers p { margin: 0 0 8px; color: var(--ink-soft); font-size: .95rem; }
.layers a { color: var(--green); font-weight: 600; text-decoration: none; }
.layers a:hover { text-decoration: underline; text-underline-offset: 4px; }
.score small { margin-top: 4px; font-size: .8rem; line-height: 1.45; color: var(--ink-faint); }
.scores.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 24px; }
.scores.three b { font-size: clamp(1.8rem, 3.4vw, 2.8rem); white-space: nowrap; }
.final { display: grid; justify-items: start; }
.final h2 { margin: 0 0 8px; }
.final p { margin: 0; }
.card { display: flex; flex-direction: column; }
.card h2, .card h3 { margin: 0 0 8px; padding-right: 110px; font: 700 1.12rem/1.25 var(--display); }
.card .eyebrow { margin-bottom: 8px; padding-right: 110px; }
.card .task { color: var(--ink); font-weight: 600; margin-bottom: 6px; }
.card p + p { margin-top: 6px; }
.card .ctas { margin-top: auto; padding-top: 16px; }
.card .tag { top: 18px; right: 18px; }
.card .more-link { margin-top: auto; padding-top: 14px; color: var(--green); font-weight: 600; }
a.card { color: inherit; text-decoration: none; transition: border-color .3s, transform .3s cubic-bezier(.16, 1, .3, 1); }
a.card:hover { border-color: rgba(61,255,180,.45); transform: translateY(-2px); }
.card:target { border-color: var(--green); box-shadow: 0 0 0 1px var(--green), 0 24px 50px -24px rgba(0,0,0,.8); }
ol.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 14px; }
ol.steps li { counter-increment: s; display: grid; gap: 4px; padding: 16px; border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-edge); }
ol.steps li::before { content: counter(s, decimal-leading-zero); font: 700 .8rem var(--display); color: var(--green); }
ol.steps b { font-weight: 600; }
ol.steps span { font-size: .9rem; color: var(--ink-soft); }
ol.flow { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
ol.flow li { padding: 9px 16px; border-radius: 12px; background: var(--glass); border: 1px solid var(--glass-edge); }
ol.flow li + li::before { content: "→"; margin-right: 10px; color: var(--green); }
ul.chips { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
ul.chips li { padding: 6px 12px; border-radius: 999px; font-size: .88rem; color: var(--ink-soft); border: 1px solid var(--glass-edge); }
.faq { max-width: 48rem; }
.faq details { border-top: 1px solid rgba(255,255,255,.1); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid rgba(255,255,255,.1); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; }
.sec .note a, .card a.link2 { color: var(--ink-soft); }
@media (max-width: 900px) {
  .layers, .scores.three { grid-template-columns: 1fr; }
  .card h2, .card h3, .card .eyebrow { padding-right: 0; }
  .card .tag { position: static; align-self: flex-start; margin-bottom: 10px; }
}
/* five menu items: the tagline steps aside before the menu folds */
@media (max-width: 1500px) { header.top .mark .tagline { display: none; } }
.nav a { white-space: nowrap; }
/* number, label and note stack from the top, so labels line up across a row */
.score { align-content: start; }
ol.steps li { align-content: start; }
.founder { margin: 0 0 8px; font: 700 1.15rem/1.3 var(--display); }
.panel .founder + p { margin: 0; max-width: 52rem; color: var(--ink-soft); }

/* ---------- before / after on a real invoice (individuals and PDFit pages) ----------
   the page picture is cut into slices; the growing strips between them are one pixel row of the picture, stretched.
   all sizes are in PDF points: --k is one point at the current width */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 300; font-display: swap; src: url(/fonts/plus-jakarta-sans-300-latin.woff2) format('woff2'); }
.demo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.demo-side { padding: 18px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-edge); }
.demo-side.good { border-color: rgba(61,255,180,.35); }
.demo-cap { margin: 0 0 12px; font: 600 .76rem var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.demo-side.good .demo-cap { color: var(--green); }
.demo .inv { container-type: inline-size; max-width: 440px; margin: 0 auto; border-radius: 6px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.demo .pg { --k: calc(100cqw / 595); background: #fff; }
.demo .sl { width: calc(var(--w, 595) * var(--k)); height: calc(var(--h) * var(--k)); background: url(/img/factura.webp) no-repeat; background-size: calc(595 * var(--k)) auto; background-position: calc(var(--x, 0) * -1 * var(--k)) calc(var(--t) * -1 * var(--k)); }
.demo .mid { display: flex; align-items: flex-start; }
.demo .col { width: calc(393 * var(--k)); }
/* the right invoice grows with its text; the left one keeps its height and the text lies on top */
.demo .gr { position: relative; z-index: 1; background-size: 100% 100%; }
.demo .bad .gr { height: 0; }
.demo .g1 { background-image: url(/img/factura-f1.png); }
.demo .g2 { background-image: url(/img/factura-f2.png); }
.demo .g3 { background-image: url(/img/factura-f3.png); }
.demo .coll { width: calc(202 * var(--k)); }
.verdict { margin: 12px 0 0; font-size: .9rem; font-weight: 600; color: #ff8a9a; }
/* 05.11 хозяин: «✕ Text runs over the page…» — красным, как на странице PDFit (.sec p перекрашивал её в серый) */
.sec .demo-side .verdict { color: #ff8a9a; }
.demo-side.good .verdict, .sec .demo-side.good .verdict { color: var(--green); }
@media (max-width: 720px) { .demo { grid-template-columns: 1fr; } }
/* ---------- original font vs a substitute: one name in the invoice greeting ---------- */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/plus-jakarta-sans-700-latin.woff2) format('woff2'); }
.fontdemo { margin-top: 14px; }
@font-face { font-family: 'Lobster'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/lobster-400-latin.woff2) format('woff2'); }
.fontdemo .hola { margin: 0; padding: .5em .7em; border-radius: 10px; background: #fff; color: #00806b; font: 400 clamp(2rem, 4.6vw, 3.6rem)/1.25 'Lobster', cursive; white-space: nowrap; overflow: hidden; }
.fontdemo .bad .nm.sub { font-family: Arial, Helvetica, sans-serif; }
/* ---------- the invoice demo types by itself (demo.js), like a screen recording ---------- */
.demo .ed { white-space: pre; font-family: 'Plus Jakarta Sans', var(--body); font-weight: 300; color: #000; }
.demo .ed > div { min-height: 1em; }
.demo .e1:empty { padding-top: 0; }
.demo .e2 > div { display: flex; justify-content: space-between; }
.demo .e1 { padding: calc(6 * var(--k)) 0 0 calc(40 * var(--k)); font-size: calc(10 * var(--k)); line-height: calc(12.5 * var(--k)); }
.demo .e2 { margin: 0 calc(45.5 * var(--k)) 0 calc(30 * var(--k)); font-size: calc(7.5 * var(--k)); line-height: calc(14.5 * var(--k)); background: repeating-linear-gradient(to bottom, transparent 0 calc(13.5 * var(--k)), #d8d8d8 calc(13.5 * var(--k)) calc(14.5 * var(--k))); }
.demo .e3 { padding: 0 0 0 calc(37.5 * var(--k)); font-size: calc(8 * var(--k)); line-height: calc(12 * var(--k)); font-weight: 700; color: #fff; }
.demo .bad .ed { font-family: Arial, Helvetica, sans-serif; font-weight: 400; color: #c8102e; background: none; }
.demo .bad .e3 { font-weight: 700; color: #ff5470; }
/* the tip's own last lines are live text: on the left they slide out of the fixed box onto the next block */
.demo .bad .g3 { height: calc(34 * var(--k)); }
.demo .e3 .keep { font-family: 'Plus Jakarta Sans', var(--body); color: #fff; }
.demo .bad .e3 .keep { text-shadow: 0 0 calc(1 * var(--k)) #00534e, 0 0 calc(1 * var(--k)) #00534e, 0 0 calc(2 * var(--k)) #00534e; }
