/* Rustamov Agency — site styles, "Cyberpunk Business".
   Concept: a dark analytics console. ~80% calm interface, ~20% neon: cyan for interaction,
   violet for graphic details, magenta only where data breaks (warnings).
   Structure: tokens → base → layout → components → pages → motion → utilities.
   Single dark theme by design: colors are set explicitly, no light variant. */

/* ---------- Tokens ---------- */
:root {
  --bg: #070a11;
  --bg-2: #0a0f18;
  --surface: #101622;
  --surface-2: #151e2d;
  --input: #0b111b;
  --ink: #f1f5fa;
  --ink-2: #a6b2c4;
  --ink-3: #7d8ba1;
  --line: #1f2a3c;
  --line-strong: #2e3d56;

  --cyan: #38e8ff;
  --cyan-hover: #82f2ff;
  --cyan-soft: rgb(56 232 255 / 0.08);
  --cyan-line: rgb(56 232 255 / 0.34);
  --cyan-glow: rgb(56 232 255 / 0.32);
  --violet: #9470ff;
  --violet-soft: rgb(148 112 255 / 0.1);
  --violet-line: rgb(148 112 255 / 0.4);
  --magenta: #ff4fd8;
  --magenta-soft: rgb(255 79 216 / 0.09);
  --on-accent: #03121a;
  --ok: #45f0b0;
  --ok-soft: rgb(69 240 176 / 0.12);
  --err: #ff6b8a;
  --err-soft: rgb(255 107 138 / 0.1);
  --focus: #38e8ff;

  /* Aliases kept for components written against the first version. */
  --accent: var(--cyan);
  --accent-hover: var(--cyan-hover);
  --accent-soft: var(--cyan-soft);
  --marker: var(--cyan);

  --font-display: "Tektur", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 0 rgb(255 255 255 / 0.03) inset, 0 18px 40px -24px rgb(0 0 0 / 0.9);
  --glow: 0 0 0 1px var(--cyan-line), 0 0 28px -6px var(--cyan-glow);
  --hairline: linear-gradient(90deg, transparent, var(--cyan-line) 20%, var(--violet-line) 80%, transparent);
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(56px, 8vw, 104px);
  --header-h: 64px;

  color-scheme: dark;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background-color: var(--bg);
  /* Two faint light sources at the top of the page; static, cheap to paint. */
  background-image:
    radial-gradient(900px 520px at 8% -8%, rgb(56 232 255 / 0.09), transparent 62%),
    radial-gradient(760px 480px at 100% 0%, rgb(148 112 255 / 0.1), transparent 60%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img, svg { display: block; max-width: 100%; height: auto; }

/* Components set their own display; the hidden attribute must still win. */
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.3rem + 2.9vw, 3.35rem); font-weight: 700; line-height: 1.08; }
h2 { font-size: clamp(1.55rem, 1.15rem + 1.6vw, 2.3rem); }
h3 { font-size: clamp(1.1rem, 1.02rem + 0.35vw, 1.28rem); font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 1em; }
p, li { text-wrap: pretty; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

a {
  color: var(--cyan);
  text-decoration-color: rgb(56 232 255 / 0.45);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
a:hover { color: var(--cyan-hover); text-decoration-color: currentColor; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

strong, b { font-weight: 600; color: var(--ink); }

code, .mono { font-family: var(--mono); font-size: 0.88em; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

::selection { background: var(--cyan); color: var(--on-accent); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(780px + 2 * var(--gutter)); }

.section { padding-block: var(--section-y); }
.section--alt {
  position: relative;
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}
.section--alt::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto;
  height: 1px;
  background: var(--hairline);
  opacity: 0.6;
}
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section + .section:not(.section--alt) { padding-top: 0; }
.section--alt + .section { padding-top: var(--section-y); }

.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--ink-2); font-size: 1.1rem; }

.grid { display: grid; gap: clamp(14px, 2vw, 22px); }
.grid--2 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

.split {
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.split > * { min-width: 0; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--wide-left { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--cyan);
  color: var(--on-accent);
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--on-accent); }

/* ---------- Header & navigation ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgb(7 10 17 / 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.3) blur(12px);
  -webkit-backdrop-filter: saturate(1.3) blur(12px);
}
.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  background: var(--hairline);
  opacity: 0.5;
  pointer-events: none;
}
/* Paints the band above the sticky header on devices with a top safe-area inset (0 height elsewhere). */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 51;
  background: var(--bg);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45em;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  white-space: nowrap;
}
.logo:hover { color: var(--ink); text-decoration: none; }
.logo__mark {
  align-self: center;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--cyan);
  color: var(--on-accent);
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 0 18px -4px var(--cyan-glow);
}
.logo__sub {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 8px; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.nav-toggle:hover { border-color: var(--cyan-line); }
.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle__icon { position: relative; }
.nav-toggle__icon::before,
.nav-toggle__icon::after { content: ""; position: absolute; left: 0; }
.nav-toggle__icon::before { top: -5px; }
.nav-toggle__icon::after { top: 5px; }
.nav-toggle[aria-expanded="true"] { border-color: var(--cyan-line); color: var(--cyan); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { transform: translateY(-5px) rotate(-45deg); }

.nav-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding: 8px var(--gutter) 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--line-strong);
  box-shadow: 0 24px 48px -24px rgb(0 0 0 / 0.9);
}
.nav-panel.is-open { display: block; }

.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list > li { border-bottom: 1px solid var(--line); }
.nav-link,
.nav-sub-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-link:hover,
.nav-sub-toggle:hover { color: var(--cyan); text-decoration: none; }
.nav-link[aria-current="page"] { color: var(--cyan); }
.nav-sub-toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 10px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}
.nav-sub-toggle[aria-expanded="true"],
.nav-sub-toggle[data-current="true"] { color: var(--cyan); }
.nav-sub-toggle[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }

.nav-sub { list-style: none; margin: 0 0 12px; padding: 0; display: none; }
.nav-sub.is-open { display: block; }
.nav-sub a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.nav-sub a:hover { background: var(--surface-2); border-color: var(--line-strong); color: var(--ink); }
.nav-sub a[aria-current="page"] { background: var(--cyan-soft); border-color: var(--cyan-line); }
.nav-sub__title { display: block; font-weight: 600; }
.nav-sub__desc { display: block; font-size: 0.86rem; color: var(--ink-3); line-height: 1.4; }
.nav-sub__all { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.nav-sub__all a { font-size: 0.9rem; color: var(--cyan); }
.nav-sub__all a::after { content: " →"; }

.nav-cta { margin-top: 16px; width: 100%; }

@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .nav-panel {
    display: flex !important;
    align-items: center;
    gap: 20px;
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .nav-list { display: flex; align-items: center; gap: 2px; }
  .nav-list > li { position: relative; border: 0; }
  .nav-link,
  .nav-sub-toggle {
    min-height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--ink-2);
  }
  .nav-link:hover,
  .nav-sub-toggle:hover { background: var(--surface); color: var(--ink); }
  .nav-link[aria-current="page"],
  .nav-sub-toggle[data-current="true"] { color: var(--cyan); background: var(--cyan-soft); }
  .nav-sub-toggle::after { width: 6px; height: 6px; margin-left: 8px; }
  .nav-sub {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 340px;
    margin: 0;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    box-shadow: 0 24px 48px -20px rgb(0 0 0 / 0.95), 0 0 0 1px rgb(56 232 255 / 0.05);
  }
  .nav-cta { margin-top: 0; width: auto; }
}
/* With a mouse the services menu also opens on hover; the invisible bridge keeps it open across the gap. */
@media (min-width: 1000px) and (hover: hover) {
  .nav-list > li:hover > .nav-sub { display: block; }
  .nav-list > li:hover > .nav-sub-toggle { background: var(--surface); color: var(--ink); }
  .nav-list > li:hover > .nav-sub-toggle::after { transform: translateY(2px) rotate(-135deg); }
  .nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
}

/* No-JS fallback: show navigation as a plain list. */
.no-js .nav-toggle { display: none; }
.no-js .nav-panel { display: block; position: static; box-shadow: none; padding: 0 0 16px; }
.no-js .site-header__inner { flex-wrap: wrap; }
.no-js .nav-sub { display: block; position: static; width: auto; box-shadow: none; border: 0; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--cyan);
  color: var(--on-accent);
  box-shadow: 0 0 22px -8px var(--cyan-glow);
}
.btn--primary:hover {
  background: var(--cyan-hover);
  color: var(--on-accent);
  box-shadow: 0 0 0 1px var(--cyan-line), 0 0 30px -4px var(--cyan-glow);
}
.btn--secondary {
  background: rgb(16 22 34 / 0.6);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--secondary:hover { border-color: var(--cyan-line); color: var(--ink); box-shadow: 0 0 20px -10px var(--cyan-glow); }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 0.94rem; }
.btn[disabled],
.btn[aria-disabled="true"] { opacity: 0.6; cursor: progress; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (max-width: 479px) {
  .btn-row > .btn { width: 100%; }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
}
.link-arrow::after {
  content: "→";
  transition: transform 0.18s ease;
}
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan-glow);
}
.lead { font-size: clamp(1.08rem, 1.02rem + 0.3vw, 1.22rem); color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-3); }
.small { font-size: 0.9rem; }
.mark { color: var(--cyan); }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.65rem); }
.prose h3 { margin-top: 1.8em; }
.prose li { margin-bottom: 0.35em; }

.h1-accent {
  color: var(--cyan);
  text-shadow: 0 0 28px rgb(56 232 255 / 0.28);
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding-top: 24px; font-size: 0.88rem; font-family: var(--mono); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; color: var(--ink-3); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.breadcrumbs a { color: var(--ink-2); text-decoration: none; }
.breadcrumbs a:hover { color: var(--cyan); text-decoration: underline; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(40px, 6vw, 88px) var(--section-y);
}
/* Technical grid that fades out from the headline. Decorative, static. */
.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgb(56 232 255 / 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgb(56 232 255 / 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 25% 20%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 80% at 25% 20%, #000 10%, transparent 70%);
  pointer-events: none;
}
.hero__grid { display: grid; gap: clamp(32px, 5vw, 56px); align-items: start; }
.hero__grid > * { min-width: 0; }
@media (min-width: 1000px) {
  .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
}
.hero__copy { position: relative; }
.hero__copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -12%;
  top: 4%;
  width: 80%;
  height: 60%;
  background: radial-gradient(closest-side, rgb(56 232 255 / 0.12), transparent);
  pointer-events: none;
}
.hero h1 { max-width: 17ch; }
.hero .lead { margin-bottom: 28px; }
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.hero__facts li { display: inline-flex; align-items: center; gap: 9px; }
.hero__facts li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan-glow);
  flex: none;
}

.page-hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(28px, 4vw, 56px) clamp(40px, 6vw, 72px);
}
.page-hero::before { opacity: 0.6; }
.page-hero h1 { max-width: 20ch; }

/* ---------- Lead flow diagram ---------- */
.flow {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: clamp(20px, 3vw, 28px);
  background: linear-gradient(180deg, rgb(21 30 45 / 0.92), rgb(16 22 34 / 0.92));
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow), 0 0 60px -30px var(--cyan-glow);
}
/* Top edge light line; the moving highlight is added in the motion section. */
.flow::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--hairline);
}
.flow__title { margin-bottom: 20px; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.flow__title .eyebrow { display: flex; margin-bottom: 6px; }
.flow__body { position: relative; }
.flow__list { list-style: none; margin: 0; padding: 0; counter-reset: flow; }
.flow__step {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 4px 14px;
  padding-bottom: 18px;
}
.flow__step::before {
  counter-increment: flow;
  content: counter(flow);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--cyan-line);
  background: var(--bg);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  grid-row: span 2;
  z-index: 1;
  box-shadow: 0 0 14px -6px var(--cyan-glow);
}
.flow__step::after {
  content: "";
  position: absolute;
  left: 15.5px;
  top: 32px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(var(--cyan-line), rgb(56 232 255 / 0.12));
}
.flow__step:last-child { padding-bottom: 0; }
.flow__step:last-child::after { display: none; }
.flow__name { font-weight: 600; line-height: 1.35; padding-top: 4px; }
.flow__desc { font-size: 0.92rem; color: var(--ink-2); line-height: 1.5; }
.flow__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.flow__step--gap::before {
  border-color: var(--violet-line);
  color: var(--violet);
  box-shadow: 0 0 14px -6px rgb(148 112 255 / 0.5);
}
.flow__step--gap::after { background: linear-gradient(var(--violet-line), rgb(148 112 255 / 0.12)); }
.flow__gap {
  position: relative;
  margin: 0 0 18px 46px;
  padding: 9px 12px;
  border-left: 2px solid var(--magenta);
  background: var(--magenta-soft);
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--ink);
  border-radius: 0 8px 8px 0;
}
/* Dashed connector across the gap note: the line "breaks" here. */
.flow__gap::before {
  content: "";
  position: absolute;
  left: -31px;
  top: -18px;
  bottom: -18px;
  border-left: 1px dashed rgb(255 79 216 / 0.45);
}
.flow__marker {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px 2px var(--cyan-glow), 0 0 2px #fff;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
}
.flow__loop {
  display: flex;
  gap: 10px;
  margin: 20px 0 0;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--violet-line);
  background: var(--violet-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}
.flow__loop svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--violet); }

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 9px;
  border-radius: 6px;
  border: 1px solid rgb(56 232 255 / 0.22);
  background: rgb(56 232 255 / 0.06);
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.3;
  color: #a9f3fc;
  white-space: nowrap;
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(20px, 2.4vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
/* Light line along the top edge; brighter on hover. */
.card::after {
  content: "";
  position: absolute;
  inset: -1px 16px auto;
  height: 1px;
  background: var(--hairline);
  opacity: 0.35;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.card > :last-child { margin-bottom: 0; }
.card h3 { margin-bottom: 0.45em; }
.card p { color: var(--ink-2); }
.card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.card__head .card__label { margin: 0; }
.card__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--cyan-line);
  background: var(--cyan-soft);
  color: var(--cyan);
}
.card__icon svg { width: 22px; height: 22px; }
.card__label {
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.card__footer { margin-top: auto; padding-top: 16px; }
.card--link:hover {
  border-color: var(--cyan-line);
  box-shadow: 0 0 34px -18px var(--cyan-glow);
  transform: translateY(-2px);
}
.card--link:hover::after { opacity: 1; }
.card--link:focus-within { border-color: var(--cyan-line); }
/* Whole-card click target that keeps a single real link for screen readers. */
.card--link .stretched::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card--link .stretched:focus-visible { outline: none; }
.card--link .stretched:focus-visible::before { outline: 2px solid var(--focus); outline-offset: 3px; }
.card--accent {
  border-color: var(--cyan-line);
  background: linear-gradient(160deg, rgb(56 232 255 / 0.07), rgb(16 22 34) 55%);
}
.card--accent::after { opacity: 0.8; }

.situation__if {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}

/* ---------- Lists ---------- */
.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 0.6em;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid var(--cyan-line);
  background: var(--cyan-soft);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 6.5px;
  top: calc(0.3em + 4px);
  width: 5px;
  height: 9px;
  border-right: 1.5px solid var(--cyan);
  border-bottom: 1.5px solid var(--cyan);
  transform: rotate(45deg);
}
.checklist--compact li { margin-bottom: 0.45em; font-size: 0.97rem; color: var(--ink-2); }

.dashlist { list-style: none; padding: 0; margin: 0 0 1em; }
.dashlist li { position: relative; padding-left: 22px; margin-bottom: 0.5em; }
.dashlist li::before { content: "—"; position: absolute; left: 0; color: var(--cyan); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 1em; }
.chips li {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 0.94rem;
  font-weight: 500;
}
.chips li span { font-weight: 400; color: var(--ink-3); }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 4px 20px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--cyan-line);
  border-radius: 8px;
  background: var(--cyan-soft);
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--cyan);
  grid-row: span 2;
  box-shadow: 0 0 18px -10px var(--cyan-glow);
}
.step h3 { margin: 0 0 0.3em; }
.step p { margin: 0; color: var(--ink-2); max-width: 64ch; }
@media (min-width: 760px) {
  .step { grid-template-columns: 72px minmax(0, 0.9fr) minmax(0, 1.4fr); align-items: center; }
  .step::before { grid-row: auto; }
  .step h3 { margin: 0; }
}

/* ---------- Measure table (stacks on mobile) ---------- */
.measure {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.measure__row {
  display: grid;
  gap: 4px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}
.measure__row:first-child { border-top: 0; }
.measure__head { display: none; }
.measure__cell { min-width: 0; color: var(--ink-2); }
.measure__cell::before {
  content: attr(data-label);
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.measure__metric { font-weight: 600; color: var(--ink); }
.measure__metric::before { display: none; }
.measure__row--weak { background: var(--violet-soft); }
.measure__row--weak .measure__metric { color: #c5b5ff; }
@media (min-width: 760px) {
  .measure__row { grid-template-columns: 1fr 1.6fr 1.1fr; gap: 20px; align-items: baseline; }
  .measure__head {
    display: grid;
    background: var(--surface-2);
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
    padding-block: 12px;
  }
  .measure__cell::before { display: none; }
}

/* ---------- Example / note boxes ---------- */
.note {
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
  background: var(--surface);
}
.note > :last-child { margin-bottom: 0; }
.note__tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.finding { display: grid; gap: 12px; margin: 0; }
.finding div { display: grid; gap: 2px; }
.finding dt {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.finding dd { margin: 0; color: var(--ink); }
.priority {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 6px;
  border: 1px solid rgb(255 79 216 / 0.4);
  background: var(--magenta-soft);
  color: var(--magenta);
  font-weight: 600;
  font-size: 0.88rem;
}

.callout {
  position: relative;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--cyan);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout > :last-child { margin-bottom: 0; }
.callout p { color: var(--ink-2); }

/* ---------- Report template ---------- */
.report {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(18px, 2.5vw, 26px);
}
.report::after {
  content: "";
  position: absolute;
  inset: -1px 16px auto;
  height: 1px;
  background: var(--hairline);
}
.report__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 16px; }
.report__head .note__tag { margin: 0; }
.report__kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: 10px; margin: 0 0 16px; }
.report__kpi { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--line); }
.report__kpi dt { font-size: 0.84rem; color: var(--ink-2); }
.report__kpi dd { margin: 4px 0 0; font-family: var(--mono); font-size: 1.2rem; color: var(--ink-3); }
.report__section { padding-top: 12px; border-top: 1px solid var(--line); }
.report__section h3 { margin: 0 0 4px; font-size: 0.95rem; }
.report__section p { margin: 0 0 12px; font-size: 0.94rem; color: var(--ink-2); }

/* ---------- Calculator ---------- */
.calc {
  position: relative;
  display: grid;
  gap: 20px;
  padding: clamp(20px, 3vw, 32px);
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface);
  border: 1px solid var(--line-strong);
}
.calc::after {
  content: "";
  position: absolute;
  inset: -1px 24px auto;
  height: 1px;
  background: var(--hairline);
}
.calc__inputs { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.calc__results { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.calc__result { padding: 16px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--line); }
.calc__result--main { background: var(--cyan-soft); border-color: var(--cyan-line); box-shadow: 0 0 30px -18px var(--cyan-glow); }
.calc__result span { display: block; font-size: 0.88rem; color: var(--ink-2); }
.calc__result output {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem);
  font-weight: 500;
  color: var(--ink);
}
.calc__result--main output { color: var(--cyan); text-shadow: 0 0 18px rgb(56 232 255 / 0.3); }
.calc__formula {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line-strong);
  font-family: var(--mono);
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); transition: background-color 0.2s ease; }
.faq details[open] { background: linear-gradient(90deg, var(--cyan-soft), transparent 70%); }
.faq summary {
  position: relative;
  display: block;
  padding: 20px 48px 20px 14px;
  font-weight: 600;
  font-size: 1.06rem;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  border-left: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: var(--cyan);
  transition: transform 0.2s ease;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary { border-left-color: var(--cyan); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--cyan); }
.faq .faq__body { padding: 0 14px 20px 16px; color: var(--ink-2); max-width: 70ch; }
.faq .faq__body > :last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.contact-block { display: grid; gap: clamp(28px, 5vw, 64px); }
.contact-block > * { min-width: 0; }
@media (min-width: 960px) {
  .contact-block { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
}
.contact-aside .channels { margin-top: 24px; }

.form-card {
  position: relative;
  padding: clamp(20px, 3vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow), 0 0 70px -40px var(--cyan-glow);
}
.form-card::after {
  content: "";
  position: absolute;
  inset: -1px 24px auto;
  height: 1px;
  background: var(--hairline);
}
.form { display: grid; gap: 20px; }
.form__row { display: grid; gap: 20px; }
@media (min-width: 640px) {
  .form__row--2 { grid-template-columns: 1fr 1fr; }
}
.field { display: grid; gap: 6px; min-width: 0; }
.field__label { font-weight: 600; font-size: 0.97rem; }
.field__opt { font-weight: 400; color: var(--ink-3); }
.field__hint { font-size: 0.86rem; color: var(--ink-3); }
.field__error {
  display: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--err);
}
.field__error::before { content: "! "; font-weight: 700; }
.field.has-error .field__error { display: block; }

.input,
.select,
.textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--input);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.textarea { min-height: 112px; resize: vertical; }
.select {
  appearance: none;
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--cyan) 50%), linear-gradient(135deg, var(--cyan) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.select option { background: var(--surface); color: var(--ink); }
.input:hover, .select:hover, .textarea:hover { border-color: #41557a; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background-color: #0d1521;
  box-shadow: 0 0 0 3px rgb(56 232 255 / 0.16), 0 0 18px -6px var(--cyan-glow);
}
.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea { border-color: var(--err); box-shadow: 0 0 0 3px var(--err-soft); }

.choice-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice-group legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: 0.97rem; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--input);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.choice input:hover + span { border-color: #41557a; color: var(--ink); }
.choice input:checked + span {
  background: var(--cyan-soft);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 16px -8px var(--cyan-glow);
}
.choice input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }

.check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 0.94rem; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--cyan); }

.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.form__submit .btn { min-width: 220px; }
@media (max-width: 479px) { .form__submit .btn { width: 100%; } }

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  display: none;
}
.is-loading .spinner { display: inline-block; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status {
  display: none;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
}
.form-status.is-visible { display: block; }
.form-status--error { background: var(--err-soft); color: var(--ink); border: 1px solid rgb(255 107 138 / 0.4); }
.form-status--error strong { color: var(--err); }
.form-status > :last-child { margin-bottom: 0; }

.form-success { text-align: left; }
.form-success__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 10px;
  border: 1px solid rgb(69 240 176 / 0.4);
  background: var(--ok-soft);
  color: var(--ok);
}
.form-success__icon svg { width: 24px; height: 24px; }
.form-success:focus { outline: none; }

/* ---------- Contact channels ---------- */
.channels { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0; }
.channel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.channel:hover { border-color: var(--cyan-line); color: var(--ink); text-decoration: none; box-shadow: 0 0 26px -16px var(--cyan-glow); }
.channel__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--cyan-line);
  background: var(--cyan-soft);
  color: var(--cyan);
}
.channel__icon svg { width: 20px; height: 20px; }
.channel__text { display: grid; min-width: 0; }
.channel__name { font-weight: 600; }
.channel__value { color: var(--ink-2); font-size: 0.92rem; overflow-wrap: anywhere; }

/* ---------- Team (home) and founders (about) ---------- */
.team { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
.team > * { min-width: 0; }
@media (min-width: 900px) { .team { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); } }
.team__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.stat {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}
.stat::after {
  content: "";
  position: absolute;
  inset: -1px 14px auto;
  height: 1px;
  background: var(--hairline);
}
.stat dt { font-size: 0.88rem; color: var(--ink-2); line-height: 1.4; }
.stat dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.8rem + 1.6vw, 3rem);
  font-weight: 700;
  line-height: 1;
  color: var(--cyan);
  text-shadow: 0 0 24px rgb(56 232 255 / 0.3);
}
.stat__unit { font-size: 0.42em; font-weight: 600; color: var(--ink-2); text-shadow: none; }

.founder .card__label { color: var(--cyan); }
.founder__exp {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.94rem;
}
.founder__num { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--cyan); }

/* Legacy single-person block (kept for compatibility). */
.person { display: grid; gap: 24px; align-items: start; }
@media (min-width: 720px) { .person { grid-template-columns: 200px minmax(0, 1fr); } }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  display: grid;
  gap: 20px;
  align-items: center;
  padding: clamp(24px, 4vw, 44px);
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--cyan-line);
  background:
    radial-gradient(600px 220px at 0% 0%, rgb(56 232 255 / 0.12), transparent 70%),
    radial-gradient(500px 220px at 100% 100%, rgb(148 112 255 / 0.14), transparent 70%),
    var(--surface);
  box-shadow: 0 0 60px -30px var(--cyan-glow);
}
.cta-band h2 { margin-bottom: 0.3em; }
.cta-band p { color: var(--ink-2); margin: 0; }
@media (min-width: 860px) { .cta-band { grid-template-columns: minmax(0, 1fr) auto; } }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  margin-top: var(--section-y);
  padding-block: 56px 32px;
  background: #05080d;
  border-top: 1px solid var(--line);
  font-size: 0.94rem;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto;
  height: 1px;
  background: var(--hairline);
}
.footer__grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.footer__brand p { color: var(--ink-2); max-width: 34ch; margin-top: 12px; }
.footer__title {
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer__list a,
.footer__list button {
  color: var(--ink-2);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.footer__list a:hover,
.footer__list button:hover { color: var(--cyan); text-decoration: underline; }
.footer__list button { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; text-align: left; }
.footer__legal {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.86rem;
}
.footer__legal p { margin: 0 0 6px; }

/* ---------- Consent banner ---------- */
.consent {
  position: fixed;
  left: calc(12px + env(safe-area-inset-left, 0px));
  right: calc(12px + env(safe-area-inset-right, 0px));
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  max-width: 640px;
  margin-inline: auto;
  padding: 18px 20px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -20px rgb(0 0 0 / 0.95), 0 0 40px -24px var(--cyan-glow);
  font-size: 0.94rem;
}
.consent::after {
  content: "";
  position: absolute;
  inset: -1px 20px auto;
  height: 1px;
  background: var(--hairline);
}
.consent__title { margin: 0 0 6px; font-family: var(--font-display); font-size: 1rem; font-weight: 600; }
.consent p { margin: 0 0 14px; color: var(--ink-2); }
.consent__prefs { display: grid; gap: 10px; margin: 0 0 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--line); }
.consent__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.consent__actions .btn { min-height: 42px; padding: 0 16px; font-size: 0.94rem; }
@media (max-width: 479px) { .consent__actions .btn { flex: 1 1 100%; } }

/* ---------- Misc ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.stack > * + * { margin-top: 16px; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.source { font-size: 0.84rem; color: var(--ink-3); }
.source a { color: var(--ink-2); }

.legal h2 { font-size: 1.25rem; margin-top: 2em; }
.legal p, .legal li { color: var(--ink-2); }

.err-page { min-height: 50vh; display: grid; align-content: center; }

/* ---------- Motion ----------
   All motion is decorative and uses transform/opacity only.
   Desktop and tablet get the full set; phones keep only state transitions and the data marker. */

/* Section reveal: elements stay visible until the observer adds .is-revealing just as they enter. */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.is-revealing { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: var(--reveal-delay, 0ms); }

/* Soft breathing glow on the main hero CTA. */
@keyframes glow-breathe {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.75; }
}
.btn--glow::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: 0 0 26px 2px var(--cyan-glow);
  opacity: 0.35;
  pointer-events: none;
  animation: glow-breathe 3.6s ease-in-out infinite;
}

/* Light pass along the top edge of the flow panel, once every ~8s. */
@keyframes sweep {
  0% { transform: translateX(-120%); opacity: 0; }
  6% { opacity: 1; }
  28% { transform: translateX(320%); opacity: 0; }
  100% { transform: translateX(320%); opacity: 0; }
}
.flow::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 30%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e9fdff, transparent);
  opacity: 0;
  animation: sweep 8s ease-in-out 1.2s infinite;
  pointer-events: none;
}

/* Data marker travelling down the lead path; --flow-len is measured by site.js. */
@keyframes travel {
  0% { transform: translateY(0); opacity: 0; }
  8% { opacity: 1; }
  80% { transform: translateY(var(--flow-len, 0px)); opacity: 1; }
  92%, 100% { transform: translateY(var(--flow-len, 0px)); opacity: 0; }
}
.flow__body.is-measured .flow__marker { animation: travel 6.5s cubic-bezier(0.45, 0, 0.25, 1) 0.6s infinite; }

@media (max-width: 719px) {
  .btn--glow::after,
  .flow::after { animation: none; display: none; }
  .is-revealing { animation: none; }
  .flow__body.is-measured .flow__marker { animation-duration: 8s; }
  .hero__copy::before { display: none; }
  .hero::before { opacity: 0.6; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .flow__marker { display: none; }
}

@media print {
  .site-header, .site-footer, .consent, .form-card, .cta-band { display: none !important; }
  body { background: #fff; color: #000; }
}
