/* Neurabs – "one connected package". See DESIGN.md for the concept, palette and layout decisions. */

/* ── fonts (OFL, self-hosted; latin-ext only downloads when the page uses e.g. Polish letters) ── */
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/fonts/space-grotesk-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/fonts/space-grotesk-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/fonts/jetbrains-mono-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/fonts/jetbrains-mono-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #0e1315;      /* dark bands, text on light */
  --ink-2: #172024;    /* header, cards on dark */
  --paper: #f4f4ef;    /* page */
  --paper-2: #e9ebe3;  /* the bill band */
  --white: #ffffff;
  --line: #d6d8d0;     /* hairlines on light */
  --line-d: #2a363b;   /* hairlines on dark */
  --muted: #4c5559;    /* secondary text on light (7.3:1) */
  --mist: #a9b4b8;     /* secondary text on dark (8.9:1) */
  --lime: #c8f25a;     /* the synapse: the only accent */
  --sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  --gut: 16px;
  --header: 64px;
}
@media (min-width: 700px) { :root { --gut: 32px; } }
@media (min-width: 1280px) { :root { --gut: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); }
@media (min-width: 1024px) { body { font-size: 1.125rem; } }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
strong { font-weight: 600; }
svg { display: block; }

:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; box-shadow: 0 0 0 5px var(--ink); border-radius: 2px; }

.wrap { width: 100%; max-width: calc(1200px + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut); }

.skip { position: absolute; left: var(--gut); top: -100px; z-index: 20; padding: 10px 16px; background: var(--lime); color: var(--ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 8px; }

/* ── buttons ─────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 4px; font: 600 1rem/1.2 var(--sans); text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s; }
.btn--small { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: #dbff7a; }
.btn--ghost { border-color: var(--line-d); color: var(--paper); }
.btn--ghost:hover { border-color: var(--mist); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #26323a; }

/* ── header ──────────────────────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 10; background: var(--ink-2); color: var(--paper); border-bottom: 1px solid var(--line-d); }
.top__in { display: flex; align-items: center; gap: 12px; min-height: var(--header); }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; color: var(--lime); text-decoration: none; margin-right: auto; }
.logo__mark { width: 28px; height: 28px; fill: currentColor; }
.logo__word { color: var(--paper); font: 600 1.375rem/1 var(--sans); letter-spacing: -0.03em; }
.top__nav { display: none; }
.top__nav ul { display: flex; gap: 4px; }
.top__nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; color: var(--mist); font-size: .9375rem; text-decoration: none; }
.top__nav a:hover { color: var(--paper); }
.top__lang { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; border: 1px solid var(--line-d);
  border-radius: 4px; color: var(--paper); font: 500 .875rem/1 var(--mono); text-decoration: none; }
.top__lang:hover { border-color: var(--mist); }
@media (min-width: 760px) { .top__nav { display: block; margin-right: 8px; } }

/* ── hero ────────────────────────────────────────────────────────────────── */
.hero { background: var(--ink) radial-gradient(circle, #1c262a 1px, transparent 1.5px) 0 0 / 24px 24px; color: var(--paper); }
.hero__in { display: grid; gap: 40px; padding-block: 40px 48px; }
.kicker { font: 500 .8125rem/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--lime); margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.25rem, 1.3rem + 3.9vw, 4.1rem); line-height: 1.04; max-width: 15ch; }
.hero__lead { margin: 22px 0 28px; max-width: 34em; color: var(--mist); font-size: 1.125rem; }
.hero__lead strong { color: var(--paper); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__net { margin: 0; }
.net { width: 100%; height: auto; }
.net--wide { display: none; max-width: 640px; margin-inline: auto; }
.net--tall { max-width: 420px; margin-inline: auto; }
@media (min-width: 600px) { .net--wide { display: block; } .net--tall { display: none; } }
@media (min-width: 1024px) {
  .hero__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 48px; padding-block: 72px 88px; }
}
@media (min-width: 1280px) { .hero__in { padding-block: 88px 104px; } }

/* the package diagram */
.net__link { stroke: #34444a; stroke-width: 2; }
.net__link--site { stroke: var(--lime); stroke-opacity: .55; }
.net__impulse { fill: var(--lime); }
.net__core { fill: var(--ink-2); stroke: var(--lime); stroke-width: 2; }
.net__pulse { fill: none; stroke: var(--lime); stroke-width: 2; transform-box: fill-box; transform-origin: center;
  animation: pulse 2.8s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.45); opacity: 0; } }
.net__core-text { fill: var(--paper); font: 600 22px var(--sans); text-anchor: middle; }
.net__node text { font-family: var(--mono); font-weight: 500; text-anchor: middle; dominant-baseline: central; }
.net__node--site rect { fill: var(--lime); }
.net__node--site text { fill: var(--ink); }
.net__node--care rect { fill: var(--ink); stroke: #4a5c63; stroke-width: 1.5; }
.net__node--care text { fill: var(--paper); }
@media (prefers-reduced-motion: reduce) { .net__impulse, .net__pulse { display: none; } }

.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-top: 16px; font: 400 .8125rem/1.4 var(--mono); color: var(--mist); }
.legend__item { display: inline-flex; align-items: center; gap: 8px; }
.legend__item::before { content: ""; width: 22px; height: 12px; border-radius: 6px; }
.legend__item--site::before { background: var(--lime); }
.legend__item--care::before { border: 1.5px solid #4a5c63; }

/* ── sections on light ───────────────────────────────────────────────────── */
.sec { padding-block: 72px; border-top: 1px solid var(--line); scroll-margin-top: var(--header); }
@media (min-width: 1024px) { .sec { padding-block: 112px; } }
.sec h2 { font-size: clamp(1.85rem, 1.2rem + 2.4vw, 3rem); max-width: 22ch; margin-bottom: 40px; }
.label { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font: 500 .8125rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.label span { display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--lime); color: var(--ink); font-weight: 600; letter-spacing: 0; }
.label--dark { color: var(--mist); }

.dot { flex: none; width: 12px; height: 12px; margin-top: .5em; border: 2px solid var(--ink); border-radius: 50%; background: var(--lime); }

/* offer cards: 1 column → 2 + full-width banner → 3 */
.cards { display: grid; gap: 16px; }
.card { display: flex; flex-direction: column; padding: 28px 24px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; }
.card__name { font-size: 1.25rem; margin-bottom: 18px; }
.card__price { margin-bottom: 8px; }
.card__amount { display: block; font: 600 clamp(2.4rem, 2rem + 1.4vw, 3rem)/1 var(--sans); letter-spacing: -0.03em; }
.card__amount--text { font-size: clamp(1.6rem, 1.4rem + .8vw, 2rem); line-height: 1.15; }
.card__unit { display: block; margin-top: 8px; color: var(--muted); font-size: 1rem; }
.card__note { align-self: flex-start; margin: 6px 0 0; padding: 6px 10px; border-radius: 4px; background: var(--paper-2); font: 500 .875rem/1.4 var(--mono); }
.card__list { margin-top: 22px; }
.card__list li { display: flex; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); }
.card__text { margin: 12px 0 22px; color: var(--muted); }
.card--extra { background: transparent; border: 1.5px dashed #8d979b; }
.card--extra p:last-child { margin-top: auto; }
@media (min-width: 700px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .card { padding: 32px; }
  .card--extra { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.4fr auto; align-items: center; gap: 8px 32px; }
  .card--extra .card__name { margin-bottom: 4px; }
  .card--extra .card__price { grid-row: 2; margin: 0; }
  .card--extra .card__text { grid-row: 1 / 3; grid-column: 2; margin: 0; }
  .card--extra p:last-child { grid-row: 1 / 3; grid-column: 3; margin: 0; }
}
@media (min-width: 1100px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .card--extra { grid-column: auto; display: flex; align-items: stretch; }
  .card--extra .card__name { margin-bottom: 18px; }
  .card--extra .card__text { margin: 12px 0 22px; }
  .card--extra p:last-child { margin-top: auto; }
}

/* the bill */
.sec--bill { background: var(--paper-2); }
.bill-grid { display: grid; gap: 40px; }
.bill-intro h2 { margin-bottom: 24px; }
.bill-intro p { max-width: 34em; color: var(--muted); }
.bill-intro .bill-avg { margin-top: 24px; padding-left: 16px; border-left: 4px solid var(--lime); color: var(--ink); }
.bill { position: relative; width: 100%; max-width: 560px; padding: 28px 22px 32px; background: var(--white); font: 400 .9375rem/1.5 var(--mono); }
.bill::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px;
  background: conic-gradient(from -45deg at 50% 100%, var(--white) 90deg, transparent 0) 0 0 / 20px 10px repeat-x; }
.bill__head { margin-bottom: 8px; padding-bottom: 14px; border-bottom: 1.5px dashed #8d979b; text-align: center; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.bill__year { margin: 22px 0 8px; font: 600 .8125rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bill__row { display: flex; justify-content: space-between; align-items: baseline; gap: 4px; padding: 5px 0;
  background: radial-gradient(circle, #8d979b 1px, transparent 1.5px) 0 calc(100% - 11px) / 7px 4px repeat-x; }
.bill__row dt, .bill__row dd { background: var(--white); }
.bill__row dt { padding-right: 8px; }
.bill__row dd { padding-left: 8px; white-space: nowrap; }
.bill__row--total { margin-top: 6px; padding-top: 10px; border-top: 2px solid var(--ink); background: none; font-weight: 700; }
.bill__row--total dd { padding: 0 8px; background: var(--lime); }
.bill__foot { margin-top: 22px; color: var(--muted); font-size: .8125rem; }
@media (min-width: 700px) { .bill { padding: 36px 40px 40px; } }
@media (min-width: 1024px) { .bill-grid { grid-template-columns: 5fr 6fr; gap: 64px; align-items: start; } .bill { justify-self: end; } }

/* steps on one connection line: vertical on phone, horizontal from tablet landscape */
.steps { position: relative; display: grid; gap: 32px; counter-reset: step; }
.steps::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: var(--line); }
.step { position: relative; padding-left: 68px; }
.step__n { position: absolute; left: 0; top: -4px; display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--ink);
  border-radius: 50%; background: var(--paper); font: 600 .875rem/1 var(--mono); }
.step:first-child .step__n { background: var(--lime); }
.step h3 { font-size: 1.25rem; margin: 6px 0 8px; }
.step p { color: var(--muted); max-width: 30em; }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .steps::before { left: 22px; right: 22px; top: 21px; bottom: auto; width: auto; height: 2px; }
  .step { padding: 64px 0 0; }
  .step__n { top: 0; }
}

/* standard features: heading left, list right on large screens */
.std-grid { display: grid; }
.std li { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.std li:last-child { border-bottom: 1px solid var(--line); }
.std h3 { font-size: 1.125rem; margin-bottom: 4px; }
.std p { color: var(--muted); }
@media (min-width: 1024px) { .std-grid { grid-template-columns: 4fr 7fr; gap: 64px; align-items: start; } .std-grid h2 { margin-bottom: 0; } }

/* about */
.about__body { max-width: 40em; }
.about__body h2 { margin-bottom: 24px; }
.about__body p { font-size: 1.1875rem; }
@media (min-width: 1024px) {
  .about { display: grid; grid-template-columns: 3fr 8fr; gap: 32px; align-items: start; }
  .about .label { margin-top: 14px; }
  .about__body p { font-size: 1.3125rem; }
}

/* ── contact + footer (dark) ─────────────────────────────────────────────── */
.contact { padding-block: 80px; background: var(--ink); color: var(--paper); scroll-margin-top: var(--header); }
@media (min-width: 1024px) { .contact { padding-block: 128px; } }
.contact h2 { font-size: clamp(1.85rem, 1.2rem + 2.4vw, 3rem); max-width: 20ch; margin-bottom: 18px; }
.contact__text { max-width: 36em; color: var(--mist); }
.contact__mail { display: inline-block; margin-top: 24px; color: var(--lime); font: 600 clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem)/1.2 var(--sans);
  letter-spacing: -0.03em; padding-block: 6px; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; overflow-wrap: anywhere; }
.contact__mail:hover { text-decoration-thickness: 3px; }

.foot { background: #0a0e10; color: var(--mist); font-size: .875rem; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding-block: 28px; }
.foot p { margin: 0; }
.foot strong { color: var(--paper); }
.foot a { color: var(--paper); text-underline-offset: 3px; }

/* ── 404 ─────────────────────────────────────────────────────────────────── */
.nf { min-height: 100vh; display: grid; place-items: center; background: var(--ink); color: var(--paper); }
.nf__main { max-width: 640px; padding-block: 64px; }
.nf h1 { margin: 40px 0 16px; font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); }
.nf p { color: var(--mist); }
.nf .logo { margin: 0; }
