/* The public site (backend app/landing). Tokens and fonts are the app's (styles/tokens.css, fonts/fonts.css). */

*, *::before, *::after { box-sizing: border-box; }
.l { margin: 0; min-height: 100vh; background: var(--bg); color: var(--tx); font-family: var(--font); font-size: 14px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.l a { color: inherit; text-decoration: none; }
.l a:hover { opacity: .85; }
.l button { font: inherit; cursor: pointer; color: inherit; }
.l h1, .l h2, .l h3, .l p { margin: 0; }
.l-skip { position: absolute; left: -9999px; top: 8px; z-index: 50; padding: 8px 12px; background: var(--tx); color: var(--bg); border-radius: 7px; }
.l-skip:focus { left: 8px; }
.l-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.l-ic { font-family: 'Material Symbols Outlined'; font-size: 16px; line-height: 1; font-weight: 300; font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased; }
.l-mu { color: var(--mu); }
.l-ok { color: var(--ok); }
.l-act { color: var(--act); }
.l-mono { font-family: var(--mono); font-size: 12px; }
.l-small { font-size: 12.5px; }
.l-xs { font-size: 12px; }
.l-hidden { display: none !important; }
.l-show-m { display: none; }
.l-ellipsis { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; }
.l-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.l-row--start { justify-content: flex-start; gap: 8px; }
.l-center { text-align: center; align-items: center; }
.l-center-row { display: flex; justify-content: center; }
.l-stack { display: flex; flex-direction: column; gap: 32px; }
.l-stack-s { display: flex; flex-direction: column; gap: 14px; }
.l-card { border: 1px solid var(--bd); border-radius: 12px; }

/* header */
.l-header { position: sticky; top: 0; z-index: 20; background: color-mix(in oklch, var(--bg) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--bd); }
.l-header-in { padding: 12px 32px; display: flex; align-items: center; gap: 24px; }
.l-logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; white-space: nowrap; }
.l-mark { width: 24px; height: 24px; border-radius: 7px; background: var(--tx); display: grid; place-items: center; }
.l-mark > span { width: 8px; height: 8px; border-radius: 2px; background: var(--ac); }
.l-nav { display: flex; gap: 4px; }
.l-nav a { height: 30px; padding: 0 10px; border-radius: 7px; display: flex; align-items: center; font-size: 13.5px; color: var(--mu); white-space: nowrap; }
.l-nav a:hover { color: var(--tx); background: var(--sf2); opacity: 1; }
.l-header-end { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.l-seg { display: flex; border: 1px solid var(--bd); border-radius: 7px; padding: 2px; background: var(--sf); }
.l-seg > a, .l-seg > button { height: 24px; padding: 0 8px; border: 0; border-radius: 5px; font-size: 12px; font-weight: 500; background: transparent; color: var(--mu); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.l-seg > [aria-current=true], .l-seg > [aria-pressed=true] { background: var(--sf3); color: var(--tx); }
.l-seg--l { border-radius: 9px; }
.l-seg--l > button { height: 30px; padding: 0 12px; border-radius: 7px; font-size: 12.5px; font-weight: 400; }
.l-icon-btn { width: 30px; height: 30px; border: 1px solid var(--bd); border-radius: 7px; background: var(--sf); display: grid; place-items: center; padding: 0; }
[data-t=dark] .l-ic--light, [data-t=light] .l-ic--dark { display: none; }
.l-btn { height: 36px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--bd); background: var(--sf); display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13.5px; white-space: nowrap; }
.l-header .l-btn { height: 30px; padding: 0 10px; border-radius: 7px; font-size: 12.5px; }
.l-btn--ghost { border-color: transparent; background: transparent; }
.l-btn--primary { background: var(--tx); color: var(--bg) !important; border-color: var(--tx); font-weight: 500; }
.l-btn--l { height: 44px; padding: 0 18px; border-radius: 10px; font-size: 15px; }
.l-btn--s { height: 30px; padding: 0 10px; border-radius: 7px; font-size: 12.5px; }
.l-btn--danger { background: var(--errbg); color: var(--err); border-color: transparent; font-weight: 500; }

/* hero */
.l-hero { position: relative; overflow: hidden; padding: 96px 24px 64px; text-align: center; }
.l-hero canvas, .l-cta canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; display: block; }
.l-hero-in { position: relative; max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.l-pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 4px; border: 1px solid var(--bd); border-radius: 999px; background: var(--sf); font-size: 12.5px; max-width: 100%; overflow: hidden; white-space: nowrap; }
.l-pill > span { height: 22px; padding: 0 8px; border-radius: 999px; background: var(--acbg); color: var(--act); font-weight: 500; display: inline-flex; align-items: center; }
.l h1 { font-size: 84px; line-height: 1; font-weight: 600; letter-spacing: -0.045em; text-wrap: pretty; }
.l-lead { max-width: 640px; font-size: 18px; line-height: 1.5; color: var(--mu); text-wrap: pretty; }
.l-mock { position: relative; max-width: 1100px; margin: 64px auto 0; border: 1px solid var(--bd2); border-radius: 16px; background: var(--sf); box-shadow: var(--shadow); overflow: hidden; text-align: left; }
.l-mock-bar { display: flex; align-items: center; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--bd); background: var(--sf2); }
.l-mock-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.l-mock-main { padding: 20px; border-right: 1px solid var(--bd); display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.l-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--bd); border-radius: 12px; overflow: hidden; }
.l-kpis > div { padding: 14px 16px; border-right: 1px solid var(--bd); display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 12px; }
.l-kpis > div:last-child { border-right: 0; }
.l-kpis b { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.l-chart { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.l-bars { width: 100%; height: 120px; display: block; }
.l-bar-t { fill: var(--tx); opacity: .85; }
.l-bar-m { fill: var(--ac); }
.l-mock-feed { padding: 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.l-mock-feed [data-feed] { display: flex; flex-direction: column; gap: 10px; }
.l-feed { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px; border: 1px solid var(--bd); border-radius: 9px; background: var(--bg); }
.l-feed.l-in { animation: l-in .3s ease-out; }
.l-feed > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.l-feed b, .l-feed .l-mu { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l-feed b { font-size: 13px; font-weight: 500; }
.l-feed .l-mu { font-size: 12px; }
.l-feed-ic { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; }
.l-tone-ok { background: var(--okbg); color: var(--ok); }
.l-tone-ac { background: var(--acbg); color: var(--act); }
.l-tone-warn { background: var(--warnbg); color: var(--warn); }
.l-tone-err { background: var(--errbg); color: var(--err); }
.l-tone-mu { background: var(--sf2); color: var(--mu); }
@keyframes l-in { from { opacity: 0; transform: translateY(-6px) } to { opacity: 1; transform: none } }

/* sections */
.l-sect { max-width: 1200px; margin: 0 auto; padding: 64px 24px; }
.l-h2 { font-size: 44px; line-height: 1.1; font-weight: 600; letter-spacing: -0.035em; }
.l-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); border: 1px solid var(--bd); border-radius: 16px; overflow: hidden; background: var(--sf); }
.l-steps > div { padding: 28px; border-right: 1px solid var(--bd); display: flex; flex-direction: column; gap: 10px; }
.l-steps > div:last-child { border-right: 0; }
.l-steps b { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.l-steps .l-mu { font-size: 14px; line-height: 1.5; }
.l-statement { max-width: 1000px; text-align: center; }
.l-statement p { font-size: 44px; line-height: 1.1; font-weight: 600; letter-spacing: -0.035em; text-wrap: pretty; }
.l-tabs { display: flex; border: 1px solid var(--bd); border-radius: 10px; padding: 3px; background: var(--sf); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.l-tabs button { height: 36px; padding: 0 14px; border: 0; border-radius: 8px; font-size: 13.5px; display: flex; align-items: center; gap: 8px; background: transparent; color: var(--mu); white-space: nowrap; }
.l-tabs button[aria-selected=true] { background: var(--sf3); color: var(--tx); }
.l-feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; align-items: center; }
.l-feature[hidden] { display: none; }
.l-feature-text { display: flex; flex-direction: column; gap: 16px; padding: 8px; }
.l-feature-text h3 { font-size: 28px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
.l-feature-text p { font-size: 16px; line-height: 1.6; text-wrap: pretty; }
.l-feature-text .l-btn { align-self: flex-start; }
.l-points > div { padding: 10px 0; border-top: 1px solid var(--bd); font-size: 14px; }
.l-feature-demo { border: 1px solid var(--bd2); border-radius: 16px; background: var(--sf); padding: 20px; display: flex; flex-direction: column; gap: 12px; min-height: 340px; }
.l-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.l-post { border: 1px solid var(--bd); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); font-size: 13.5px; line-height: 1.5; }
.l-post--ac { border-color: var(--ac); }
.l-post b { font-weight: 600; }
.l-tag { display: inline-flex; align-self: flex-start; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.l-tag--line { border: 1px solid var(--bd2); color: var(--mu); align-self: auto; }
.l-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--bd); border-radius: 999px; font-size: 12.5px; }
.l-chip > i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.l-lead-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--bd); border-radius: 9px; background: var(--bg); font-size: 13px; }
.l-lead-row > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.l-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--sf3); display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.l-bubble { align-self: flex-start; max-width: 90%; padding: 10px 12px; border-radius: 14px 14px 14px 4px; background: var(--sf2); font-size: 13px; line-height: 1.5; }

/* use cases + stats */
.l-cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); border: 1px solid var(--bd); border-radius: 16px; overflow: hidden; background: var(--sf); }
.l-carousel { padding: 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; border-right: 1px solid var(--bd); min-height: 440px; }
.l-case { display: flex; flex-direction: column; gap: 28px; flex: 1; justify-content: space-between; }
.l-case-who { font-size: 40px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; margin-top: 14px; }
.l-case p { font-size: 20px; line-height: 1.5; text-wrap: pretty; }
.l-case-nav { display: flex; gap: 12px; align-items: center; justify-content: flex-end; }
.l-dots { display: flex; gap: 4px; margin-right: auto; }
.l-dots button { width: 6px; height: 6px; border: 0; border-radius: 3px; padding: 0; background: var(--bd2); transition: width .15s; }
.l-dots button[aria-current=true] { width: 20px; background: var(--tx); }
.l-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.l-stats > div { padding: 28px; border-bottom: 1px solid var(--bd); border-right: 1px solid var(--bd); display: flex; flex-direction: column; gap: 6px; justify-content: flex-end; }
.l-stats b { font-size: 36px; font-weight: 600; letter-spacing: -0.035em; }
.l-stats .l-mu { font-size: 13px; line-height: 1.5; }

/* pricing */
.l-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; align-items: stretch; }
.l-plan { border: 1px solid var(--bd); border-radius: 16px; background: var(--sf); padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.l-plan--pop { border-color: var(--tx); }
.l-plan-name { font-size: 17px; font-weight: 600; }
.l-price { display: flex; align-items: baseline; gap: 6px; font-size: 13px; }
.l-price b { font-size: 44px; font-weight: 600; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.l-plan-text { font-size: 13.5px; line-height: 1.5; min-height: 40px; }
.l-plan hr { width: 100%; border: 0; border-top: 1px solid var(--bd); margin: 0; }
.l-plan-lines { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }

/* faq + cta */
.l-faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 32px; align-items: start; }
.l-faq .l-stack-s p { font-size: 16px; line-height: 1.6; }
.l-faq-list { border-top: 1px solid var(--bd); }
.l-faq-list details { border-bottom: 1px solid var(--bd); }
.l-faq-list summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-size: 16px; font-weight: 500; cursor: pointer; }
.l-faq-list summary::-webkit-details-marker { display: none; }
.l-faq-list summary .l-ic { font-size: 20px; color: var(--mu); transition: transform .15s; }
.l-faq-list details[open] summary .l-ic { transform: rotate(45deg); }
.l-faq-list p { margin: 0 0 18px; font-size: 14px; line-height: 1.6; max-width: 620px; }
.l-cta { position: relative; overflow: hidden; border: 1px solid var(--bd2); border-radius: 16px; background: var(--sf); padding: 80px 40px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.l-cta > *:not(canvas) { position: relative; }
.l-cta .l-h2 { max-width: 720px; }
.l-cta p { font-size: 16px; }

/* legal pages */
.l-doc { max-width: 760px; display: flex; flex-direction: column; gap: 16px; font-size: 15px; line-height: 1.7; }
.l-doc h1 { font-size: 44px; letter-spacing: -0.035em; margin-bottom: 8px; }
.l-doc h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; margin: 16px 0 -8px; }
.l-doc p { white-space: pre-line; overflow-wrap: anywhere; color: color-mix(in oklch, var(--tx) 85%, var(--mu)); }
.l-doc a { color: var(--act); }

/* footer */
.l-footer { border-top: 1px solid var(--bd); margin-top: 40px; }
.l-foot-grid { max-width: 1200px; margin: 0 auto; padding: 48px 24px 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 32px; }
.l-foot-brand { display: flex; flex-direction: column; gap: 12px; grid-column: span 2; min-width: 0; font-size: 13px; line-height: 1.5; }
.l-foot-brand .l-mu { max-width: 300px; }
.l-status { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; height: 30px; padding: 0 10px; border: 1px solid var(--bd); border-radius: 999px; font-size: 12.5px; white-space: nowrap; }
.l-pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); color: var(--ok); animation: kp-pulse 2s infinite; }
.l-foot-col { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.l-foot-h { font-size: 12px; color: var(--mu); font-weight: 500; }
.l-foot-bottom { max-width: 1200px; margin: 0 auto; padding: 16px 24px 32px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--mu); border-top: 1px solid var(--bd); }
.l-foot-legal { display: flex; gap: 16px; flex-wrap: wrap; }
.l-wordmark { overflow: hidden; padding-top: 24px; font-size: 23vw; font-weight: 600; letter-spacing: -0.065em; line-height: 0.74; color: var(--sf3); white-space: nowrap; user-select: none; text-align: center; margin-bottom: -0.06em; }

@media (max-width: 959px) {
  .l-btn--primary > .l-hide-m { display: none; }  /* the long RU label pushes the header past the edge on tablets */
  .l-btn--primary > .l-show-m { display: inline; }
  .l h1 { font-size: 64px; }
  .l-mock-grid { grid-template-columns: minmax(0, 1fr); }
  .l-mock-main { border-right: 0; border-bottom: 1px solid var(--bd); }
}
@media (max-width: 859px) {
  .l-nav { display: none; }  /* section links don't fit beside the actions; the page scrolls to them anyway */
}
@media (max-width: 359px) {
  .l-logo { font-size: 0; gap: 0; }  /* mark only: the name stays for screen readers */
}
@media (max-width: 639px) {
  .l-header-in { padding: 12px 16px; gap: 12px; }
  .l-nav, .l-hide-m { display: none; }
  .l-show-m { display: inline; }
  .l-header-end { gap: 6px; }
  .l h1 { font-size: 44px; }
  .l-lead { font-size: 16px; }
  .l-hero { padding: 56px 16px 40px; }
  .l-sect { padding: 40px 16px; }
  .l-h2, .l-statement p, .l-doc h1 { font-size: 30px; }
  .l-carousel { padding: 24px; border-right: 0; border-bottom: 1px solid var(--bd); min-height: 0; }
  .l-case-who { font-size: 30px; }
  .l-case p { font-size: 17px; }
  .l-cta { padding: 48px 20px; }
  .l-foot-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .l-foot-brand { grid-column: 1 / -1; }
  .l-wordmark { font-size: 24vw; }
  .l-kpis b { font-size: 18px; }
  .l-stats > div { padding: 20px; }
  .l-stats b { font-size: 26px; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) { .l *, .l *::before, .l *::after { animation: none !important; transition: none !important; } }
.l-cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 94; margin: 0 auto; width: min(760px, calc(100% - 32px)); background: var(--sf); border: 1px solid var(--bd2); border-radius: 16px; box-shadow: var(--shadow); padding: 14px 16px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 13.5px; line-height: 1.5; }
.l-cookie[hidden] { display: none; }
.l-cookie > span:first-child { flex: 1; min-width: 240px; }  /* the text; the buttons group keeps its own width */
.l-cookie a { text-decoration: underline; }
@media (max-width: 639px) { .l-cookie .l-btn { flex: 1 1 100%; } }
.l-cookie-btns { display: flex; gap: 8px; flex-wrap: wrap; flex: none; }
.l-consent { width: min(460px, calc(100% - 32px)); padding: 0; border: 1px solid var(--bd2); border-radius: 16px; background: var(--sf); color: var(--tx); box-shadow: var(--shadow); }
.l-consent::backdrop { background: rgba(0, 0, 0, .5); }
.l-consent h2 { margin: 0; padding: 20px 22px 6px; font-size: 17px; font-weight: 600; }
.l-consent-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 22px; border-bottom: 1px solid var(--bd); cursor: pointer; }
.l-consent-row span { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.l-consent-row small { font-size: 12.5px; color: var(--mu); line-height: 1.45; }
.l-consent-row input { appearance: none; margin: 0; width: 36px; height: 22px; flex: none; border-radius: 999px; background: var(--sf3); position: relative; cursor: pointer; transition: background-color .15s; }  /* a switch, as the app's .toggle */
.l-consent-row input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: left .15s; }
.l-consent-row input:checked { background: var(--ac); }
.l-consent-row input:checked::after { left: 16px; }
.l-consent-row input:disabled { opacity: .45; cursor: default; }
.l-consent-row input:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }
.l-consent-foot { display: flex; justify-content: flex-end; padding: 16px 22px; }
.l-link { border: 0; background: none; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.l-link:hover { color: var(--tx); }
@media (max-width: 639px) { .l-cookie-btns { flex: 1 1 100%; } .l-cookie-btns .l-btn { flex: 1; } }
