/* ==========================================================================
   ideolabs.sk — the only stylesheet. Sections:
   1 fonts  2 tokens  3 base  4 utilities  5 buttons  6 header/nav  7 hero
   8 products  9 how  10 why  11 refs  12 contact/form  13 footer
   14 legal/404  15 motion (Task 8)  16 admin (Task 10)
   ========================================================================== */

/* 1 — fonts (self-hosted variable woff2) ---------------------------------- */
@font-face { font-family: "Urbanist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/urbanist-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: "Urbanist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/urbanist-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: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/manrope-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: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/manrope-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; }

/* 2 — tokens -------------------------------------------------------------- */
:root {
  /* Light palette (2026-10-16). Mint is a fill/glow colour; text and lines in mint use --accent-strong. */
  --bg: #F6F7F5;
  --surface: #FFFFFF;
  --surface-2: #EEF1F1;
  --stage: #DDE3E5;
  --border: #D8DEE1;
  --text: #14171C;
  --muted: #5B6472;
  --quiet: #8B929D;
  --ink: #15181D;
  --accent: #5CF2C2;
  --accent-strong: #0B7D5E;
  --accent-ink: #0B2A20;
  --accent-soft: rgb(92 242 194 / .18);
  --danger: #C2413A;
  --danger-soft: rgb(194 65 58 / .08);
  --line: #8E9BA3;

  --font-head: "Urbanist", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, sans-serif;

  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1rem + .5vw, 1.3125rem);
  --fs-h3: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  --fs-h1: clamp(2.75rem, 1.4rem + 5vw, 6rem);

  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 4.5rem; --space-9: 7rem;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-xl: 44px;
  --container: 1200px;
  --gutter: clamp(1rem, .5rem + 2.5vw, 2.5rem);
  --header-h: 72px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 30px 70px -28px rgb(20 30 40 / .35);
  color-scheme: light;
}

/* 3 — base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: var(--fs-md); line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
.lead { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration-color: rgb(11 125 94 / .45); text-underline-offset: .2em; }
a:hover { color: var(--accent-strong); }
button, [type="submit"], label[for], .choice { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

/* 4 — utilities ----------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-9); position: relative; }
.section__head { max-width: 46rem; margin-bottom: var(--space-8); }
.section__title { font-size: var(--fs-h2); margin-bottom: var(--space-4); }
.lead { font-size: var(--fs-lg); color: var(--muted); max-width: 40rem; }
.eyebrow { font-family: var(--font-head); font-size: var(--fs-sm); font-weight: 600; color: var(--accent-strong); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--space-4); top: -100px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: var(--space-4); color: var(--accent-ink); }

/* 5 — buttons ------------------------------------------------------------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--text); --btn-bd: var(--border);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: .7em 1.4em; border-radius: 999px;
  border: 1px solid var(--btn-bd); background: var(--btn-bg); color: var(--btn-fg);
  font: 600 var(--fs-sm)/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { color: var(--btn-fg); }
.btn:active { transform: scale(.97); }
.btn--primary { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); --btn-bd: var(--accent); }
.btn--primary:hover { box-shadow: 0 12px 34px -12px rgb(92 242 194 / .65); }
.btn--ghost:hover { --btn-bd: var(--muted); }
.btn--dark { --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--ink); }
.btn--dark:hover { box-shadow: 0 12px 30px -14px rgb(21 24 29 / .6); transform: translateY(-1px); }
.btn--light { --btn-bg: var(--surface); --btn-fg: var(--text); --btn-bd: var(--surface); box-shadow: 0 8px 24px -14px rgb(20 30 40 / .4); }
.btn--light:hover { transform: translateY(-1px); }
.btn--link { border: 0; padding-inline: .2em; color: var(--muted); }
.btn--link:hover { color: var(--text); }
.btn--sm { min-height: 40px; padding: .55em 1.1em; font-size: var(--fs-xs); }
.btn--lg { min-height: 52px; padding: .9em 1.8em; font-size: var(--fs-md); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* 6 — header / nav -------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-scrolled { background: rgb(246 247 245 / .85); border-color: var(--border); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); }
.brand img { height: 28px; width: auto; }
.nav { display: flex; align-items: center; gap: var(--space-6); }
.nav__list { display: flex; gap: var(--space-5); }
.nav__list a { font-size: var(--fs-sm); color: var(--muted); text-decoration: none; padding-block: var(--space-2); }
.nav__list a:hover { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: var(--space-4); }
.lang-switch { display: inline-grid; place-items: center; min-width: 44px; min-height: 40px; font: 600 var(--fs-xs)/1 var(--font-head); color: var(--muted); text-decoration: none; border: 1px solid var(--border); border-radius: 999px; }
.lang-switch:hover { border-color: var(--muted); color: var(--text); }
.nav-toggle { display: none; }

@media (max-width: 899px) {
  .js .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 0 11px; border: 1px solid var(--border); border-radius: 999px;
    background: transparent; position: relative; z-index: 60;
  }
  .nav-toggle__bar { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .js .nav {
    position: fixed; inset: 0; z-index: 55; flex-direction: column; justify-content: center; gap: var(--space-7);
    background: rgb(246 247 245 / .97); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
  }
  .js .nav.is-open { opacity: 1; visibility: visible; }
  .js .nav__list { flex-direction: column; align-items: center; gap: var(--space-4); }
  .js .nav__list a { font: 600 var(--fs-h3)/1.2 var(--font-head); color: var(--text); }
  html:not(.js) .site-header { position: relative; height: auto; }
  html:not(.js) .hero { padding-top: var(--space-6); }
  html:not(.js) .site-header__inner { flex-wrap: wrap; padding-block: var(--space-4); }
  html:not(.js) .nav, html:not(.js) .nav__list { flex-wrap: wrap; gap: var(--space-3); }
  .nav-open { overflow: hidden; }
}

/* 7 — hero ---------------------------------------------------------------- */
/* A rounded stage card: copy left, a neural-network brain in the background right with screens of the finished
   products on top; the product links sit in a cut-out of the card's bottom-left corner. */
.hero { padding-block: calc(var(--header-h) + var(--space-7)) var(--space-8); }
.hero .container { max-width: calc(1320px + 2 * var(--gutter)); }
.hero__card {
  position: relative; display: grid; border-radius: var(--radius-xl);
  background:
    radial-gradient(60% 70% at 78% 30%, rgb(255 255 255 / .55), transparent 70%),
    radial-gradient(40% 50% at 70% 60%, var(--accent-soft), transparent 70%),
    var(--stage);
}
.hero__copy { position: relative; z-index: 2; padding: clamp(2.5rem, 1.5rem + 3vw, 4rem) clamp(1.5rem, .5rem + 3vw, 4rem) var(--space-5); }
.hero__badge { display: inline-flex; align-items: center; gap: var(--space-3); max-width: 100%; padding: 5px 16px 5px 5px; border-radius: 999px; background: rgb(21 24 29 / .8); color: #fff; font: 600 var(--fs-xs)/1.3 var(--font-head); }
.hero__badge-chip { padding: .4rem .8rem; border-radius: 999px; background: rgb(255 255 255 / .16); }
.hero__badge-link { display: inline-flex; align-items: center; gap: .35rem; text-decoration: none; white-space: nowrap; }
.hero__badge-link:hover { color: var(--accent); }
.hero__badge-link svg { width: 15px; height: 15px; }
.hero__title { font-size: clamp(2.5rem, 1.3rem + 3.6vw, 4.5rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; margin-block: var(--space-5) var(--space-4); }
.hero__line { display: block; }
.hero__line--quiet { color: #66717E; }
.hero__lead { max-width: 37rem; margin-bottom: var(--space-6); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero__actions .btn svg { width: 18px; height: 18px; }

.hero__visual { position: relative; z-index: 1; width: min(100% - 1.5rem, 560px); aspect-ratio: 1; justify-self: center; }
.brain { position: absolute; inset: 0 -4% auto; width: 108%; max-width: none; overflow: visible; opacity: .8; }
.brain__shape { fill: rgb(255 255 255 / .38); stroke: #A3B0B6; stroke-width: 1.4; }
.brain__fold { fill: none; stroke: #97A5AC; stroke-width: 1.7; stroke-linecap: round; }
.brain__links line { stroke: var(--line); stroke-width: .9; opacity: .5; }
.brain__nodes circle { fill: #3B454E; }
.brain__signals line { stroke: #16C893; stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 16 84; stroke-dashoffset: 100; opacity: 0; }
.brain__glow-in { stop-color: var(--accent); stop-opacity: .55; }
.brain__glow-out { stop-color: var(--accent); stop-opacity: 0; }
.brain__lit .core { fill: var(--accent); stroke: var(--accent-strong); stroke-width: 1.4; }
.brain__lit .halo { transform-box: fill-box; transform-origin: center; }

.hero__shots { position: absolute; z-index: 2; left: 8%; right: 6%; top: 36%; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero__shot { position: relative; border-radius: 12px; overflow: hidden; background: var(--surface); border: 1px solid rgb(255 255 255 / .9); box-shadow: var(--shadow); transition: transform .5s var(--ease); }
.hero__shot:nth-child(even) { transform: translateY(28px); }
.hero__shot .device__bar { padding: 5px 8px; gap: 4px; background: #F1F3F4; }
.hero__shot .device__bar span { width: 5px; height: 5px; background: #CDD3D7; }
.hero__shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.hero__shot-tag { position: absolute; left: 6px; bottom: 6px; padding: .2rem .5rem; border-radius: 999px; background: rgb(21 24 29 / .82); color: #fff; font: 700 .625rem/1.3 var(--font-head); }
.hero--no-shots .hero__visual { aspect-ratio: 600 / 520; }

.hero__products { position: relative; z-index: 3; display: flex; flex-wrap: wrap; gap: var(--space-5) var(--space-7); padding: clamp(2.5rem, 10vw, 4rem) clamp(1.5rem, .5rem + 3vw, 4rem) var(--space-6); }
.hero--no-shots .hero__products { padding-top: var(--space-5); }
.hero__product { display: grid; gap: .3rem; align-content: start; min-width: 0; max-width: 16rem; text-decoration: none; }
.hero__product:hover { color: inherit; }
.hero__product-index { font: 700 var(--fs-xs)/1 var(--font-head); letter-spacing: .08em; color: var(--accent-strong); }
.hero__product-name { display: flex; align-items: center; gap: .4rem; font: 800 1.75rem/1.1 var(--font-head); letter-spacing: -.02em; }
.hero__product-name svg { width: 18px; height: 18px; color: var(--accent-strong); transition: transform .3s var(--ease); }
.hero__product:hover .hero__product-name svg { transform: translate(3px, -3px); }
.hero__product-tag { color: var(--muted); font-size: var(--fs-xs); line-height: 1.45; }

@media (max-width: 599px) {
  .hero__badge { padding-right: 5px; white-space: nowrap; }
  .hero__badge-link { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
}
@media (min-width: 600px) {
  .hero__shots { gap: 18px; }
  .hero__shot { border-radius: 14px; }
  .hero__shot:nth-child(even) { transform: translateY(44px); }
  .hero__shot .device__bar { padding: 7px 10px; gap: 5px; }
  .hero__shot .device__bar span { width: 6px; height: 6px; }
  .hero__shot-tag { left: 9px; bottom: 9px; padding: .28rem .6rem; font-size: .72rem; }
}
/* Desktop: two columns, the brain breaks out over the card's top edge, products in the bottom-left cut-out */
@media (min-width: 1024px) {
  .hero__card { grid-template-columns: minmax(0, 13fr) minmax(0, 11fr); min-height: 600px; }
  .hero__copy { padding: 60px 0 196px 64px; }
  .hero__visual { width: auto; justify-self: stretch; margin: -110px 24px 0 0; align-self: start; }
  .hero__shots { top: 43%; }
  .hero--no-shots .hero__visual { margin-top: -60px; }
  .hero__shot:hover { transform: translateY(-6px); }
  .hero__shot:nth-child(even):hover { transform: translateY(38px); }
  .hero__products {
    position: absolute; left: 0; bottom: 0; width: 54%; height: 150px; flex-wrap: nowrap; gap: var(--space-7);
    padding: 30px 40px 0 64px; background: var(--bg); border-top-right-radius: var(--radius-xl);
  }
  .hero__products::before, .hero__products::after {
    content: ""; position: absolute; width: var(--radius-xl); height: var(--radius-xl);
    background: radial-gradient(circle at 100% 0, transparent calc(var(--radius-xl) - .5px), var(--bg) var(--radius-xl));
  }
  .hero__products::before { left: 0; top: calc(-1 * var(--radius-xl)); }
  .hero__products::after { left: 100%; bottom: 0; }
  .hero--no-products .hero__copy { padding-bottom: 64px; }
}

/* 8 — products ------------------------------------------------------------ */
.products { padding-bottom: 0; }
.product { position: relative; padding-bottom: var(--space-9); }
.product__inner { display: grid; gap: var(--space-7); }
.product__stage { position: relative; }
.device { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; }
.device__bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface); }
.device__bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.device__screen { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); }
.device__shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .6s var(--ease); }
.device__shot.is-active { opacity: 1; }
.product__rail { display: none; }
.product__title { font-size: var(--fs-h2); margin-bottom: var(--space-3); }
.product__head { margin-bottom: var(--space-6); }
.features { display: grid; }
.feature { padding: var(--space-4) 0 var(--space-4) var(--space-5); border-left: 2px solid var(--border); transition: border-color .4s var(--ease); }
.feature__title { font-size: var(--fs-lg); margin-bottom: var(--space-1); color: var(--muted); transition: color .4s var(--ease); }
.feature__text { color: var(--muted); font-size: var(--fs-sm); max-width: 34rem; }
.feature.is-active { border-left-color: var(--accent-strong); }
.feature.is-active .feature__title { color: var(--text); }
.product__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); margin-top: var(--space-6); }

@media (min-width: 1024px) {
  .product__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; gap: var(--space-8); }
  .product:nth-of-type(even) .product__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .product:nth-of-type(even) .product__stage { order: 2; }
  .product__stage { position: sticky; top: calc(var(--header-h) + 8vh); }
  .product__rail { display: block; position: absolute; top: 0; bottom: 0; right: -24px; width: 2px; background: var(--border); border-radius: 2px; overflow: hidden; }
  .product:nth-of-type(even) .product__rail { right: auto; left: -24px; }
  .product__rail span { display: block; height: 100%; background: var(--accent-strong); transform-origin: top; transform: scaleY(var(--rail-p, 0)); }
  .feature { min-height: 26vh; display: flex; flex-direction: column; justify-content: center; }
}
@media (max-width: 1023px) {
  .feature__title { color: var(--text); }
  .feature { border-left-color: var(--accent-soft); }
}

/* 9 — how it works (a real sequence, so it is numbered) ------------------- */
.steps-wrap { position: relative; }
.steps { display: grid; gap: var(--space-6); }
.step__num { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--accent-strong); background: var(--bg); color: var(--accent-strong); font: 700 var(--fs-md)/1 var(--font-head); margin-bottom: var(--space-4); position: relative; }
.step__title { font-size: var(--fs-lg); margin-bottom: var(--space-2); }
.step__text { color: var(--muted); font-size: var(--fs-sm); }
.steps__line { display: none; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps__line { display: block; position: absolute; left: 26px; right: 26px; top: 26px; height: 1px; background: var(--border); }
  .steps__line span { display: block; height: 100%; background: var(--accent-strong); transform-origin: left; }
}

/* 10 — why ---------------------------------------------------------------- */
.tiles { display: grid; gap: var(--space-7) var(--space-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.tile { padding-top: var(--space-5); border-top: 1px solid var(--border); }
.tile__icon { color: var(--accent-strong); margin-bottom: var(--space-4); }
.tile__title { font-size: var(--fs-lg); margin-bottom: var(--space-2); }
.tile__text { color: var(--muted); font-size: var(--fs-sm); }

/* 11 — references --------------------------------------------------------- */
.refs__grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.ref__link { display: block; height: 100%; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; text-decoration: none; transition: border-color .25s var(--ease); }
.ref__link:hover { border-color: var(--muted); color: inherit; }
.ref__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.ref__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.ref__link:hover .ref__media img { transform: scale(1.03); }
.ref__body { display: grid; gap: var(--space-2); padding: var(--space-6); }
.ref__name { font: 700 var(--fs-h3)/1.1 var(--font-head); }
.ref__domain { font-size: var(--fs-sm); color: var(--accent-strong); }
.ref__text { color: var(--muted); font-size: var(--fs-sm); }
.ref__cta { margin-top: var(--space-3); font-weight: 600; font-size: var(--fs-sm); }

/* 12 — contact / form ----------------------------------------------------- */
.contact { background: radial-gradient(ellipse 60% 50% at 80% 30%, rgb(92 242 194 / .06), transparent 70%); }
.contact__inner { display: grid; gap: var(--space-8); }
@media (min-width: 1024px) { .contact__inner { grid-template-columns: 5fr 7fr; align-items: start; } }
.contact__direct { margin-top: var(--space-5); font-weight: 600; }
.form { display: grid; gap: var(--space-5); padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.form__grid { display: grid; gap: var(--space-5); }
@media (min-width: 640px) { .form__grid { grid-template-columns: 1fr 1fr; } }
.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field { display: grid; gap: var(--space-2); }
.field label, .field legend { font-size: var(--fs-sm); font-weight: 600; }
.field__opt { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; min-height: 48px; padding: .75em 1em; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit; font-size: var(--fs-md);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-strong); box-shadow: 0 0 0 3px rgb(92 242 194 / .2); }
.field ::placeholder { color: var(--quiet); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field__error { font-size: var(--fs-xs); color: var(--danger); }
.field__error:empty { display: none; }
.choices { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.choices legend { width: 100%; margin-bottom: var(--space-3); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: .55em 1.2em; border: 1px solid var(--border); border-radius: 999px; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease); }
.choice input:checked + span { border-color: var(--accent-strong); background: var(--accent-soft); color: var(--accent-strong); }
.choice input:focus-visible + span { outline: 2px solid var(--accent-strong); outline-offset: 3px; }
.choices .field__error { width: 100%; }
.check { grid-template-columns: auto 1fr; align-items: start; column-gap: var(--space-3); }
.check input { width: 22px; height: 22px; margin-top: .15em; accent-color: var(--accent-strong); }
.check label { font-weight: 400; color: var(--muted); }
.check .field__error { grid-column: 1 / -1; }
.form__status:empty { display: none; }
.form__status { padding: var(--space-4) var(--space-5); border-radius: var(--radius-sm); border: 1px solid var(--border); font-size: var(--fs-sm); }
.form__status.is-sent { border-color: var(--accent-strong); background: var(--accent-soft); }
.form__status.is-error { border-color: var(--danger); background: var(--danger-soft); }
.form__submit { justify-self: start; }

/* 13 — footer ------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); padding-top: var(--space-8); color: var(--muted); font-size: var(--fs-sm); }
.site-footer__inner { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-footer__brand img { height: 24px; width: auto; margin-bottom: var(--space-3); }
.site-footer__h { font: 600 var(--fs-sm)/1.4 var(--font-head); color: var(--text); margin-bottom: var(--space-3); }
.site-footer__links { display: grid; gap: var(--space-2); align-content: start; }
.site-footer__bottom { padding-block: var(--space-6); margin-top: var(--space-7); border-top: 1px solid var(--border); font-size: var(--fs-xs); }

/* 14 — legal / 404 -------------------------------------------------------- */
.legal, .notfound { padding-block: calc(var(--header-h) + var(--space-8)) var(--space-9); }
.legal h1, .notfound h1 { font-size: var(--fs-h2); margin-block: var(--space-3) var(--space-6); }
.prose { max-width: 44rem; display: grid; gap: var(--space-4); color: var(--muted); }
.prose strong { color: var(--text); }
.notfound { min-height: 70vh; }
.notfound .lead { margin-bottom: var(--space-6); }

/* 15 — motion ------------------------------------------------------------- */
@keyframes reveal-up { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes curtain-open { from { clip-path: inset(10% 6% 10% 6% round 32px); } to { clip-path: inset(0 0 0 0 round 0); } }
@keyframes draw-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes draw-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }

@keyframes brain-signal { from { stroke-dashoffset: 100; opacity: 1; } to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes brain-pulse { 0%, 100% { transform: scale(.7); opacity: .5; } 50% { transform: scale(1.35); opacity: 1; } }

@media (prefers-reduced-motion: no-preference) {
  /* Hero brain: lit nodes pulse, impulses run out of them along the links */
  .brain__signals line { animation: brain-signal 2.8s linear infinite; }
  .brain__lit .halo { animation: brain-pulse 3.2s var(--ease) infinite; }
  .brain .d1, .brain .d1 .halo { animation-delay: -.7s; }
  .brain .d2, .brain .d2 .halo { animation-delay: -1.4s; }
  .brain .d3, .brain .d3 .halo { animation-delay: -2.1s; }

  /* A: modern browsers — animations driven by scroll position, no JS needed */
  @supports (animation-timeline: view()) {
    .reveal { animation: reveal-up linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    .steps .reveal:nth-child(2), .tiles .reveal:nth-child(2) { animation-range: entry 8% entry 78%; }
    .steps .reveal:nth-child(3), .tiles .reveal:nth-child(3) { animation-range: entry 16% entry 86%; }
    .steps .reveal:nth-child(4), .tiles .reveal:nth-child(4) { animation-range: entry 24% entry 94%; }
    .curtain { animation: curtain-open linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
    .steps-wrap { view-timeline-name: --steps; }
    .steps__line span { animation: draw-x linear both; animation-timeline: --steps; animation-range: entry 30% cover 55%; }
    .product { view-timeline-name: --product; }
    .product__rail span { animation: draw-y linear both; animation-timeline: --product; animation-range: contain 0% contain 100%; }
  }

  /* B: fallback — app.js adds .io-motion and toggles .is-in / sets --rail-p */
  .io-motion .reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .io-motion .steps .reveal:nth-child(2), .io-motion .tiles .reveal:nth-child(2) { transition-delay: .08s; }
  .io-motion .steps .reveal:nth-child(3), .io-motion .tiles .reveal:nth-child(3) { transition-delay: .16s; }
  .io-motion .steps .reveal:nth-child(4), .io-motion .tiles .reveal:nth-child(4) { transition-delay: .24s; }
  .io-motion .reveal.is-in { opacity: 1; transform: none; }
  .io-motion .curtain { clip-path: inset(10% 6% 10% 6% round 32px); transition: clip-path 1.2s var(--ease); }
  .io-motion .curtain.is-in { clip-path: inset(0 0 0 0 round 0); }
  .io-motion .steps__line span { transform: scaleX(0); transition: transform 1.6s var(--ease) .2s; }
  .io-motion .steps-wrap.is-in .steps__line span { transform: scaleX(1); }
}

/* Reduced motion: no pinning, no parallax, no scroll-linked effects */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .product__stage { position: static !important; }
  .feature { min-height: 0 !important; }
  .product__rail { display: none !important; }
  .steps__line span { transform: none; }
}

/* 16 — admin -------------------------------------------------------------- */
.admin { font-size: var(--fs-sm); }
.admin-bar { border-bottom: 1px solid var(--border); background: var(--surface); }
.admin-bar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5); min-height: 64px; }
.admin-bar .brand img { height: 24px; }
.admin-nav { display: flex; flex-wrap: wrap; gap: var(--space-4); flex: 1; }
.admin-nav a { color: var(--muted); text-decoration: none; padding: var(--space-2) 0; border-bottom: 2px solid transparent; }
.admin-nav a[aria-current="page"] { color: var(--text); border-color: var(--accent-strong); }
.admin-main { padding-block: var(--space-7); display: grid; gap: var(--space-6); }
.admin h1 { font-size: var(--fs-h3); margin-bottom: var(--space-4); }
.admin-card { padding: var(--space-6); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.admin-card--narrow { max-width: 420px; width: 100%; margin: 8vh auto 0; }
.admin-logo { height: 30px; width: auto; margin-bottom: var(--space-5); }
.admin-muted { color: var(--muted); }
.admin-error { color: var(--danger); margin-block: var(--space-3); }
.admin-flash { padding: var(--space-3) var(--space-4); border: 1px solid var(--accent-strong); border-radius: var(--radius-sm); background: var(--accent-soft); }
.admin-flash--error { border-color: var(--danger); background: var(--danger-soft); }
.admin-form { display: grid; gap: var(--space-4); margin-top: var(--space-5); }
.admin-form label { display: grid; gap: var(--space-2); font-weight: 600; }
.admin input[type="text"], .admin input[type="email"], .admin input[type="password"], .admin input[type="search"],
.admin input[type="number"], .admin select, .admin textarea {
  width: 100%; min-height: 40px; padding: .5em .75em; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text); font: inherit;
}
.admin textarea { min-height: 72px; resize: vertical; }
.admin input:focus, .admin select:focus, .admin textarea:focus { outline: none; border-color: var(--accent-strong); }
.admin-toolbar { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: end; }
.admin-toolbar > * { width: auto; }
.admin-toolbar label { display: grid; gap: var(--space-1); color: var(--muted); }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.admin-table th { font-weight: 600; color: var(--muted); background: var(--surface); white-space: nowrap; }
.admin-table tr.is-new td:first-child { box-shadow: inset 3px 0 0 var(--accent-strong); }
.admin-table details summary { cursor: pointer; color: var(--muted); }
.admin-table form { display: flex; gap: var(--space-2); align-items: center; }
.admin-delete { margin-top: var(--space-2); }
.admin-delete summary { cursor: pointer; color: var(--muted); font-size: var(--fs-xs); }
.admin-delete form { margin-top: var(--space-2); }
.admin-danger { --btn-bd: var(--danger); --btn-fg: var(--danger); }
.admin-badge { display: inline-block; padding: .15em .6em; border-radius: 999px; border: 1px solid var(--border); font-size: var(--fs-xs); vertical-align: middle; }
.tr-list { display: grid; gap: var(--space-3); }
.tr-row { display: grid; gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); scroll-margin-top: var(--space-6); }
.tr-row:target { border-color: var(--accent-strong); }
.tr-row code { color: var(--accent-strong); font-size: var(--fs-xs); }
.tr-row__fields { display: grid; gap: var(--space-3); }
@media (min-width: 900px) { .tr-row__fields { grid-template-columns: 1fr 1fr auto; align-items: end; } }
.tr-row label { display: grid; gap: var(--space-1); font-size: var(--fs-xs); color: var(--muted); }
.tr-row .is-empty { border-color: var(--danger); }
.admin-grid-2 { display: grid; gap: var(--space-4); }
@media (min-width: 800px) { .admin-grid-2 { grid-template-columns: 1fr 1fr; } }
.admin fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-5); }
.admin legend { padding-inline: var(--space-2); font-weight: 700; }
.admin h2 { font-size: var(--fs-lg); margin-bottom: var(--space-4); }
.admin-order { display: flex; gap: var(--space-1); }
.admin-order form { display: inline; }
.admin-switch { min-height: 36px; padding: .35em .9em; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--muted); font: inherit; font-size: var(--fs-xs); font-weight: 600; cursor: pointer; }
.admin-switch.is-on { border-color: var(--accent-strong); background: var(--accent-soft); color: var(--accent-strong); }
.admin-check { display: flex !important; align-items: center; gap: var(--space-2); font-weight: 600; }
.admin-check input { width: 20px; height: 20px; accent-color: var(--accent-strong); }
@media (min-width: 600px) { .admin-inline { grid-template-columns: 1fr auto; align-items: end; } }
.admin-form > .btn--sm, .admin-inline > .btn { justify-self: start; }
.admin-features { display: grid; gap: var(--space-4); }
.admin-feature { display: grid; gap: var(--space-5); scroll-margin-top: var(--space-6); }
.admin-feature:target { border-color: var(--accent-strong); }
@media (min-width: 900px) { .admin-feature { grid-template-columns: 240px 1fr; } }
.admin-feature__side { display: grid; gap: var(--space-3); align-content: start; }
.admin-feature__thumb { aspect-ratio: 16 / 10; display: grid; place-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); }
.admin-feature__thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin input[type="url"], .admin input[type="file"] { width: 100%; min-height: 40px; padding: .5em .75em; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); font: inherit; }
