/* Neurostream site styles. Colors and type match the company decks. */
:root {
  --ink: #0F1A2B;
  --ink-2: #18263B;
  --ink-line: #2C3D57;
  --ink-muted: #B6C2D3;
  --paper: #F4F2EC;
  --card: #FBFAF6;
  --line: #E1DDD2;
  --muted: #4A5568;
  --accent: #2459D8;
  --accent-deep: #1D4BC0;
  --accent-soft: #8FB0FF;
  --accent-pale: #DCE6FF;
  --radius: 20px;
  --wrap: 1200px;
  --head: 'Unbounded', Arial, sans-serif;
  --text: 'Onest', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--text); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }

.wrap { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.dark { background: var(--ink); color: #F4F2EC; }
.blue { background: var(--accent); color: #F4F2EC; }
.white { background: var(--card); }

.eyebrow { font: 600 14px/1.2 var(--text); letter-spacing: 3px; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.dark .eyebrow { color: var(--accent-soft); }
.blue .eyebrow { color: var(--accent-pale); }
.h1 { font: 700 clamp(38px, 6vw, 76px)/1.08 var(--head); letter-spacing: -0.5px; }
.h2 { font: 700 clamp(28px, 4vw, 46px)/1.15 var(--head); letter-spacing: -0.3px; }
.h3 { font: 600 22px/1.25 var(--text); }
.lead { font-size: clamp(18px, 2vw, 22px); line-height: 1.5; color: var(--muted); max-width: 760px; }
.dark .lead { color: var(--ink-muted); }
.blue .lead { color: var(--accent-pale); }
.sec-head { margin-bottom: 44px; }
.sec-head .lead { margin-top: 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 26px; border-radius: 999px; border: 1px solid transparent; font: 600 16px/1 var(--text); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-deep); }
.btn--light { background: var(--accent-soft); color: var(--ink); }
.btn--light:hover { background: #a8c1ff; }
.btn--ghost { border-color: currentColor; background: transparent; color: inherit; }
.btn--ghost:hover { background: rgba(127,127,127,.12); }
.btn--small { padding: 10px 18px; font-size: 15px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.hdr { position: sticky; top: 0; z-index: 40; background: rgba(15,26,43,.94); color: #F4F2EC; backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255,255,255,.06); }
.hdr__in { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 18px/1 var(--head); letter-spacing: .2px; white-space: nowrap; }
.logo svg { width: 34px; height: 34px; flex: none; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: #DDE3EC; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.hdr__act { display: flex; gap: 10px; align-items: center; }
.hdr__login { background: none; border: 0; color: #DDE3EC; cursor: pointer; font-weight: 500; font-size: 15px; padding: 8px 4px; }
.hdr__login:hover { color: #fff; }
.acc { position: relative; }
.acc__btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); background: none; color: #DDE3EC; display: grid; place-items: center; cursor: pointer; }
.acc__btn:hover { color: #fff; border-color: #fff; }
.acc__btn svg { width: 20px; height: 20px; }
.acc__menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; background: var(--paper); border-radius: 14px; box-shadow: 0 12px 32px rgba(8,14,25,.25); padding: 6px; display: grid; }
.acc__menu[hidden] { display: none; }
.acc__menu button { background: none; border: 0; text-align: left; padding: 10px 12px; border-radius: 10px; font-weight: 500; color: var(--ink); cursor: pointer; }
.acc__menu button:hover { background: var(--accent-pale); }
.burger { display: none; margin-left: auto; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.burger svg { width: 28px; height: 28px; }
.mnav { display: none; }
@media (max-width: 1020px) {
  .nav, .hdr__act { display: none; }
  .burger { display: block; }
  .mnav[data-open] { display: block; background: var(--ink); border-top: 1px solid var(--ink-line); padding: 12px 20px 24px; }
  .mnav a, .mnav button.link { display: block; padding: 12px 0; color: #F4F2EC; text-decoration: none; font-weight: 500; font-size: 17px; background: none; border: 0; text-align: left; width: 100%; cursor: pointer; }
  .mnav .btns { margin-top: 12px; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: 88px 0 96px; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero .h1 { margin-bottom: 26px; font-size: clamp(36px, 5vw, 62px); }
.hero--page .h1 { font-size: clamp(32px, 4.4vw, 54px); }
.hero .lead { margin-bottom: 34px; }
.hero__wave { position: absolute; left: -60px; bottom: -36px; width: 560px; opacity: .22; pointer-events: none; }
.hero__grid, .hero > .wrap { position: relative; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.pill { font-size: 14px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--ink-line); color: #E6EAF1; }
.pill--on { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--ink); font-weight: 600; }
/* Hero: facts as a checklist, so they don't read as buttons next to the CTAs */
.hero .pills { gap: 10px 28px; margin-top: 32px; }
.hero .pill { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; border-radius: 0; background: none; font-size: 15px; color: #C9D2E0; }
.hero .pill::before { content: "\2713"; color: var(--accent-soft); font-weight: 700; }
.hero .pill--on { color: #fff; font-weight: 600; }
.hero--page { padding: 72px 0 80px; }
.hero--page .h1 { font-size: clamp(34px, 5vw, 60px); }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } .hero__wave { width: 420px; opacity: .3; } }

/* Video slot */
.vslot { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, #18263B, #0F1A2B 70%); border: 1px solid var(--ink-line); display: grid; place-items: center; color: var(--ink-muted); }
.vslot iframe, .vslot video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vslot__ph { display: grid; justify-items: center; gap: 14px; text-align: center; padding: 24px; }
.vslot__play { width: 76px; height: 76px; border-radius: 50%; background: rgba(143,176,255,.16); border: 1px solid rgba(143,176,255,.4); display: grid; place-items: center; }
.vslot__play svg { width: 30px; height: 30px; color: var(--accent-soft); margin-left: 4px; }
.vslot__t { font-weight: 600; color: #F4F2EC; }
.vslot__s { font-size: 14px; }
.vslot--video { background: #0F1A2B; cursor: pointer; justify-items: end; padding-right: 9%; }
.vslot--video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vslot__btn { position: relative; width: 84px; height: 84px; border-radius: 50%; background: rgba(244,242,236,.95); box-shadow: 0 12px 30px rgba(0,0,0,.35); transition: transform .15s; }
.vslot__btn::after { content: ""; position: absolute; left: 34px; top: 26px; border-left: 26px solid var(--accent); border-top: 16px solid transparent; border-bottom: 16px solid transparent; }
.vslot--video:hover .vslot__btn { transform: scale(1.06); }
.mod .vslot--video { aspect-ratio: 16 / 9; }
.vslot--light { background: linear-gradient(135deg, #E9EEF9, #F4F2EC); border-color: var(--line); color: var(--muted); }
.vslot--light .vslot__t { color: var(--ink); }
.vslot--light .vslot__play { background: rgba(36,89,216,.08); border-color: rgba(36,89,216,.3); }
.vslot--light .vslot__play svg { color: var(--accent); }

.shot { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--ink-line); background: #F3F5F9; box-shadow: 0 20px 50px rgba(0,0,0,.28); }
.shot img { width: 100%; height: auto; display: block; }
.mod .shot { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); box-shadow: none; aspect-ratio: 16 / 9; }
.mod .shot { overflow: hidden; }
.mod .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transform: scale(1.45); transform-origin: top left; }

/* Cards */
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1020px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } .section { padding: 72px 0; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.card p { color: var(--muted); }
.card .ico { width: 48px; height: 48px; color: var(--accent); }
.dark .card { background: var(--ink-2); border-color: var(--ink-line); }
.dark .card p, .dark .card li { color: var(--ink-muted); }
.dark .card .ico { color: var(--accent-soft); }
.blue .card { background: var(--accent-deep); border-color: #4A78E6; }
.blue .card p { color: var(--accent-pale); }
.blue .card .ico { color: #F4F2EC; }
.blue .card--hi { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.blue .card--hi p { color: var(--muted); }
.blue .card--hi .ico { color: var(--accent); }
.card ul { padding-left: 20px; color: var(--muted); }
.card li { margin: 4px 0; }
.card__foot { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.more { font-weight: 600; color: var(--accent); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.dark .more { color: var(--accent-soft); }
.more:hover { text-decoration: underline; }
.num { font: 700 30px/1 var(--head); color: var(--accent); }
.dark .num { color: var(--accent-soft); }

/* Modules */
.mod { padding: 0; overflow: hidden; }
.mod__art { aspect-ratio: 16 / 9; display: grid; place-items: center; background: linear-gradient(135deg, #E9EEF9, #F4F2EC); border-bottom: 1px solid var(--line); color: var(--accent); }
.mod__art svg { width: 72px; height: 72px; }
.mod .vslot { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); aspect-ratio: 16 / 9; }
.mod__body { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tag { display: inline-block; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--accent-pale); color: var(--accent-deep); text-decoration: none; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.dark .tag { background: rgba(143,176,255,.15); color: var(--accent-soft); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; border-top: 2px solid var(--ink); padding-top: 32px; }
.stat b { display: block; font: 700 clamp(34px, 4vw, 52px)/1.05 var(--head); color: var(--accent); margin-bottom: 8px; }
.stat span { color: var(--muted); }
.stats__note { margin-top: 20px; font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Steps */
.steps { counter-reset: s; }
.step .num::before { counter-increment: s; content: "0" counter(s); }

/* Cases */
.case { gap: 18px; }
.case__logo { height: 64px; display: flex; align-items: center; }
.case__logo img { max-height: 60px; max-width: 220px; width: auto; object-fit: contain; }
.case__word { font: 700 18px/1.15 var(--head); color: var(--ink); border: 2px solid var(--ink); border-radius: 10px; padding: 10px 14px; }
.case__when { font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); }
#kejsy .grid, #cases .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1020px) { #kejsy .grid, #cases .grid { grid-template-columns: minmax(0, 1fr); } }
@supports (grid-template-rows: subgrid) { @media (min-width: 1021px) { .case { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 14px; } } }
.case__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 1px solid var(--line); padding-top: 18px; margin-top: auto; align-self: start; }
.case__facts b { display: block; font: 700 26px/1.1 var(--head); color: var(--accent); white-space: nowrap; }
.case__facts span { font-size: 14px; color: var(--muted); }
@supports (grid-template-rows: subgrid) { @media (min-width: 1021px) { .case__facts { margin-top: 0; } } }
@media (min-width: 1180px) { .case__facts span { font-size: 13px; white-space: nowrap; } }

/* Reviews */
.rev { gap: 18px; }
.rev__who { display: flex; gap: 14px; align-items: center; }
.ava { width: 52px; height: 52px; border-radius: 50%; background: var(--accent-pale); color: var(--accent-deep); display: grid; place-items: center; font: 700 18px/1 var(--head); flex: none; }
.rev__who b { display: block; }
.rev__who span { font-size: 14px; color: var(--muted); }
.rev blockquote { margin: 0; font-size: 18px; line-height: 1.5; }

/* Registries */
.regs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.reg { display: flex; gap: 18px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.reg__mark { width: 84px; height: 64px; flex: none; display: grid; place-items: center; }
.reg__mark img { max-width: 84px; max-height: 64px; object-fit: contain; }
.reg__mark--txt { font: 700 20px/1 var(--head); color: #9AA3AF; }
.reg__mark--ico svg { width: 46px; height: 46px; color: #9AA3AF; }
.reg p { font-size: 14px; line-height: 1.45; color: var(--ink); }
.reg a, .ftr__legal a { color: var(--accent); }
.ftr__legal a { color: var(--accent-soft); }
@media (max-width: 1020px) { .regs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .regs { grid-template-columns: 1fr; } }

/* Values */
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 56px; align-items: start; }
.value { margin: 0; }
.value h3 { font: 600 19px/1.3 var(--text); margin-bottom: 8px; }
.value p { color: var(--muted); }
.values__end { margin-top: 34px; font: 600 20px/1.3 var(--text); text-align: center; }
@media (min-width: 761px) { .value:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; max-width: calc((100% - 56px) / 2); text-align: center; } }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } }

/* Form */
.form-sec__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .form-sec__grid { grid-template-columns: 1fr; } }
.contacts { display: grid; gap: 10px; margin-top: 28px; font-size: 20px; }
.contacts a { text-decoration: none; }
.contacts a:hover { text-decoration: underline; }
.form { display: grid; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; color: var(--ink); }
.dark .form { border-color: var(--card); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.fld { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--muted); }
.fld input, .fld select, .fld textarea { font: 400 16px/1.4 var(--text); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; width: 100%; }
.fld textarea { min-height: 96px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--muted); }
.chk input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.chk a { color: var(--accent); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form__msg { font-size: 15px; min-height: 1em; }
.form__msg[data-kind="ok"] { color: #1B7F4B; }
.form__msg[data-kind="err"] { color: #B42318; }
.form .btn { justify-self: start; }
.form .btn[disabled] { opacity: .45; cursor: not-allowed; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(8,14,25,.66); }
.modal[data-open] { display: flex; }
.modal__box { position: relative; width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--paper); border-radius: 24px; padding: 34px 30px 30px; }
.modal__box .h3 { font: 700 24px/1.2 var(--head); margin-bottom: 10px; padding-right: 30px; }
.modal__box > p { color: var(--muted); margin-bottom: 20px; }
.modal__box .form { padding: 0; border: 0; background: none; }
.modal__x { position: absolute; right: 16px; top: 16px; background: none; border: 0; cursor: pointer; padding: 6px; color: var(--muted); }
.modal__x svg { width: 24px; height: 24px; }

/* Documents */
.doc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 56px); font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
.doc h1 { font: 700 clamp(26px, 3.4vw, 38px)/1.2 var(--head); margin-bottom: 28px; }
.doc img { margin: 18px 0; border-radius: 10px; border: 1px solid var(--line); }
.doc a { color: var(--accent); }
.doc a.btn--accent { color: #fff; }
.doc h1 { overflow-wrap: normal; }
.doc ul, .doc ol { padding-left: 22px; margin: 8px 0; }
.doc table { border-collapse: collapse; margin: 12px 0; }
.doc td, .doc th { border: 1px solid var(--line); padding: 6px 10px; vertical-align: top; }
.doc__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }

/* Footer */
.ftr { background: #0B1422; color: #C9D1DC; padding: 64px 0 40px; font-size: 14px; }
.ftr__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.ftr h4 { margin: 0 0 14px; font: 600 13px/1.2 var(--text); letter-spacing: 2px; text-transform: uppercase; color: #F4F2EC; }
.ftr ul { list-style: none; display: grid; gap: 8px; }
.ftr a { color: #C9D1DC; text-decoration: none; }
.ftr a:hover { color: #fff; text-decoration: underline; }
.ftr .logo { color: #F4F2EC; margin-bottom: 16px; }
.ftr__legal { margin-top: 44px; padding-top: 28px; border-top: 1px solid #1E2C42; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; line-height: 1.6; color: #8D99AB; }
.ftr__legal b { color: #C9D1DC; font-weight: 500; }
@media (max-width: 900px) { .ftr__grid { grid-template-columns: 1fr 1fr; } .ftr__legal { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .ftr__grid { grid-template-columns: 1fr; } }

/* Utilities */
.center { text-align: center; }
.mt-lg { margin-top: 44px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.checks { list-style: none; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 2px; }
.dark .checks svg { color: var(--accent-soft); }
.note { font-size: 14px; color: var(--muted); }
.cta-band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
