/* site/assets/css/site.css
   Extracted from Design/Services.dc.html (inline styles -> classes).
   Design tokens on :root mirror the original hex/rgba values 1:1 — see
   agent-memory/handoffs/02-sd.md for the class-naming scheme. */

:root {
  /* Surfaces */
  --bg: #0B1626;
  --bg-alt: #0A1420;
  --bg-footer: #081019;
  --bg-card-dark: #12283f;
  --band: #F4F7FA;
  --white: #fff;

  /* Teal accent scale */
  --teal: #35C7D6;
  --teal-light: #7FE0EA;
  /* QA (Step 7, axe-core): darkened from the original #0E8494 -- that value rendered at
     4.11-4.42:1 against --band/#fff/white-on-it, all just under the WCAG AA 4.5:1 text/UI-text
     threshold (site/assets/css/site.css .eyebrow, .card__tag, .card__link, .card__ribbon's
     white-on-teal-dark background). #0D7C8B clears 4.5:1 in all three contexts (verified:
     4.91:1 on #fff, 4.57:1 on --band, 4.91:1 white-text-on-it) while staying visually the same
     teal-accent family -- a ~1-shade darkening, not a palette change. See
     agent-memory/handoffs/07-qa.md for the full before/after contrast numbers. */
  --teal-dark: #0D7C8B;

  /* Text on dark backgrounds */
  --text: #E8EEF4;
  --text-muted: #B4C4D2;
  --text-dim: #8298A8;
  --text-faint: #94A8B8;
  --text-note: #8FA8B8;
  --text-subtle: #6C8194;
  --text-list: #D5E0EA;

  /* Text on the light band / white cards */
  --ink: #0B1626;
  --ink-muted: #5A6B7A;
  --ink-dim: #3A4A58;
  /* QA (Step 7, axe-core): darkened from #7A8896 (3.37:1 on --band, below WCAG AA 4.5:1) --
     .line-header__meta is the only consumer (grep-confirmed). #66727E clears 4.57:1. */
  --ink-faint: #66727E;
  /* QA (Step 7, axe-core): darkened from #94A3AF (2.58:1 on #fff, badly below WCAG AA 4.5:1) --
     .card__note is the only consumer (grep-confirmed). #6B757E clears 4.70:1. */
  --ink-note: #6B757E;

  /* White-alpha scale (dark-on-dark borders/fills) */
  --line-1: rgba(255, 255, 255, 0.03);
  --line-2: rgba(255, 255, 255, 0.06);
  --line-3: rgba(255, 255, 255, 0.07);
  --line-4: rgba(255, 255, 255, 0.08);
  --line-5: rgba(255, 255, 255, 0.12);
  --line-6: rgba(255, 255, 255, 0.18);
  --line-7: rgba(255, 255, 255, 0.22);

  /* Light-band borders */
  --edge: #E1E8EE;
  --edge-soft: #EDF1F5;
  --rule: #DCE4EB;

  /* Teal-alpha scale */
  --teal-a06: rgba(53, 199, 214, 0.06);
  --teal-a08: rgba(53, 199, 214, 0.08);
  --teal-a16: rgba(53, 199, 214, 0.16);
  --teal-a20: rgba(53, 199, 214, 0.2);
  --teal-a22: rgba(53, 199, 214, 0.22);
  --teal-a25: rgba(53, 199, 214, 0.25);
  --teal-a35: rgba(53, 199, 214, 0.35);
  --teal-a40: rgba(53, 199, 214, 0.4);
  --teal-a50: rgba(53, 199, 214, 0.5);

  /* Nav + shadows */
  --nav-bg: rgba(11, 22, 38, 0.72);
  --nav-bg-scrolled: rgba(8, 16, 25, 0.9);
  --nav-border-scrolled: rgba(53, 199, 214, 0.18);
  --shadow-card: rgba(11, 22, 38, 0.5);
  --shadow-nav-scrolled: rgba(0, 0, 0, 0.7);
  --shadow-recommended: rgba(14, 132, 148, 0.4);

  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

/* Self-hosted fonts (latin + latin-ext, incl. Slovak diacritics) */
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/space-grotesk-400.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/space-grotesk-500.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/space-grotesk-600.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/space-grotesk-700.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/ibm-plex-sans-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/ibm-plex-sans-500.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/ibm-plex-sans-600.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/ibm-plex-mono-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/ibm-plex-mono-500.woff2') format('woff2'); }

/* Reset + base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: 73px;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--teal); color: var(--bg-footer); }
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.container { max-width: 1180px; margin: 0 auto; }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-2);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.nav.is-scrolled {
  background: var(--nav-bg-scrolled);
  border-bottom-color: var(--nav-border-scrolled);
  box-shadow: 0 10px 30px -18px var(--shadow-nav-scrolled);
}
.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav__logo {
  width: 38px; height: 38px; border-radius: 9px; flex-shrink: 0;
  background: var(--teal); color: var(--bg-footer);
  font-family: var(--font-heading); font-weight: 700; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
}
.nav__name { font-family: var(--font-heading); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__link {
  color: var(--text-muted); text-decoration: none; font-size: 14.5px; font-weight: 500;
  padding: 4px 0; border-bottom: 2px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.nav__link.is-active { color: var(--teal); border-bottom-color: var(--teal); }
.nav__cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: var(--bg-footer); text-decoration: none;
  font-size: 14px; font-weight: 600; padding: 9px 18px; border-radius: 8px;
}
.nav__lang {
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600;
  border: 1px solid var(--line-6); border-radius: 6px; padding: 4px 9px;
}
.nav__lang:hover { border-color: var(--teal-a35); color: var(--teal-light); }
.nav__toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 44px; height: 44px; flex-shrink: 0;
  background: transparent; border: 1px solid var(--line-6); border-radius: 8px; cursor: pointer;
}
.nav__toggle-bar { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 14px 26px; border-radius: 9px; border: 1px solid transparent;
  cursor: pointer; transition: opacity 0.2s ease;
}
.btn:hover { opacity: 0.9; }
.btn--primary { background: var(--teal); color: var(--bg-footer); }
.btn--outline { background: transparent; color: var(--text); border-color: var(--line-6); }
.btn--block { display: block; width: 100%; text-align: center; padding: 13px; }
.btn--lg { padding: 16px 32px; font-size: 16px; border-radius: 10px; gap: 10px; }

/* HERO */
.hero {
  position: relative; padding: 96px 48px 88px;
  background: radial-gradient(1200px 500px at 78% -10%, var(--teal-a16), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  border-bottom: 1px solid var(--line-2);
}
.hero__inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 64px; align-items: center;
}
.hero__content { animation: fadeUp 0.7s ease both; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  border: 1px solid var(--teal-a35); border-radius: 999px; background: var(--teal-a08);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; color: var(--teal-light);
  margin-bottom: 26px;
}
.hero__badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }
.hero__title { font-family: var(--font-heading); font-weight: 700; font-size: 60px; line-height: 1.03; letter-spacing: -0.025em; margin-bottom: 24px; }
.hero__title-accent { color: var(--teal); }
.hero__lead { font-size: 19px; line-height: 1.6; color: var(--text-muted); max-width: 560px; margin-bottom: 14px; }
.hero__sub { font-size: 15.5px; line-height: 1.6; color: var(--text-dim); max-width: 540px; margin-bottom: 34px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__photo { justify-self: center; animation: fadeUp 0.9s ease both; }
.hero__photo-frame { position: relative; width: 260px; height: 260px; }
.hero__photo-glow {
  position: absolute; inset: -14px; border-radius: 50%;
  background: conic-gradient(from 140deg, var(--teal), transparent 55%, var(--teal-a40));
  filter: blur(2px); opacity: 0.55;
}
.hero__photo-img { position: relative; width: 260px; height: 260px; border-radius: 50%; object-fit: cover; border: 3px solid var(--teal-a50); }

/* PROBLEM BAND */
.problem { padding: 80px 48px; background: var(--bg-alt); }
.problem__inner { max-width: 1000px; margin: 0 auto; text-align: center; }
.problem__title { font-family: var(--font-heading); font-size: 30px; font-weight: 600; line-height: 1.35; letter-spacing: -0.015em; margin-bottom: 38px; }
.problem__title-muted { color: var(--text-dim); }
.problem__cards { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.problem__card { flex: 1; min-width: 230px; padding: 22px 24px; background: var(--line-1); border: 1px solid var(--line-3); border-radius: 12px; text-align: left; }
.problem__card-tag { font-family: var(--font-mono); color: var(--teal); font-size: 13px; margin-bottom: 8px; }
.problem__card-text { color: var(--text-dim); font-size: 14px; line-height: 1.55; }
.problem__footer { margin-top: 34px; font-size: 16px; color: var(--text-muted); max-width: 720px; margin-left: auto; margin-right: auto; line-height: 1.65; }
.problem__footer-strong { color: var(--text); font-weight: 600; }

/* Shared section heading pattern */
.eyebrow-row { text-align: center; margin-bottom: 14px; }
.eyebrow { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-dark); }
.eyebrow--light { color: var(--teal-light); }
.section-title { font-family: var(--font-heading); font-size: 40px; font-weight: 700; letter-spacing: -0.02em; text-align: center; margin-bottom: 14px; color: var(--ink); }
.section-lead { text-align: center; color: var(--ink-muted); font-size: 16px; max-width: 660px; margin: 0 auto; line-height: 1.6; }

.services-intro { padding: 90px 48px 70px; background: var(--band); color: var(--ink); }

/* Service line (#ai / #qa) */
.service-line { padding: 28px 48px 60px; background: var(--band); color: var(--ink); }
#qa.service-line { padding-bottom: 80px; }
.line-header { display: flex; align-items: baseline; gap: 16px; margin-bottom: 26px; }
.line-header__title { font-family: var(--font-heading); font-size: 24px; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); }
.line-header__meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-faint); }
.line-header__rule { flex: 1; height: 1px; background: var(--rule); }

/* Featured (dark) service card */
.featured {
  position: relative; background: linear-gradient(135deg, var(--bg) 0%, var(--bg-card-dark) 100%);
  color: var(--text); border-radius: 20px; padding: 44px 46px; margin-bottom: 24px;
  overflow: hidden; box-shadow: 0 24px 60px -24px var(--shadow-card);
}
.featured__glow {
  position: absolute; top: -60px; right: -40px; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, var(--teal-a22), transparent 70%);
}
.featured__grid { position: relative; display: grid; grid-template-columns: 1.5fr 1fr; gap: 44px; align-items: center; }
.featured__badge {
  display: inline-flex; align-items: center; gap: 8px; background: var(--teal); color: var(--bg-footer);
  font-weight: 700; font-size: 12px; letter-spacing: 0.04em; padding: 5px 12px; border-radius: 999px;
  margin-bottom: 18px; font-family: var(--font-mono);
}
.featured__title { font-family: var(--font-heading); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.featured__desc { color: var(--text-muted); font-size: 15.5px; line-height: 1.65; margin-bottom: 22px; max-width: 520px; }
.featured__features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 26px; max-width: 540px; }
.featured__feature { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-list); }
.featured__feature-icon { color: var(--teal); }

/* Shared "info aside" (duration/price/engagement column) */
.info-aside { border-left: 1px solid var(--line-5); padding-left: 40px; }
.info-aside__label { font-family: var(--font-mono); font-size: 12px; color: var(--teal-light); letter-spacing: 0.06em; margin-bottom: 6px; }
.info-aside__value { font-family: var(--font-heading); font-size: 22px; font-weight: 600; margin-bottom: 22px; }
.info-aside__value--sm { font-size: 20px; }
.info-aside__price { font-family: var(--font-heading); font-size: 34px; font-weight: 700; margin-bottom: 24px; }
.info-aside__price--sm { font-size: 26px; }
.info-aside__price--tight { margin-bottom: 10px; }
.info-aside__note { font-family: var(--font-mono); font-size: 11px; color: var(--text-note); line-height: 1.5; margin-bottom: 22px; }

/* Secondary card grid (white cards) */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { position: relative; background: var(--white); border: 1px solid var(--edge); border-radius: 16px; padding: 32px 30px; display: flex; flex-direction: column; }
.card--recommended { border: 2px solid var(--teal); box-shadow: 0 20px 44px -26px var(--shadow-recommended); }
.card__ribbon {
  position: absolute; top: -13px; left: 30px; background: var(--teal-dark); color: var(--white);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; padding: 5px 14px; border-radius: 999px;
}
.card__tag { font-family: var(--font-mono); font-size: 12px; color: var(--teal-dark); letter-spacing: 0.08em; margin-bottom: 14px; }
.card__title { font-family: var(--font-heading); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; color: var(--ink); }
.card__desc { color: var(--ink-muted); font-size: 14px; margin-bottom: 20px; }
.card__list-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 12px; }
.card__list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; flex: 1; }
.card__list--tight { margin-bottom: 20px; }
.card__list-item { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.5; color: var(--ink-dim); }
.card__list-item-icon { color: var(--teal-dark); flex-shrink: 0; }
.card__note { font-family: var(--font-mono); font-size: 11px; color: var(--ink-note); line-height: 1.5; margin-bottom: 18px; }
.card__footer { border-top: 1px solid var(--edge-soft); padding-top: 18px; display: flex; align-items: center; justify-content: space-between; }
.card__price { font-family: var(--font-heading); font-size: 22px; font-weight: 700; color: var(--ink); }
/* QA (Step 7, axe-core): was `color: var(--text-dim)` -- --text-dim is documented (see this
   file's ":root" comment) as a "text on dark backgrounds" token, but .card__price-suffix lives
   inside .card, a WHITE card (light band section) -- a copy-paste token mismatch that produced
   2.99:1 contrast against #fff (WCAG AA needs 4.5:1). Every sibling in this same .card component
   (.card__desc, .card__list-label) already correctly uses --ink-muted for light-surface text;
   this was the one outlier. --ink-muted clears 5.50:1 on #fff. */
.card__price-suffix { font-size: 14px; font-weight: 500; color: var(--ink-muted); }
.card__link { color: var(--teal-dark); text-decoration: none; font-weight: 600; font-size: 14px; }

/* SPECIAL package (GeoAI) */
.special { padding: 0 48px 90px; background: var(--band); color: var(--ink); }
.special__panel { position: relative; background: var(--bg); color: var(--text); border-radius: 20px; padding: 40px 46px; overflow: hidden; border: 1px solid var(--teal-a25); }
.special__glow {
  position: absolute; bottom: -80px; left: -30px; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, var(--teal-a16), transparent 70%);
}
.special__grid { position: relative; display: grid; grid-template-columns: 1.6fr 1fr; gap: 44px; align-items: center; }
.special__eyebrow { display: block; margin-bottom: 14px; }
.special__title { font-family: var(--font-heading); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; }
.special__desc { color: var(--text-muted); font-size: 15.5px; line-height: 1.65; max-width: 560px; margin-bottom: 20px; }
.special__tags { display: flex; gap: 10px; flex-wrap: wrap; }
.special__tag { font-family: var(--font-mono); font-size: 12px; color: var(--text-list); background: var(--line-2); border: 1px solid var(--line-5); padding: 6px 12px; border-radius: 7px; }
.special__aside .btn--outline { border-color: var(--line-7); }

/* CAPABILITIES */
.capabilities { padding: 90px 48px; background: var(--bg); }
.capabilities .section-title { font-size: 38px; margin-bottom: 52px; color: var(--text); }
.capabilities__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.capability { padding: 30px 32px; background: var(--line-1); border: 1px solid var(--line-4); border-radius: 14px; }
.capability__title { font-family: var(--font-heading); font-size: 19px; font-weight: 600; margin-bottom: 10px; color: var(--teal); }
.capability__desc { color: var(--text-faint); font-size: 14.5px; line-height: 1.65; }
.capability--outcome { background: var(--teal-a06); border-color: var(--teal-a20); display: flex; flex-direction: column; justify-content: center; }
.capability--outcome p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }
.capability--outcome strong { font-weight: 600; }
.capability--outcome strong.is-light { color: var(--text); }
.capability--outcome strong.is-teal { color: var(--teal); }

/* WHY ME */
.why { padding: 90px 48px; background: var(--bg-alt); border-top: 1px solid var(--line-2); }
.why__grid { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.why__eyebrow { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-light); margin-bottom: 16px; }
.why__title { font-family: var(--font-heading); font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 22px; }
.why__text { color: var(--text-faint); font-size: 15.5px; line-height: 1.7; margin-bottom: 16px; }
.why__text:last-child { margin-bottom: 0; }
.why__text strong { color: var(--text); font-weight: 600; }
.why__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { padding: 26px; background: var(--line-1); border: 1px solid var(--line-4); border-radius: 14px; }
.stat--accent { background: var(--teal-a06); border-color: var(--teal-a20); }
.stat__value { font-family: var(--font-heading); font-size: 38px; font-weight: 700; color: var(--text); }
.stat--accent .stat__value { color: var(--teal); }
.stat__label { color: var(--text-faint); font-size: 13.5px; margin-top: 6px; }

/* CONTACT */
.contact { padding: 100px 48px; background: radial-gradient(900px 400px at 50% 120%, var(--teal-a16), transparent 60%), var(--bg); text-align: center; }
.contact__inner { max-width: 900px; margin: 0 auto; }
.contact__title { font-family: var(--font-heading); font-size: 44px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 20px; }
.contact__lead { color: var(--text-muted); font-size: 18px; line-height: 1.6; margin-bottom: 38px; }
.contact__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.contact__location { margin-top: 24px; font-family: var(--font-mono); font-size: 13px; color: var(--text-subtle); }

/* CONTACT FORM */
.contact__grid {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px;
  text-align: left; margin: 0 auto;
}
.contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px;
  background: var(--line-1); border: 1px solid var(--line-4); border-radius: 16px; padding: 32px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field--full { grid-column: 1 / -1; }
.form-label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em;
  color: var(--text-note); text-transform: uppercase;
}
.form-input, .form-textarea, .form-select {
  font-family: var(--font-body); font-size: 15px; color: var(--text);
  background: var(--bg-alt); border: 1px solid var(--line-6); border-radius: 8px;
  padding: 12px 14px; min-height: 44px; width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-a20);
}
.form-select { cursor: pointer; }
.form-consent {
  display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px;
  color: var(--text-faint); line-height: 1.5; cursor: pointer; text-align: left;
}
.form-consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--teal); flex-shrink: 0; }
.form-consent a { color: var(--teal-light); text-decoration: underline; }
.form-error { font-size: 12.5px; color: #FF8A80; min-height: 15px; }
.form-status { font-family: var(--font-mono); font-size: 13px; color: var(--teal-light); min-height: 18px; margin-top: 4px; }
.form-status.is-error { color: #FF8A80; }
.form-submit { min-height: 48px; }
.form-honeypot {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.contact__alt {
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
  padding: 32px 28px; background: var(--teal-a06); border: 1px solid var(--teal-a20); border-radius: 16px;
  align-self: start; text-align: left;
}
.contact__alt-label { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); }

/* FOOTER */
.footer { padding: 32px 48px 88px; background: var(--bg-footer); border-top: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer__brand { display: flex; align-items: center; gap: 11px; }
.footer__logo { width: 30px; height: 30px; border-radius: 7px; background: var(--teal); color: var(--bg-footer); font-family: var(--font-heading); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.footer__copy { color: var(--text-dim); font-size: 13.5px; }
.footer__links { display: flex; gap: 24px; }
.footer__link { color: var(--text-dim); text-decoration: none; font-size: 13.5px; }

/* LEGAL (privacy notice) */
.legal { padding: 64px 48px 100px; background: var(--bg); min-height: 60vh; }
.legal__inner { max-width: 760px; margin: 0 auto; }
.legal__back { display: inline-block; margin-bottom: 32px; color: var(--teal); text-decoration: none; font-family: var(--font-mono); font-size: 13px; }
.legal__title { font-family: var(--font-heading); font-size: 38px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.legal__updated { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-dim); margin-bottom: 32px; }
.legal__lead { color: var(--text-muted); font-size: 16px; line-height: 1.7; margin-bottom: 40px; }
.legal__inner h2 { font-family: var(--font-heading); font-size: 20px; font-weight: 600; margin-top: 36px; margin-bottom: 10px; color: var(--text); }
.legal__inner p { color: var(--text-faint); font-size: 15px; line-height: 1.7; margin-bottom: 4px; }

/* =========================================================================
   RESPONSIVE (additive — desktop above is unchanged)
   ========================================================================= */
@media (max-width: 900px) {
  .nav, .hero, .problem, .services-intro, .service-line, .special, .capabilities, .why, .contact, .footer, .legal {
    padding-left: 24px; padding-right: 24px;
  }

  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--nav-bg-scrolled); border-bottom: 1px solid var(--line-2);
    padding: 8px 24px 18px; max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav__links.is-open { max-height: 420px; }
  .nav__link {
    display: flex; align-items: center; min-height: 44px; width: 100%;
    border-bottom: 1px solid var(--line-2); border-radius: 0;
  }
  .nav__cta { margin-top: 10px; justify-content: center; min-height: 44px; }

  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__photo { order: -1; }
  .hero__title { font-size: 48px; }

  .featured__grid, .special__grid, .why__grid { grid-template-columns: 1fr; gap: 32px; }
  .featured__aside, .special__aside, .info-aside { border-left: none; padding-left: 0; border-top: 1px solid var(--line-5); padding-top: 28px; }

  .cards, .capabilities__grid { grid-template-columns: 1fr; }

  .why__grid { text-align: left; }

  .contact__grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; padding: 24px; }
}

@media (max-width: 640px) {
  .hero { padding-top: 72px; padding-bottom: 56px; }
  .hero__title { font-size: 38px; }
  .hero__lead { font-size: 17px; }
  .hero__actions { flex-direction: column; align-self: stretch; }
  .hero__actions .btn { width: 100%; }

  .problem__title { font-size: 24px; }
  .problem__cards { flex-direction: column; }

  .section-title { font-size: 30px; }
  .capabilities .section-title { font-size: 26px; margin-bottom: 36px; }

  .line-header { flex-wrap: wrap; }
  .line-header__rule { display: none; }

  .featured, .special__panel { padding: 30px 24px; }
  .featured__features { grid-template-columns: 1fr; }

  .card, .problem__card, .capability, .stat { padding: 24px 22px; }

  .why__stats { grid-template-columns: 1fr; }

  .contact__title { font-size: 32px; }
  .contact__actions .btn { width: 100%; justify-content: center; }

  .footer { justify-content: center; text-align: center; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================================
   AI CHAT WIDGET — re-skin tokens for the lazy-loaded site/widget/chat-widget.css,
   plus the #chat-toggle button, which is server-rendered (site/template.html) and must be
   fully styled here (site.css is always loaded; chat-widget.css is not, until first click/idle
   preload — see site/assets/js/main.js). --chat-* custom properties are read by
   site/widget/chat-widget.css's `var(--chat-X, <fallback>)` rules; #chat-toggle's own rule lives
   ONLY here (removed from the trimmed chat-widget.css — see its header comment) so there is a
   single source of truth for the one element that must render correctly before any widget JS/CSS
   has loaded.
   ========================================================================= */
:root {
  --chat-brand: var(--teal);
  --chat-brand-ink: #081019;
  --chat-surface: #0F1E30;
  --chat-bg: var(--bg-alt);
  --chat-border: var(--line-6);
  --chat-border-soft: var(--line-4);
  --chat-text: var(--text);
  --chat-text-muted: var(--text-dim);
  --chat-error: #FF8A80;
  --chat-msg-user-bg: var(--teal-a20);
  --chat-msg-bot-bg: var(--line-4);
  --chat-code-bg: var(--bg-footer);
  --chat-code-fg: var(--text);
  --chat-radius: 16px;
  --chat-radius-sm: 8px;
  --chat-fs-base: 14px;
  --chat-fs-title: 14px;
  --chat-fs-meta: 11.5px;
  --chat-link-color: var(--teal-light);
  --chat-shadow: 0 20px 60px var(--shadow-card);
  --chat-shadow-modal: 0 20px 60px rgba(0, 0, 0, 0.5);
  --chat-font: var(--font-body);
}

#chat-toggle {
  position: fixed; right: 24px; bottom: 24px; z-index: 1000;
  width: 56px; height: 56px; border-radius: 50%; border: none;
  background: var(--chat-brand); color: var(--chat-brand-ink);
  font-size: 24px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
#chat-toggle:hover { transform: scale(1.06); box-shadow: 0 14px 34px var(--shadow-card); }
#chat-toggle:focus-visible { outline: 2px solid var(--teal-light); outline-offset: 3px; }

@media (max-width: 640px) {
  #chat-toggle { right: 16px; bottom: 16px; width: 52px; height: 52px; font-size: 22px; }
}

/* In-chat lead-capture form (built by site/widget/chat-widget.js inside #help-panel) — matches
   the site's own .contact-form input styling so it doesn't look like a foreign embed. */
#chat-lead-form {
  display: none; flex-direction: column; gap: 10px; padding: 14px; overflow-y: auto; flex: 1;
  font-family: var(--chat-font); color: var(--chat-text); background: var(--chat-surface);
}
#chat-lead-title { font-family: var(--font-heading); font-size: 15px; font-weight: 600; margin: 0 0 2px; }
.chat-lead-field { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--chat-text-muted); }
.chat-lead-field input, .chat-lead-field textarea {
  font-family: var(--chat-font); font-size: 13.5px; color: var(--chat-text);
  background: var(--chat-bg); border: 1px solid var(--chat-border); border-radius: var(--chat-radius-sm);
  padding: 8px 10px; resize: vertical;
}
.chat-lead-field input:focus, .chat-lead-field textarea:focus {
  outline: none; border-color: var(--chat-brand); box-shadow: 0 0 0 3px var(--teal-a20);
}
.chat-lead-honeypot { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chat-lead-check { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--chat-text-muted); line-height: 1.45; cursor: pointer; }
.chat-lead-check input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--chat-brand); flex-shrink: 0; }
.chat-lead-consent a { color: var(--chat-link-color); text-decoration: underline; }
#chat-lead-status { font-family: var(--font-mono); font-size: 12px; color: var(--chat-link-color); min-height: 16px; margin: 0; }
#chat-lead-status.is-error { color: var(--chat-error); }
.chat-lead-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 2px; }
.chat-lead-actions button {
  font-family: var(--chat-font); font-size: 13px; padding: 8px 14px; border: none;
  border-radius: var(--chat-radius-sm); cursor: pointer;
}
#chat-lead-cancel { background: var(--chat-border-soft); color: var(--chat-text); }
#chat-lead-submit { background: var(--chat-brand); color: var(--chat-brand-ink); font-weight: 600; }
#chat-lead-form.is-success .chat-lead-field,
#chat-lead-form.is-success .chat-lead-check,
#chat-lead-form.is-success .chat-lead-actions { opacity: 0.5; pointer-events: none; }
.chat-error { color: var(--chat-error); }
