/* ==========================================================================
   Agynx design system
   Ported from the approved mockup. Fonts are self-hosted: nothing on this
   site may load from another company (build.py enforces it).
   ========================================================================== */

/* --- fonts ---------------------------------------------------------------
   Files live in static/fonts/. If they are absent the fallback stacks below
   are close enough in metrics to keep layout intact. */
@font-face {
  font-family: 'Barlow Condensed';
  src: url('/fonts/barlow-condensed-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('/fonts/barlow-condensed-800.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('/fonts/barlow-condensed-900.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-variable.woff2') format('woff2');
  font-weight: 100 900;   /* variable font: one file covers every weight */
  font-style: normal; font-display: swap;
}

:root {
  --red: #ed1c2e;
  --red-dark: #c8121f;
  --navy: #071c35;
  --navy-deep: #041425;
  --ink: #0a1c32;
  --paper: #f7f5f0;
  --line: #d9d9d5;
  --muted: #657180;
  --body: #4c5968;
  --white: #fff;

  --display: 'Barlow Condensed', 'Arial Narrow', 'Helvetica Neue', Impact, sans-serif;
  --text: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --gutter: 64px;
}

/* --- base ---------------------------------------------------------------- */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

h1, h2, h3, h4 { margin: 0; }
p { margin: 0 0 1em; }

.wrap { width: min(1180px, calc(100% - var(--gutter))); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: 12px 18px; font-weight: 700;
}
.skip:focus { left: 0; }

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

/* --- type ---------------------------------------------------------------- */

.display, .hero h1, .page-hero h1, .section-head h2, .band h2, .cta h2 {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.86;
}

.eyebrow, .kicker {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0;
}

.lede { font-size: 18px; color: var(--body); }

/* --- buttons ------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px 22px;
  font-family: var(--text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.button.small { padding: 12px 16px; font-size: 11px; gap: 10px; }
.button.primary { background: var(--red); color: #fff; }
.button.primary:hover { background: var(--red-dark); }
.button.navy { background: var(--navy); color: #fff; }
.button.navy:hover { background: #0d2c53; }
.button.light { background: #fff; color: var(--navy); border-color: #c9ced4; }
.button.light:hover { border-color: var(--navy); }
.button .arrow { font-size: 15px; line-height: 1; }

.text-link {
  font-size: 13px; font-weight: 800; letter-spacing: 0.07em;
  text-transform: uppercase; border-bottom: 2px solid var(--red); padding-bottom: 2px;
}

/* --- header -------------------------------------------------------------- */

.site-nav {
  background: #fff;
  border-bottom: 1px solid #e4e4e0;
  position: sticky;
  top: 0;
  z-index: 20;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 84px;
}

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand img { width: 44px; height: 50px; object-fit: contain; }
.brand-words b {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-size: 30px;
  line-height: 0.95;
  letter-spacing: 0.015em;
}
.brand-words small {
  display: block;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-links > a { padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-links > a:hover { color: var(--red); }
.nav-links > a.is-current { border-bottom-color: var(--red); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.menu-btn {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  position: relative;
}
.menu-bars {
  position: absolute; left: 13px; top: 21px;
  width: 18px; height: 2px; background: var(--navy);
}
.menu-bars::before, .menu-bars::after {
  content: ""; position: absolute; left: 0;
  width: 18px; height: 2px; background: var(--navy);
}
.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }

/* --- hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background: #fff;
  padding: 76px 0 84px;
}

/* Photographic flag entering from the left, faded so it never competes with
   the headline. The mask does the fading, not a lowered opacity on the whole
   image, so the stars stay crisp where they are visible. */
.hero::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: min(38%, 540px);
  background: url('/assets/american-flag-hero.jpg') left center / cover no-repeat;
  opacity: 0.20;
  -webkit-mask-image: linear-gradient(to right, #000 0%, rgba(0,0,0,.45) 40%, transparent 85%);
  mask-image: linear-gradient(to right, #000 0%, rgba(0,0,0,.45) 40%, transparent 85%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.06fr 1.14fr;
  gap: 44px;
  align-items: center;
}

.hero .eyebrow { display: flex; align-items: center; gap: 8px; }
.hero .eyebrow .star { color: var(--red); font-size: 14px; }

.hero h1 {
  font-size: clamp(38px, 4.5vw, 64px);
  margin: 18px 0 22px;
}
.hero h1 em { font-style: normal; color: var(--red); }

.hero-copy { max-width: 560px; font-size: 18px; color: var(--body); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.hero .actions .button { padding: 15px 18px; }

.assurance {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  max-width: 520px;
}
.assurance svg { flex-shrink: 0; color: var(--navy); }
.assurance b {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.assurance p { margin: 3px 0 0; font-size: 14px; color: var(--muted); }

/* --- demo: pipeline + briefing ------------------------------------------- */

.demo { display: grid; grid-template-columns: 0.94fr 1.16fr; gap: 20px; align-items: start; }

.demo-label {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 2px;
}
.demo-label .kicker span { color: var(--ink); }

.pipeline { position: relative; display: grid; gap: 8px; }
.pipeline::before {
  content: "";
  position: absolute;
  left: 5px; top: 14px; bottom: 14px;
  width: 2px;
  background: linear-gradient(var(--red), rgba(237,28,46,.25));
}
.step-card {
  position: relative;
  margin-left: 22px;
  background: #fff;
  border: 1px solid #dfe3e7;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.step-card::before {
  content: "";
  position: absolute;
  left: -22px; top: 50%;
  width: 12px; height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid #fff;
}
.step-card svg { flex-shrink: 0; color: var(--navy); }
.step-card b { display: block; font-size: 13px; line-height: 1.25; }
.step-card span { display: block; font-size: 11.5px; color: var(--muted); }
.step-card.done { border-color: #bcd8c6; background: #fbfefc; }
.step-card.done::before { background: #247743; }

.briefing { background: #fff; border: 1px solid #cfd3d6; box-shadow: 14px 14px 0 var(--navy); }
.briefing-head {
  background: var(--navy);
  color: #fff;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.briefing-head svg { flex-shrink: 0; }
.briefing-head b { font-family: var(--display); font-size: 21px; letter-spacing: 0.01em; }
.briefing-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid #e5e5e2;
}
.briefing-cols > div { padding: 16px 15px; }
.briefing-cols > div + div { border-left: 1px solid #e5e5e2; }
.briefing h4 {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.person { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.person svg { flex-shrink: 0; color: #93a1b1; }
.person b { display: block; font-size: 13px; }
.person span { display: block; font-size: 11.5px; color: var(--muted); }
.signal { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; margin-bottom: 10px; }
.signal svg { flex-shrink: 0; margin-top: 2px; color: #247743; }

.next-step { padding: 18px; display: flex; gap: 12px; align-items: flex-start; }
.next-step svg { flex-shrink: 0; color: var(--red); margin-top: 2px; }
.next-step b { display: block; font-size: 13px; margin-bottom: 3px; }
.next-step p { margin: 0; font-size: 13px; color: var(--body); }
.briefing-foot { padding: 0 18px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.demo-note { margin: 0; font-size: 11px; color: var(--muted); }

/* --- section heads ------------------------------------------------------- */

.section {
  padding: 96px 0;
}
.section.alt { background: #fff; }

.section-head {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 48px;
}
.section-head h2 { font-size: clamp(40px, 5.2vw, 74px); }
.section-head h2 span { color: var(--red); }
.section-head p { margin: 0; color: var(--muted); font-size: 17px; }
.section-head.centered { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.section-head.centered p { max-width: 620px; }

.section-head.rule {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  gap: 18px;
  margin-bottom: 44px;
}
.section-head.rule h2 {
  font-size: clamp(25px, 2.9vw, 36px);
  letter-spacing: 0.005em;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 26px;
}
.section-head.rule h2::before,
.section-head.rule h2::after {
  content: "";
  height: 1px;
  width: clamp(30px, 11vw, 190px);
  background: var(--line);
  flex: none;
}
.section-head.rule p { max-width: 680px; font-size: 16px; }

/* --- solution grid ------------------------------------------------------- */

.solution-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 4px solid var(--navy);
  background: var(--line);
  gap: 1px;
}
.solution-grid a {
  background: var(--paper);
  padding: 30px 26px 32px;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  transition: background-color .15s ease;
}
.solution-grid a:hover { background: #fff; }
.solution-grid .icon { color: var(--navy); margin-bottom: 26px; }
.solution-grid h3 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 28px;
  line-height: 1;
  margin-bottom: 12px;
}
.solution-grid p { font-size: 13.5px; color: var(--muted); }
.grid-note {
  margin: 28px 0 0;
  text-align: center;
  font-size: 15.5px;
  color: var(--muted);
}
.grid-note .text-link { color: var(--ink); margin-left: 8px; }

.solution-grid .more {
  margin-top: auto;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}

/* --- bottleneck band ----------------------------------------------------- */

.bottleneck {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  display: grid;
  grid-template-columns: 1.1fr repeat(3, 1fr) 1.25fr;
  gap: 1px;
  background-color: var(--line);
}
.bottleneck > div { background: #fff; padding: 26px 24px; }
.bottleneck .title { background: #fdf6f6; }
.bottleneck .title b {
  display: block;
  font-family: var(--display);
  font-size: 25px;
  line-height: 1.02;
  text-transform: uppercase;
}
.bottleneck .title b span { color: var(--red); }
.bottleneck .item { display: flex; gap: 12px; align-items: flex-start; }
.bottleneck .item svg { flex-shrink: 0; color: var(--red); margin-top: 1px; }
.bottleneck .item b { display: block; font-size: 14px; }
.bottleneck .item p { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.bottleneck .solution { background: #fff8f8; border-left: 1px solid #f0cdd1; }
.bottleneck .solution b { color: var(--red); }

/* --- dark band ----------------------------------------------------------- */

.band {
  background: var(--navy);
  color: #fff;
  padding: 72px 0;
}
.band .pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 40px;
  align-items: start;
}
.band .pillar svg { color: #fff; margin-bottom: 14px; }
.band .pillar b {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.band .pillar p { margin: 0; font-size: 13.5px; color: #b8c3cf; }
.band .band-cta { align-self: center; text-align: right; max-width: 300px; }
.band .band-cta p { margin: 12px 0 0; font-size: 12.5px; color: #93a3b5; }

/* --- split --------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}
.split.dark { background: var(--navy); color: #fff; }
.split.dark p { color: #b8c3cf; }

/* --- generic content ----------------------------------------------------- */

.page-hero { background: var(--navy); color: #fff; padding: 84px 0; }
.page-hero h1 { font-size: clamp(46px, 8vw, 104px); max-width: 16ch; margin-bottom: 18px; }
.page-hero p { font-size: 19px; max-width: 660px; color: #bdc8d3; margin: 0; }

.prose { max-width: 760px; }
.prose h2 { font-family: var(--display); font-weight: 900; font-size: 40px; text-transform: uppercase; margin: 52px 0 16px; }
.prose h3 { font-family: var(--display); font-weight: 800; font-size: 25px; text-transform: uppercase; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--body); }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }

.steps { display: grid; gap: 1px; background: var(--line); border-top: 4px solid var(--navy); }
.step {
  background: #fff;
  padding: 26px 28px;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  align-items: start;
}
.step b { font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--red); line-height: 1; }
.step h3 { font-size: 17px; margin-bottom: 4px; }
.step p { margin: 0; font-size: 14.5px; color: var(--muted); }

.notice {
  background: #fff3d6;
  border-left: 4px solid #d99a00;
  padding: 16px 18px;
  color: #684e0a;
  font-size: 14.5px;
}
.notice p:last-child { margin-bottom: 0; }

/* --- forms --------------------------------------------------------------- */

.form-card { background: #fff; padding: 34px; border: 1px solid var(--line); }
.form-card label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 20px 0 7px;
}
.form-card input, .form-card textarea, .form-card select {
  width: 100%;
  border: 1px solid #cbd0d4;
  padding: 13px;
  font: inherit;
  background: #fff;
  border-radius: 0;
}
.form-card textarea { min-height: 120px; resize: vertical; }
.form-card .hint { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
.form-card button { margin-top: 26px; width: 100%; }
.honey { position: absolute; left: -9999px; }

/* --- cta ----------------------------------------------------------------- */

.cta { background: #fff; text-align: center; padding: 100px 0; }
.cta h2 { font-size: clamp(46px, 7vw, 92px); margin-bottom: 20px; }
.cta p { max-width: 620px; margin: 0 auto 28px; color: var(--muted); font-size: 17px; }
.cta .actions { justify-content: center; }

/* --- footer -------------------------------------------------------------- */

.site-footer { background: var(--navy-deep); color: #fff; padding: 62px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 70px; }
.footer-brand .brand-words b { color: #fff; }
.footer-brand .brand-words small { color: #7f8ea0; }
.footer-brand p { color: #91a0b0; max-width: 360px; margin-top: 18px; font-size: 14px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-links b {
  display: block;
  font-size: 10px;
  color: #8997a8;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.footer-links a { display: block; font-size: 13.5px; margin-top: 10px; color: #d3dae1; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #26374b;
  margin-top: 46px;
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: #8090a2;
  font-size: 11.5px;
}

/* --- responsive ---------------------------------------------------------- */

@media (max-width: 1180px) {
  :root { --gutter: 48px; }
  .nav-links { gap: 18px; font-size: 12px; }
  .nav-links .button.small { padding: 11px 13px; font-size: 10px; }
  .hero-grid { gap: 44px; }
  .band .pillars { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .band .band-cta { grid-column: 1 / -1; text-align: left; max-width: none; }
}

@media (max-width: 1000px) {
  .menu-btn { display: block; order: 3; }
  .nav-links {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 18px;
  }
  .nav-links.open { display: flex; }
  .nav-links > a { padding: 14px 0; border-bottom: 1px solid #eee; }
  .nav-links > a.is-current { border-bottom-color: var(--red); }
  .nav-actions { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 16px; }
  .nav-inner { flex-wrap: wrap; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero::before { width: 78%; opacity: 0.13; }
  .demo { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; gap: 22px; align-items: start; }
  .section-head.rule h2::before, .section-head.rule h2::after { display: none; }
  .solution-grid { grid-template-columns: repeat(2, 1fr); }
  .bottleneck { grid-template-columns: 1fr 1fr; }
  .bottleneck .title, .bottleneck .solution { grid-column: 1 / -1; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 640px) {
  :root { --gutter: 36px; }
  .section { padding: 64px 0; }
  .hero { padding: 52px 0 60px; }
  .solution-grid { grid-template-columns: 1fr; }
  .bottleneck { grid-template-columns: 1fr; }
  .band .pillars { grid-template-columns: 1fr; }
  .briefing-cols { grid-template-columns: 1fr; }
  .briefing-cols > div + div { border-left: 0; border-top: 1px solid #e5e5e2; }
  .briefing { box-shadow: 8px 8px 0 var(--navy); }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* --- interior page components -------------------------------------------- */

.page-hero .eyebrow { color: #ff7b86; margin-bottom: 14px; }
.page-hero .actions { margin-top: 30px; }

.stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-top: 4px solid var(--navy); }
.stage { background: #fff; padding: 26px 24px; }
.stage .kicker { font-size: 10px; letter-spacing: 0.14em; margin-bottom: 12px; }
.stage h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 22px; line-height: 1.02; margin-bottom: 10px; }
.stage ul { margin: 0; padding-left: 17px; }
.stage li { font-size: 13.5px; color: var(--muted); margin-bottom: 7px; }
.stage p { font-size: 13.5px; color: var(--muted); margin: 0; }

.two-col { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 70px; align-items: start; }
.two-col .side h2,
.form-layout .side h2 { font-family: var(--display); font-weight: 900; font-size: clamp(32px, 3.6vw, 46px); text-transform: uppercase; line-height: 0.92; }
.two-col .side p,
.form-layout .side p { color: var(--muted); margin-top: 14px; }

.compare { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); }
.compare caption { text-align: left; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.compare th, .compare td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14.5px; }
.compare thead th { background: var(--navy); color: #fff; font-size: 11px; letter-spacing: 0.11em; text-transform: uppercase; }
.compare tbody th { width: 22%; font-weight: 700; color: var(--ink); }
.compare td.ours { background: #fbfdfb; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-size: 15px; color: var(--body); }
.checklist svg { flex: none; margin-top: 3px; color: var(--red); }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pair > div { background: #fff; padding: 26px; }
.pair h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 21px; margin-bottom: 12px; }
.pair .them h3 { color: var(--muted); }
.pair .us { background: #fbfdfb; }
.pair .us h3 { color: var(--red); }
.pair ul { margin: 0; padding-left: 17px; }
.pair li { font-size: 14px; color: var(--body); margin-bottom: 8px; }

.form-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: start; }

@media (max-width: 1000px) {
  .stages { grid-template-columns: repeat(2, 1fr); }
  .two-col, .form-layout { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  .stages, .pair { grid-template-columns: 1fr; }
}

/* --- trust band (sits directly under the hero) --------------------------- */

.trust {
  background: var(--navy);
  color: #fff;
  padding: 46px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.85fr;
  gap: 56px;
  align-items: center;
}
.trust h2 {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 0.9;
  letter-spacing: -0.025em;
}
.trust h2 span { color: #ff4a58; }
.trust-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.trust-points div svg { color: #fff; margin-bottom: 10px; }
.trust-points b {
  display: block; font-size: 12.5px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 5px;
}
.trust-points p { margin: 0; font-size: 13.5px; color: #b8c3cf; }
.trust .text-link { color: #fff; display: inline-block; margin-top: 22px; }

/* --- before / after ------------------------------------------------------ */

.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.ba { background: #fff; padding: 30px 28px 26px; }
.ba.after { background: #fbfdfb; }
.ba > .kicker { color: var(--muted); }
.ba.after > .kicker { color: var(--red); }
.ba h3 {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: 27px; line-height: 1; margin: 8px 0 20px;
}
.ba-steps { list-style: none; margin: 0; padding: 0; }
.ba-steps li {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid #eeeeec;
  font-size: 14px;
}
.ba-steps li:last-child { border-bottom: 0; }
.ba-steps .who {
  font-size: 9px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 0; text-align: center;
}
.ba-steps .who.person { background: #fde9eb; color: #b3121f; }
.ba-steps .who.agynx { background: #e8f7ed; color: #1e7040; }
.ba-foot {
  margin: 20px 0 0; padding-top: 16px; border-top: 2px solid var(--navy);
  font-size: 14.5px; font-weight: 600;
}
.ba.after .ba-foot { border-top-color: var(--red); }

/* --- proof strip --------------------------------------------------------- */

.proof {
  display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: center;
  align-items: center; margin-top: 30px;
  font-size: 14px; color: var(--muted);
}
.proof span { display: flex; align-items: center; gap: 9px; }
.proof svg { color: var(--red); flex: none; }

.audience {
  margin: 0 auto 6px; max-width: 720px; text-align: center;
  font-size: 15.5px; color: var(--muted);
}

@media (max-width: 1000px) {
  .trust-grid { grid-template-columns: 1fr; gap: 30px; }
  .ba-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .trust-points { grid-template-columns: 1fr; gap: 22px; }
}

.trust-sub { color: #b8c3cf; font-size: 15px; margin: 16px 0 0; max-width: 46ch; }
.trust .text-link { margin-top: 20px; }
.proof span { max-width: 30ch; text-align: left; }
.proof .text-link { border-bottom-width: 1px; }

/* --- solution scenes ----------------------------------------------------- */

.scenes { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.scene {
  background: #fff;
  padding: 32px 30px 26px;
  display: flex;
  flex-direction: column;
  transition: background-color .15s ease;
}
.scene:hover { background: #fbfdfb; }
.scene .scene-text {
  font-size: 17.5px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 22px;
  border-left: 3px solid var(--red);
  padding-left: 18px;
}
.scene .scene-tag {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 21px;
  color: var(--navy);
}
.scene:hover .scene-tag { color: var(--red); }
.scene .scene-tag .arrow { font-family: var(--text); font-size: 15px; }

@media (max-width: 800px) { .scenes { grid-template-columns: 1fr; } }

.more-fields { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 6px; }
.more-fields > summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}
.more-fields > summary::-webkit-details-marker { display: none; }
.more-fields > summary::before { content: "+ "; }
.more-fields[open] > summary::before { content: "\2212 "; }

.footer-contact { margin-top: 14px; font-size: 14px; }
.footer-contact a { color: #fff; border-bottom: 2px solid var(--red); padding-bottom: 2px; }

.doc-version {
  margin-top: 54px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

/* --- hero demo animation -------------------------------------------------
   The final state is what the markup renders. JavaScript adds .is-animating
   to wind it back to a pending state and step forward, so a visitor without
   JavaScript sees the finished pipeline rather than an empty one. */

.demo.is-animating .step-card {
  opacity: 0.28;
  transform: translateY(5px);
  transition: opacity .4s ease, transform .4s ease;
}
.demo.is-animating .step-card::before {
  background: #c6ccd2;
  transition: background .4s ease, transform .3s ease;
}
.demo.is-animating .step-card.revealed { opacity: 1; transform: none; }
.demo.is-animating .step-card.done.revealed::before { background: #247743; }
.demo.is-animating .step-card:not(.done).revealed::before {
  background: var(--red);
  transform: scale(1.25);
}
.demo.is-animating .briefing {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .55s ease, transform .55s ease;
}
.demo.is-animating .briefing.revealed { opacity: 1; transform: none; }

/* ==========================================================================
   Interior page treatments
   Four families, four looks: solution pages, How It Works, Local AI (already
   distinct via its comparison table), and the editorial pages.
   ========================================================================== */

/* --- solution pages: light hero carrying the family icon ----------------- */

.page-hero.solution {
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 62px 0 56px;
}
.page-hero.solution .hero-icon { color: var(--red); display: block; margin-bottom: 20px; }
.page-hero.solution .eyebrow { color: var(--red); }
.page-hero.solution h1 { font-size: clamp(40px, 6vw, 76px); max-width: 18ch; }
.page-hero.solution p { color: var(--body); }

/* --- solution pages: the four stages read as a flow, not a grid ---------- */

.stages.flow-h {
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  background: transparent;
  border-top: 0;
}
.stages.flow-h .stage {
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  position: relative;
}
.stages.flow-h .stage:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -18px;
  top: 30px;
  width: 0; height: 0;
  border: 7px solid transparent;
  border-left-color: var(--red);
}

/* --- How It Works: a vertical spine, echoing the product's own metaphor -- */

.flow { position: relative; padding-left: 58px; }
.flow::before {
  content: "";
  position: absolute;
  left: 18px; top: 10px; bottom: 26px;
  width: 2px;
  background: linear-gradient(var(--red), rgba(237, 28, 46, 0.18));
}
.flow-step { position: relative; padding-bottom: 34px; }
.flow-step:last-child { padding-bottom: 0; }
.flow-step::before {
  content: attr(data-step);
  position: absolute;
  left: -58px; top: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
}
.flow-step h3 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 25px;
  line-height: 1.05;
  margin-bottom: 8px;
  padding-top: 5px;
}
.flow-step p { color: var(--body); margin: 0; max-width: 62ch; }

/* --- editorial: pull quote for About and Investors ----------------------- */

.pull {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--navy);
  border-left: 5px solid var(--red);
  padding: 4px 0 4px 28px;
  margin: 46px 0;
  max-width: 22ch;
}

@media (max-width: 1000px) {
  .stages.flow-h { grid-template-columns: repeat(2, 1fr); }
  .stages.flow-h .stage::after { display: none; }
  .flow { padding-left: 46px; }
  .flow-step::before { left: -46px; width: 32px; height: 32px; font-size: 15px; }
  .flow::before { left: 15px; }
}
@media (max-width: 640px) {
  .stages.flow-h { grid-template-columns: 1fr; }
  .pull { font-size: 26px; padding-left: 18px; }
}
