@font-face {
  font-family: "Golos Text";
  src: url("/assets/marketing/3039304cd863692d/fonts/GolosText-Variable.woff2") format("woff2"), url("/assets/marketing/3039304cd863692d/fonts/GolosText-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root,
body[data-mode="light"] {
  color-scheme: light;
  /* Semantic colors: brand identity, actions and status are separate roles. */
  --page-bg: #f7faf6;
  --background: var(--page-bg);
  --surface: #ffffff;
  --surface-secondary: #edf3ec;
  --surface-dark: #142729;
  --text-primary: #18332b;
  --text-secondary: #486057;
  --text-muted: #5c6e66;
  --text-inverse: #f4f7f3;
  --text-inverse-secondary: #c3d0c8;
  --border: #d1ddd2;
  --border-strong: #81988a;
  --border-dark: #4d6660;
  --brand: #176440;
  --brand-hover: #115233;
  --brand-ink: #ffffff;
  --brand-signal: #c8ff34;
  --brand-signal-ink: #162000;
  --action: var(--brand);
  --action-hover: var(--brand-hover);
  --action-pressed: #0d442a;
  --action-text: var(--surface);
  --success: #216343;
  --warning: #82520c;
  --error: #a52b2b;
  --info: var(--brand);
  --focus: #176440;
  --focus-contrast: var(--surface);
  --info-surface: color-mix(in srgb, var(--surface) 94%, var(--info));
  --warning-surface: color-mix(in srgb, var(--surface) 93%, var(--warning));
  --error-surface: color-mix(in srgb, var(--surface) 94%, var(--error));
  --success-surface: color-mix(in srgb, var(--surface) 94%, var(--success));

  /* Typography roles. DISPLAY is opt-in; page titles use H1. */
  --font-body: "Golos Text", "Segoe UI", sans-serif;
  --font-heading: var(--font-body);
  --font-code: Consolas, "Cascadia Code", monospace;
  --text-display: clamp(2.25rem, 4vw, 3.5rem);
  --text-h1: clamp(2rem, 3.8vw, 3.25rem);
  --text-h2: clamp(2rem, 3.2vw, 3rem);
  --text-h3: 1.25rem;
  --text-body: 1rem;
  --text-body-small: .875rem;
  --text-label: .875rem;
  --text-meta: .8125rem;
  --text-code: .9375em;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --leading-heading: 1.2;
  --leading-body: 1.6;
  --leading-ui: 1.4;
  --tracking-heading: -.03em;

  /* Spacing uses a 4 px base. Hairlines and optical offsets are exceptions. */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --section-space: var(--space-16);
  --section-space-compact: var(--space-12);
  --gutter: var(--space-6);
  --container-main: 77.5rem;
  --container-wide: 77.5rem;
  --container-documentation: 56rem;
  --container-legal: 48rem;
  --container-copy: 46rem;
  --radius-small: .25rem;
  --radius-medium: .5rem;
  --radius-large: .75rem;
  --radius-pill: 999px;
  --control-height: 3rem;
  --control-height-small: 2.75rem;
  --shadow-soft: 0 12px 28px rgba(24, 51, 43, .05);
  --shadow-overlay: 0 12px 36px rgba(24, 51, 43, .12);
  --shadow-screen: 0 12px 32px rgba(24, 51, 43, .1);
  --duration-fast: 160ms;
  --ease-ui: cubic-bezier(.2, .7, .2, 1);
  --layer-nav: 40;
  --layer-overlay: 60;
  --layer-skip: 80;
  --motion-fast: var(--duration-fast);
  --motion-ui: 180ms;
  --motion-ease: var(--ease-ui);
  --balance-accent: var(--brand);
  --balance-soft: var(--surface-secondary);
  --balance-node: var(--surface);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  scroll-padding-top: calc(var(--site-header-height) + var(--anchor-gap));
}

body {
  margin: 0;
  min-width: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--text-primary);
  background: var(--background);
  line-height: var(--leading-body);
}

a {
  color: inherit;
  text-underline-offset: .2em;
  text-decoration-thickness: 1px;
  transition: color var(--duration-fast) var(--ease-ui);
}

a:hover {
  text-decoration-thickness: 2px;
}

p {
  margin: 0 0 var(--space-4);
  text-wrap: pretty;
}

strong,
b {
  font-weight: var(--weight-semibold);
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--focus-contrast);
}

.skip-link {
  position: fixed;
  top: var(--space-3);
  left: var(--space-3);
  z-index: var(--layer-skip);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-small);
  color: var(--brand-ink);
  background: var(--brand);
  font-weight: var(--weight-semibold);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.wrap {
  width: min(var(--container-main), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.narrow {
  width: min(var(--container-legal), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: var(--layer-nav);
  border-bottom: 1px solid var(--border);
  background: var(--background);
}

.nav {
  width: min(var(--container-wide), calc(100% - 2 * var(--gutter)));
  min-height: 4.5rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.03em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--brand-ink);
  background: var(--brand);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand-ink) 14%, transparent);
  /* Existing logo geometry and wordmark weight are preserved. */
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  min-height: var(--control-height-small);
  padding: var(--space-3);
  border-radius: var(--radius-small);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--text-body-small);
  font-weight: var(--weight-medium);
  white-space: nowrap;
  transition: color var(--duration-fast) var(--ease-ui), background-color var(--duration-fast) var(--ease-ui);
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--surface-secondary);
}

.nav-links a.active {
  color: var(--text-primary);
  background: var(--surface-secondary);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: .4em;
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.menu-button {
  display: none;
  width: var(--control-height-small);
  min-height: var(--control-height-small);
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  color: var(--text-primary);
  background: var(--surface);
  cursor: pointer;
  padding: 0;
  font-size: var(--text-h3);
  transition: transform var(--duration-fast) var(--ease-ui), background-color var(--duration-fast) var(--ease-ui);
}

.hero {
  width: min(var(--container-wide), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  padding: var(--space-12) 0 var(--space-16);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: var(--space-10);
  align-items: center;
}

.hero-copy {
  max-width: 38rem;
}

.eyebrow,
.version-pill,
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  width: fit-content;
  border-radius: var(--radius-small);
  font-size: var(--text-meta);
  font-weight: var(--weight-medium);
}

.eyebrow {
  margin-bottom: var(--space-4);
  padding: 0;
  color: var(--text-secondary);
  background: transparent;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: var(--font-heading);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
  text-wrap: balance;
}

h1 {
  margin-bottom: var(--space-6);
  font-size: var(--text-h1);
  font-weight: var(--weight-bold);
}

h2 {
  margin-bottom: var(--space-4);
  font-size: var(--text-h2);
  font-weight: var(--weight-semibold);
}

h3 {
  margin-bottom: var(--space-2);
  font-size: var(--text-h3);
  font-weight: var(--weight-semibold);
}

.lead {
  margin: 0 0 var(--space-6);
  color: var(--text-secondary);
  font-size: var(--text-body);
  line-height: var(--leading-body);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-6) 0;
}

.button,
.nav-cta {
  min-height: var(--control-height);
  padding: var(--space-3) var(--space-5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: 1px solid transparent;
  border-radius: var(--radius-medium);
  text-decoration: none;
  font-size: var(--text-label);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-ui);
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-ui), background-color var(--duration-fast) var(--ease-ui), border-color var(--duration-fast) var(--ease-ui), color var(--duration-fast) var(--ease-ui);
}

.nav-cta {
  min-height: var(--control-height-small);
  padding: var(--space-2) var(--space-4);
  white-space: nowrap;
}

.button.primary,
.button.dark,
.nav-cta {
  color: var(--action-text);
  background: var(--action);
}

.button.primary:hover,
.button.dark:hover,
.nav-cta:hover {
  background: var(--action-hover);
}

.button.secondary {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background: var(--surface);
}

.button.secondary:hover,
.menu-button:hover {
  background: var(--surface-secondary);
  border-color: var(--text-secondary);
}

.button.quiet {
  color: var(--text-primary);
  background: transparent;
  text-decoration: underline;
}

.button.quiet:hover {
  background: var(--surface-secondary);
}

.button:active,
.nav-cta:active,
.menu-button:active {
  transform: translateY(1px);
}

.button.primary:active,
.button.dark:active,
.nav-cta:active {
  background: var(--action-pressed);
}

.button:is(:disabled, [aria-disabled="true"]),
.button:is(:disabled, [aria-disabled="true"]):is(:hover, :active),
.nav-cta[aria-disabled="true"],
.nav-cta[aria-disabled="true"]:is(:hover, :active),
.menu-button:disabled {
  color: var(--text-muted);
  background: var(--surface-secondary);
  border-color: var(--border);
  transform: none;
  cursor: not-allowed;
}

.hero-facts {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  list-style: none;
  color: var(--text-secondary);
  font-size: var(--text-body-small);
}

.hero-facts li::before {
  content: "вњ“";
  margin-right: var(--space-2);
  color: var(--success);
  font-weight: var(--weight-semibold);
}

.hero-shots {
  position: relative;
  min-height: 32rem;
}

.app-shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-large);
  background: var(--surface-dark);
  box-shadow: var(--shadow-screen);
}

.app-shot img {
  width: 100%;
  height: auto;
}

.app-shot figcaption {
  padding: var(--space-2) var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  color: var(--text-inverse);
  background: var(--surface-dark);
  font-size: var(--text-meta);
  font-weight: var(--weight-semibold);
}

.app-shot figcaption span:last-child {
  color: var(--text-inverse-secondary);
  font-weight: var(--weight-regular);
}

.hero-engineer {
  position: absolute;
  top: var(--space-5);
  right: 0;
  width: 96%;
}

.hero-client {
  position: absolute;
  left: 0;
  bottom: var(--space-2);
  width: 59%;
}

.channel-badge {
  position: absolute;
  right: 2%;
  bottom: 7%;
  max-width: 14rem;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-large);
  color: var(--text-inverse);
  background: var(--surface-dark);
  box-shadow: var(--shadow-overlay);
  font-size: var(--text-meta);
  font-weight: var(--weight-semibold);
}

.channel-badge strong {
  display: block;
  margin-bottom: var(--space-1);
  color: var(--brand);
}

.band {
  padding: var(--section-space) 0;
}

.band.compact {
  padding: var(--section-space-compact) 0;
}

.band.soft,
.band.dark-band {
  border-block: 1px solid var(--border);
  background: var(--surface-secondary);
}

.band.soft + .band.soft {
  border-top: 0;
}

.section-head {
  max-width: var(--container-copy);
  margin-bottom: var(--space-8);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head p,
.card p,
.role-card p,
.step-card p,
.callout p,
.download-card p,
.truth-card p {
  margin: 0;
  color: var(--text-secondary);
}

.callout p + p {
  margin-top: var(--space-3);
}

.kicker {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--text-secondary);
  font-size: var(--text-meta);
  font-weight: var(--weight-semibold);
  letter-spacing: .02em;
}

.grid {
  display: grid;
  gap: var(--space-8);
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.role-card,
.download-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  background: var(--surface);
}

.role-card {
  padding: var(--space-6);
}

/* Supporting prose is a flat group, not an elevated product object. */
.card,
.step-card,
.truth-card {
  min-width: 0;
  padding: var(--space-5) 0 0;
  border-top: 1px solid var(--border-strong);
}

.card-number,
.role-label,
.step-number,
.flow-node .node-number {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: var(--space-8);
  height: var(--space-8);
  margin-bottom: var(--space-4);
  border-radius: var(--radius-small);
  color: var(--text-secondary);
  background: var(--surface-secondary);
  font-family: var(--font-code);
  font-variant-numeric: tabular-nums;
  font-weight: var(--weight-semibold);
}

.role-label {
  width: fit-content;
  height: auto;
  padding: 0;
  display: inline-flex;
  background: transparent;
  font-family: var(--font-body);
  font-size: var(--text-meta);
  letter-spacing: .02em;
}

.card-number {
  width: auto;
  justify-content: start;
  background: transparent;
}

.role-card ul,
.check-list,
.plain-list,
.need-list {
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}

.role-card li,
.check-list li,
.need-list li {
  position: relative;
  margin-top: var(--space-2);
  padding-left: var(--space-6);
  color: var(--text-secondary);
}

.role-card li::before,
.check-list li::before,
.need-list li::before {
  content: "вњ“";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: var(--weight-semibold);
}

.system-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  justify-content: center;
  gap: var(--space-2);
}

.flow-node {
  min-width: 0;
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  background: var(--surface);
}

.flow-node .node-number {
  width: var(--space-8);
  height: var(--space-8);
  margin-bottom: var(--space-3);
  border-radius: var(--radius-small);
}

.flow-node strong {
  display: block;
  margin-bottom: var(--space-1);
}

.flow-node span {
  display: block;
  color: var(--text-secondary);
  font-size: var(--text-body-small);
}

.flow-arrow {
  align-self: center;
  color: var(--text-muted);
  font-size: var(--text-h3);
  font-weight: var(--weight-semibold);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-6);
}

.screenshot-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(19rem, .55fr);
  gap: var(--space-6);
  align-items: start;
}

.screenshot-layout.reverse {
  grid-template-columns: minmax(19rem, .55fr) minmax(0, 1.45fr);
}

.screenshot-layout.reverse .app-shot {
  order: 2;
}

.shot-notes {
  display: grid;
  gap: var(--space-3);
}

.shot-note {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
}

.shot-note strong {
  display: block;
  margin-bottom: var(--space-1);
}

.shot-note p {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--text-body-small);
}

.page-head {
  padding: var(--space-12) 0;
  border-bottom: 1px solid var(--border);
  background: var(--background);
}

.page-head h1 {
  max-width: var(--container-documentation);
}

.page-head p {
  max-width: var(--container-copy);
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--text-body);
}

.page-head:has(+ .legal-band) .wrap {
  max-width: var(--container-legal);
}

.breadcrumbs {
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
  font-size: var(--text-meta);
  font-weight: var(--weight-semibold);
}

.callout {
  padding: var(--space-5) var(--space-6);
  border-left: 3px solid var(--info);
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
  background: var(--info-surface);
}

.callout.warning {
  border-left-color: var(--warning);
  background: var(--warning-surface);
}

.callout.danger {
  border-left-color: var(--error);
  background: var(--error-surface);
}

.callout.success {
  border-left-color: var(--success);
  background: var(--success-surface);
}

.callout.alpha {
  border-left-color: var(--border-strong);
  background: var(--surface-secondary);
}

.spaced-top {
  margin-top: var(--space-6);
}

.callout h3 {
  margin-bottom: var(--space-2);
}

.truth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.truth-card.yes {
  border-top: 2px solid var(--success);
}

.truth-card.no {
  border-top: 2px solid var(--error);
}

.plain-list {
  padding-left: var(--space-5);
  list-style: disc;
  color: var(--text-secondary);
}

.plain-list li + li {
  margin-top: var(--space-2);
}

.spec-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  background: var(--surface);
}

.spec-table th,
.spec-table td {
  padding: var(--space-4) var(--space-4);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  text-align: left;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: 0;
}

.spec-table th {
  width: 30%;
  color: var(--text-primary);
  background: var(--surface-secondary);
}

.spec-table td {
  color: var(--text-secondary);
}

.guide-grid {
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr);
  gap: var(--space-8);
  align-items: start;
}

.toc {
  position: sticky;
  top: 6rem;
  padding-right: var(--space-4);
  border-right: 1px solid var(--border);
}

.toc strong {
  display: block;
  margin-bottom: var(--space-2);
}

.toc a {
  display: block;
  padding: var(--space-2) var(--space-2);
  border-radius: var(--radius-medium);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--text-body-small);
  min-height: var(--control-height-small);
}

.toc a:hover {
  color: var(--text-primary);
  background: var(--surface-secondary);
}

.guide-content {
  min-width: 0;
  max-width: var(--container-documentation);
}

.guide-section {
  margin-bottom: var(--space-12);
}

.guide-step {
  position: relative;
  margin-top: var(--space-4);
  padding: var(--space-6) 0 var(--space-4) var(--space-12);
  border-top: 1px solid var(--border);
}

.guide-step .step-number {
  position: absolute;
  top: var(--space-6);
  left: 0;
  margin: 0;
}

.guide-step h3 {
  margin-bottom: var(--space-2);
}

.guide-step p {
  margin: 0;
  color: var(--text-secondary);
}

.guide-step p + p,
.guide-step ul {
  margin-top: var(--space-3);
}

.inline-shot {
  margin-top: var(--space-4);
}

.inline-shot figcaption {
  white-space: normal;
}

code {
  padding: 2px var(--space-1);
  border-radius: var(--radius-small);
  color: var(--text-primary);
  background: var(--surface-secondary);
  font-family: var(--font-code);
  font-size: var(--text-code);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.download-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
}

.download-card .tag {
  margin-bottom: var(--space-4);
  padding: var(--space-2) var(--space-2);
  color: var(--text-secondary);
  background: var(--surface-secondary);
}

.download-card .button {
  width: 100%;
  margin-top: auto;
}

.version-note {
  margin-top: var(--space-3);
  color: var(--text-muted);
  font-size: var(--text-meta);
}

.technical-meta {
  font-family: var(--font-code);
  font-variant-numeric: tabular-nums;
}

/* Preserve the Phase 0 first-viewport download baseline. */
.download-context {
  margin: 0 0 var(--space-5);
  color: var(--text-secondary);
  font-size: var(--text-body-small);
}

.page-head.download-intro {
  padding: var(--space-8) 0 var(--space-6);
}

.download-intro h1 {
  margin-bottom: var(--space-4);
}

.download-intro p {
  margin-bottom: 0;
  font-size: var(--text-body);
}

.band.download-selection {
  padding: var(--space-6) 0 var(--space-10);
}

.download-selection .download-card {
  padding: var(--space-5);
}

.download-selection h2 {
  margin-bottom: var(--space-2);
  font-size: var(--text-h2);
}

.download-selection .button {
  margin-top: var(--space-4);
}

.faq {
  display: grid;
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  min-height: var(--control-height);
  padding: var(--space-5) var(--space-10) var(--space-5) 0;
  position: relative;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-heading);
  font-weight: var(--weight-semibold);
  transition: color var(--duration-fast) var(--ease-ui), background-color var(--duration-fast) var(--ease-ui);
}

.faq summary:hover {
  background: var(--surface-secondary);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  top: var(--space-5);
  right: var(--space-3);
  color: var(--text-secondary);
  font-size: var(--text-h3);
  line-height: 1;
}

.faq details[open] summary::after {
  content: "в€’";
}

.faq details p,
.faq details ul {
  margin: 0;
  padding: 0 var(--space-10) var(--space-5) 0;
  color: var(--text-secondary);
}

.faq details ul {
  padding-left: var(--space-6);
}

.cta-band {
  padding: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  color: var(--text-primary);
  background: var(--surface);
}

.cta-band .button {
  flex-shrink: 0;
}

.cta-band h2 {
  margin-bottom: var(--space-2);
  font-size: var(--text-h2);
}

.cta-band p {
  margin: 0;
  color: var(--text-secondary);
}

.footer {
  padding: var(--space-8) 0;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--surface-secondary);
  font-size: var(--text-body-small);
}

.footer-feedback {
  display: grid;
  grid-template-columns: minmax(14rem, .75fr) minmax(0, 1.5fr);
  gap: var(--space-12);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--border);
}

.footer-feedback-copy h2 {
  margin: var(--space-2) 0 var(--space-2);
  color: var(--text-primary);
  font-size: var(--text-h2);
}

.footer-feedback-copy p {
  max-width: 26rem;
  margin: 0;
  line-height: var(--leading-body);
}

.feedback-form {
  display: grid;
  gap: var(--space-4);
}

.feedback-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.feedback-form label {
  display: grid;
  gap: var(--space-2);
  color: var(--text-primary);
  font-size: var(--text-label);
  font-weight: var(--weight-semibold);
}

.feedback-form input,
.feedback-form textarea {
  width: 100%;
  min-height: var(--control-height);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-medium);
  padding: var(--space-3) var(--space-3);
  color: var(--text-primary);
  background: var(--surface);
  font: inherit;
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: var(--leading-ui);
  transition: border-color var(--duration-fast) var(--ease-ui), background-color var(--duration-fast) var(--ease-ui);
}

.feedback-form textarea {
  min-height: 8rem;
  resize: vertical;
}

.feedback-form input:focus,
.feedback-form textarea:focus {
  border-color: var(--focus);
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--focus-contrast);
}

.feedback-form :is(input, textarea)::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

.feedback-form :is(input, textarea):hover {
  border-color: var(--text-secondary);
}

.feedback-form :is(input, textarea):user-invalid {
  border-color: var(--error);
}

.feedback-form :is(input, textarea):disabled {
  color: var(--text-muted);
  background: var(--surface-secondary);
  border-color: var(--border);
  cursor: not-allowed;
}

.feedback-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  color: var(--text-secondary);
  font-size: var(--text-body-small);
  font-weight: var(--weight-regular);
  line-height: var(--leading-body);
}

.feedback-consent input {
  flex: 0 0 auto;
  width: var(--space-6);
  height: var(--space-6);
  min-height: var(--space-6);
  margin: 0;
  padding: 0;
  accent-color: var(--action);
}

.feedback-consent label {
  display: inline;
  color: inherit;
  font: inherit;
}

.feedback-consent a {
  color: var(--text-primary);
  font-weight: var(--weight-semibold);
  text-underline-offset: 2px;
}

.feedback-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: var(--space-4);
}

.feedback-submit {
  flex: 0 0 auto;
}

.feedback-submit:disabled {
  cursor: wait;
}

.feedback-status {
  min-height: var(--space-6);
  margin: 0;
  font-weight: var(--weight-semibold);
}

.feedback-status.success {
  color: var(--success);
}

.feedback-status.error {
  color: var(--error);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-6);
}

.footer-brand {
  max-width: 27rem;
  display: grid;
  gap: var(--space-1);
}

.footer strong {
  display: block;
  margin-bottom: var(--space-1);
  color: var(--text-primary);
}

.footer-links {
  display: grid;
  justify-items: end;
  gap: var(--space-2);
}

.footer-link-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: baseline;
  gap: var(--space-2);
}

.footer-link-separator {
  color: var(--text-muted);
}

.footer-link-button {
  margin: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--text-secondary);
  background: transparent;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-link-button:hover,
.footer-link-button:focus-visible {
  color: var(--text-primary);
}

.footer-meta {
  max-width: 39rem;
  display: grid;
  justify-items: end;
  gap: var(--space-3);
  text-align: right;
}

.footer-details,
.footer-alpha {
  color: var(--text-muted);
  font-size: var(--text-meta);
}

.footer-email {
  overflow-wrap: anywhere;
  color: var(--text-primary) !important;
  font-weight: var(--weight-semibold);
  text-underline-offset: 3px;
}

.legal-band {
  padding-top: var(--space-12);
}

.legal-document {
  min-width: 0;
}

.legal-document section + section {
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border);
}

.legal-document h2 {
  margin: 0 0 var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--text-h2);
}

.legal-document h3 {
  margin: var(--space-6) 0 var(--space-2);
  font-size: var(--text-h3);
}

.legal-document p,
.legal-document ul {
  margin: 0 0 var(--space-4);
  color: var(--text-secondary);
}

.legal-document ul {
  padding-left: var(--space-6);
}

.legal-document li + li {
  margin-top: var(--space-2);
}

.legal-document a {
  color: var(--text-primary);
  font-weight: var(--weight-semibold);
  overflow-wrap: anywhere;
  text-underline-offset: 3px;
}

.legal-lead {
  color: var(--text-primary) !important;
  font-size: var(--text-body);
}

.legal-note {
  margin: var(--space-5) 0 !important;
  padding: var(--space-4) var(--space-5);
  border-left: 3px solid var(--info);
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
  color: var(--text-primary) !important;
  background: var(--surface-secondary);
}

.legal-details {
  margin: var(--space-5) 0 0;
  display: grid;
  grid-template-columns: minmax(12rem, .6fr) minmax(0, 1.4fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  overflow: hidden;
}

.legal-details dt,
.legal-details dd {
  margin: 0;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
}

.legal-details dt {
  color: var(--text-secondary);
  background: var(--surface-secondary);
  font-weight: var(--weight-semibold);
}

.legal-details dd {
  min-width: 0;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.legal-details dt:last-of-type,
.legal-details dd:last-of-type {
  border-bottom: 0;
}

.legal-contact {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border);
}

.legal-contact a {
  overflow-wrap: anywhere;
  color: var(--text-primary);
  font-weight: var(--weight-semibold);
  text-underline-offset: 3px;
}

.processing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.processing-grid > div {
  padding: var(--space-4) 0;
  border-top: 1px solid var(--border);
}

.processing-grid h3 {
  margin-top: 0;
}

.processing-grid p:last-child {
  margin-bottom: 0;
}

.footer a {
  color: var(--text-secondary);
}

.mobile-only {
  display: none;
}

@media (max-width: 1080px) {
  .nav-links a {
    padding-inline: var(--space-2);
    font-size: var(--text-meta);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: var(--space-12);
  }

  .hero-copy {
    max-width: var(--container-copy);
  }

  .hero-shots {
    width: min(52rem, 100%);
    min-height: 0;
    aspect-ratio: 1.3;
  }

  .system-flow {
    grid-template-columns: 1fr;
  }

  .flow-node {
    width: 100%;
    min-height: 0;
  }

  .flow-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }

  .grid.four,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .menu-button {
    display: block;
    margin-left: auto;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    left: var(--gutter);
    right: var(--gutter);
    display: none;
    padding: var(--space-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    background: var(--surface);
    box-shadow: var(--shadow-overlay);
    max-height: calc(100dvh - 6rem);
    overflow-y: auto;
  }

  .nav-links.open {
    display: grid;
  }

  .nav-links a {
    padding: var(--space-3) var(--space-3);
    font-size: var(--text-body);
  }

  .nav-tools {
    display: none;
  }

  .grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screenshot-layout,
  .screenshot-layout.reverse {
    grid-template-columns: 1fr;
  }

  .screenshot-layout.reverse .app-shot {
    order: 0;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
    padding: 0 0 var(--space-4);
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 640px) {
  :root,
  body[data-mode="light"] {
    --gutter: var(--space-4);
    --text-h1: clamp(2rem, 9vw, 2.25rem);
    --section-space: var(--space-12);
    --section-space-compact: var(--space-8);
  }

  .nav {
    gap: var(--space-2);
    min-height: 4rem;
  }

  .brand {
    font-size: 18px;
  }

  .brand-mark {
    width: 35px;
    height: 35px;
  }

  .hero {
    padding: var(--space-8) 0 var(--space-12);
    gap: var(--space-8);
  }

  .actions .button {
    width: 100%;
  }

  .hero-shots {
    aspect-ratio: 1.05;
  }

  .hero-engineer {
    width: 100%;
    top: 0;
  }

  .hero-client {
    width: 66%;
    bottom: 0;
  }

  .channel-badge {
    display: none;
  }

  .app-shot {
    border-radius: var(--radius-medium);
  }

  .page-head {
    padding: var(--space-8) 0;
  }

  .grid.two,
  .grid.three,
  .grid.four,
  .steps,
  .truth-grid,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .role-card,
  .download-card {
    padding: var(--space-5);
  }

  .spec-table,
  .spec-table tbody,
  .spec-table tr,
  .spec-table th,
  .spec-table td {
    display: block;
    width: 100%;
  }

  .spec-table th {
    border-bottom: 0;
    padding-bottom: var(--space-1);
  }

  .spec-table td {
    padding-top: var(--space-1);
  }

  .guide-step {
    padding: var(--space-5) 0;
  }

  .guide-step .step-number {
    position: static;
    margin-bottom: var(--space-3);
  }

  .callout {
    padding: var(--space-4);
  }

  .cta-band,
  .footer-feedback,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-feedback {
    grid-template-columns: 1fr;
  }

  .cta-band .button {
    width: 100%;
  }

  .footer-links {
    justify-items: start;
  }

  .footer-link-row {
    justify-content: flex-start;
  }

  .footer-meta {
    justify-items: start;
    text-align: left;
  }

  .feedback-fields {
    grid-template-columns: 1fr;
  }

  .feedback-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .feedback-submit {
    width: 100%;
  }

  .legal-details {
    grid-template-columns: 1fr;
  }

  .processing-grid {
    grid-template-columns: 1fr;
  }

  .legal-contact {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-details dt,
  .legal-details dd {
    border-bottom: 0;
  }

  .legal-details dd {
    padding-top: 0;
    border-bottom: 1px solid var(--border);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
