/* =============================================================================
   AyinOps marketing site: shared stylesheet (linked from every page).
   No build step. Plain CSS, no dependencies.

   HOW THIS FILE IS ORGANISED
   0  Fonts (self-hosted woff2 + metric-matched fallbacks)
   1  Design tokens
   2  Base / reset
   3  Accessibility helpers (skip link, focus ring, sr-only, reduced motion)
   4  Header, mobile menu, footer
   5  Layout (wrap, sections, splits, grids)
   6  Typography
   7  Buttons, chips, pills, tabs
   8  Cards and lists
   9  Page components (home mock, steps, panels, AI answers, form, demo page ...)
   10 Utilities and page-level fixes

   NOTE ON !important
   The pages were exported from a design tool with almost everything inline.
   Every repeated pattern now lives in the classes below, so the markup carries
   no style="" attributes except the per-instance CSS variables of the camera
   tile illustrations (style="--x:40%;--c:#34d399"), and no rule here needs
   !important to win a specificity fight. The only uses are the usual
   "this must always win" cases:
     [hidden]                  hidden means hidden, whatever display a class sets
     .sr-only / .hp            visually-hidden text and the form honeypot
     prefers-reduced-motion    one blanket rule that must beat every transition
     @media print              forces a plain white page
   ============================================================================= */

/* ---------------------------------------------------------------------------
   0  FONTS
   Self-hosted (OFL, see /fonts/OFL-*.txt). One variable file covers every
   Plus Jakarta Sans weight used (400-800); IBM Plex Mono is used at 500 (and
   700 for the tiny detection labels). font-display: swap, plus fallback faces
   whose metrics are tuned to the real fonts so the swap does not shift layout.
   --------------------------------------------------------------------------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Fallback";
  src: local("Arial"), local("Liberation Sans"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 104%;
  ascent-override: 99.8%;
  descent-override: 21.3%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Plex Mono Fallback";
  src: local("Courier New"), local("Liberation Mono"), local("Menlo"), local("Consolas");
  size-adjust: 100%;
  ascent-override: 102.5%;
  descent-override: 27.5%;
  line-gap-override: 0%;
}

/* ---------------------------------------------------------------------------
   1  DESIGN TOKENS
   --------------------------------------------------------------------------- */
:root {
  /* brand */
  --brand: #006948;
  --brand-hover: #005a3e;
  --accent: #059669;
  --mint: #34d399;
  --mint-hover: #6ee7b7;
  --mint-50: #ecfdf5;
  --mint-100: #d1fae5;
  /* ink */
  --ink: #0f1f19;
  --ink-2: #3d4a44;
  --muted: #566660;
  /* surfaces */
  --soft: #f7f9fb;
  --line: #d9e4de;
  --dark: #0b1f17;
  --dark-2: #12291f;
  --dark-3: #18362a;
  --line-dark: #244035;
  --on-dark: #f7f9fb;
  --on-dark-2: #a9c2b6;
  --on-dark-3: #7f9c8e;
  --warn: #b91c1c;
  /* type */
  --font-sans: "Plus Jakarta Sans", "Plus Jakarta Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Plex Mono Fallback", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* layout */
  --gutter: clamp(20px, 4vw, 40px);
  --max: 1280px;
  --header-h: 72px;
  --sec-y: clamp(56px, 6vw + 24px, 96px);
  --hero-top: clamp(40px, 5vw + 16px, 80px);
  --hero-bottom: clamp(36px, 4vw + 16px, 72px);
  --body-top: clamp(32px, 4vw + 8px, 64px);
  --body-bottom: clamp(56px, 5vw + 32px, 88px);
  --cta-y: clamp(56px, 5vw + 32px, 88px);
  --radius: 12px;
  --ring: #34d399;
}
@media (max-width: 1099px) {
  :root { --header-h: 64px; }
}

/* ---------------------------------------------------------------------------
   2  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);
  overflow-x: clip; /* safety net only; layouts are built not to overflow */
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-sans);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg, video, canvas { max-width: 100%; }
svg { flex: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
a, button, summary, label[for], input[type="range"] { -webkit-tap-highlight-color: rgba(5, 150, 105, 0.15); }
[hidden] { display: none !important; }
::selection { background: #bbf7d0; color: var(--ink); }
main { display: block; flex: 1 0 auto; }

/* ---------------------------------------------------------------------------
   3  ACCESSIBILITY HELPERS
   --------------------------------------------------------------------------- */
.skip-link {
  position: fixed;
  left: 12px;
  top: -120px;
  z-index: 1000;
  padding: 14px 20px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font: 700 15px/1.2 var(--font-sans);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

/* Focus ring: the brand mint ring, with an ink hairline between element and ring
   so the indicator keeps 3:1 contrast on light AND dark surfaces. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--ink);
}
:where(input[type="range"]):focus-visible { box-shadow: none; outline-offset: 4px; }
/* containers that only receive focus from script (main, result panels, headings after an action) */
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; box-shadow: none; }
.sec--dark :where(a, button, input, select, textarea):focus-visible,
.site-footer :where(a, button):focus-visible { box-shadow: 0 0 0 2px var(--dark); }

/* Reduced motion: everything stops, except the decorative demo scenes (.vb), which are
   frozen on a representative frame instead and which people can opt in to with the
   "Play scenes" button (see section 9). */
@media (prefers-reduced-motion: reduce) {
  *:not(.vb), *:not(.vb)::before, *:not(.vb)::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------------------------------------------------------------------
   4  HEADER, MOBILE MENU, FOOTER
   --------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, 0.9); backdrop-filter: saturate(180%) blur(10px); }
}
.site-header.is-stuck { box-shadow: 0 8px 28px rgba(11, 31, 23, 0.08); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 12px 24px;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
  flex: none;
}
.brand__mark { display: block; width: 40px; height: 36px; }
.brand__word {
  font: 800 28px var(--font-sans);
  letter-spacing: -1px;
  color: var(--ink);
}
.brand__word span { font-weight: 500; color: var(--accent); }

.site-menu {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 28px;
  min-width: 0;
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 28px;
  flex: 1 1 auto;
}
.site-nav a {
  font: 600 15px var(--font-sans);
  color: var(--ink);
  text-decoration: none;
  padding: 14px 4px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.site-nav a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }
.site-menu__foot { display: flex; align-items: center; gap: 16px; flex: none; }
.site-header .header-cta { display: none; } /* scoped so it outranks .btn */
.nav-toggle { display: none; }

@media (hover: hover) {
  .site-nav a:hover { color: var(--brand); }
  .site-nav a:not([aria-current]):hover { border-bottom-color: var(--line); }
}
@media (max-width: 1279px) and (min-width: 1100px) {
  .site-nav { gap: 4px 18px; }
  .site-menu { gap: 8px 16px; }
  .site-header__inner { gap: 12px 16px; }
}

/* Hamburger mode (below 1100px) */
@media (max-width: 1099px) {
  .brand__word { font-size: 24px; letter-spacing: -0.8px; }
  .brand__mark { width: 34px; height: 31px; }
  .site-header .header-cta { margin-left: auto; min-height: 44px; padding: 0 16px; font-size: 15px; }
  .nav-toggle {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
  }
  .nav-toggle__bars { position: relative; display: block; width: 20px; height: 14px; }
  .nav-toggle__bars i {
    position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px;
    background: currentColor; transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
  }
  .nav-toggle__bars i:nth-child(1) { top: 0; }
  .nav-toggle__bars i:nth-child(2) { top: 6px; }
  .nav-toggle__bars i:nth-child(3) { top: 12px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { top: 6px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { top: 6px; transform: rotate(-45deg); }

  .site-menu {
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 6px var(--gutter) 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 28px 48px rgba(11, 31, 23, 0.16);
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .js .site-menu { display: none; }
  .js .site-header.is-open .site-menu { display: flex; }
  .site-nav { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 0; }
  .site-nav a {
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 0 4px;
    font-size: 17px;
    border-bottom: 1px solid var(--line);
  }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line); box-shadow: inset 3px 0 0 var(--brand); padding-left: 16px; }
  .site-menu__foot { flex-direction: column; align-items: stretch; gap: 12px; padding-top: 16px; }
  .site-header .menu-cta { width: 100%; justify-content: center; }
}
@media (min-width: 420px) and (max-width: 1099px) {
  .site-header .header-cta { display: inline-flex; }
  .site-header .header-cta + .nav-toggle { margin-left: 0; }
  .site-header .menu-cta { display: none; }
}
@media (max-width: 419px) {
  .brand { gap: 8px; }
}
/* no-JS fallback: show the nav inline, wrapping, no hamburger */
html:not(.js) .nav-toggle { display: none; }
@media (max-width: 1099px) {
  html:not(.js) .site-menu { position: static; box-shadow: none; max-height: none; border: 0; padding: 0; display: flex; }
  html:not(.js) .site-header__inner { flex-wrap: wrap; padding-bottom: 8px; }
  html:not(.js) .site-nav { flex-direction: row; flex-wrap: wrap; gap: 0 16px; }
  html:not(.js) .site-nav a { border-bottom: 2px solid transparent; min-height: 44px; }
}
html.menu-open { overflow: hidden; }
.menu-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(11, 31, 23, 0.45);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.menu-open .menu-backdrop { opacity: 1; pointer-events: auto; }
@media (min-width: 1100px) { .menu-backdrop { display: none; } }

/* Footer */
.site-footer { background: var(--dark); color: var(--on-dark-2); }
.site-footer .wrap { padding-top: clamp(48px, 5vw + 24px, 72px); padding-bottom: 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px 48px; }
.footer-brand { flex: 1 1 320px; max-width: 420px; }
.site-footer .brand__word { color: var(--on-dark); }
.site-footer .brand__word span { color: var(--mint); }
.footer-blurb { margin-top: 20px; font: 400 16px/1.6 var(--font-sans); color: var(--on-dark-2); }
.footer-mail { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 8px; font: 600 16px var(--font-sans); color: var(--mint); text-decoration: none; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 32px 56px; }
.footer-col { display: flex; flex-direction: column; gap: 2px; min-width: 150px; }
.footer-h { font: 500 12px var(--font-mono); letter-spacing: 2px; text-transform: uppercase; color: var(--mint); margin: 0 0 8px; }
.footer-list { display: flex; flex-direction: column; gap: 2px; }
.footer-link {
  display: inline-flex;
  align-items: center;
  font: 500 15px var(--font-sans);
  color: var(--on-dark-2);
  text-decoration: none;
  padding: 6px 0;
  min-height: 32px;
}
@media (hover: hover) { .footer-link:hover, .footer-mail:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; } }
.footer-base {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  font: 500 14px var(--font-sans);
  color: var(--on-dark-3);
}
.footer-base a { color: inherit; }
.footer-lang { display: inline-flex; align-items: center; gap: 8px; }
.footer-top-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font: 600 14px var(--font-sans); color: var(--on-dark-2); text-decoration: none;
}
@media (hover: hover) { .footer-top-link:hover { color: #fff; } }
@media (max-width: 639px) {
  .footer-top { gap: 28px; }
  .footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; width: 100%; }
  .footer-col { min-width: 0; }
  .footer-base { margin-top: 28px; }
}
@media (max-width: 639px), (pointer: coarse) {
  .footer-link { min-height: 44px; min-width: 44px; padding-block: 0; }
}

/* Back to top (injected by site.js) */
.to-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 80;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  background: var(--dark);
  color: #fff;
  box-shadow: 0 10px 24px rgba(11, 31, 23, 0.25);
  opacity: 0; transform: translateY(10px); pointer-events: none; visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
@media (hover: hover) { .to-top:hover { background: var(--brand); } }

/* ---------------------------------------------------------------------------
   5  LAYOUT
   --------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sec { background: #fff; }
.sec--soft { background: var(--soft); }
.sec--dark { background: var(--dark); color: var(--on-dark); }
.sec--brand { background: var(--brand); }
.sec--strip { border-top: 1px solid var(--line); }
.pad-sec { padding-block: var(--sec-y); }
.pad-sec--flush { padding-top: 0; }
.pad-hero { padding-top: var(--hero-top); padding-bottom: var(--hero-bottom); }
.pad-body { padding-top: var(--body-top); padding-bottom: var(--body-bottom); }
.pad-cta { padding-block: var(--cta-y); }
.pad-strip { padding-block: 28px; }
.gap { height: clamp(28px, 3vw + 12px, 48px); }
.gap--sm { height: clamp(24px, 2.4vw + 12px, 40px); }
.mt-32 { margin-top: 32px; }
/* ".js" is added to <html> by an inline script in <head>; everything below works without it */
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 24px; margin-bottom: clamp(28px, 3vw + 12px, 40px); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.panel { background: var(--soft); border: 1px solid var(--line); border-radius: 16px; padding: 36px; }
@media (max-width: 639px) { .panel { padding: 24px 20px; } }
.feature-row { display: flex; align-items: center; gap: 16px; background: var(--dark-2); border: 1px solid var(--line-dark); border-radius: 12px; padding: 20px 24px; }
.feature-row__t { font: 700 18px/1.3 var(--font-sans); color: var(--on-dark); }
.feature-row__d { margin-top: 4px; font: 400 15px/1.5 var(--font-sans); color: var(--on-dark-2); }
@media (max-width: 479px) { .feature-row { padding: 16px; gap: 14px; } }

.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 32px; }
.cta__copy { flex: 1 1 520px; min-width: 0; }
.cta .actions { margin-top: 0; }

.split { display: flex; flex-wrap: wrap; gap: 40px 48px; }
.split--center { align-items: center; }
.split--start { align-items: flex-start; }
.split--stretch { align-items: stretch; }
.split--gap-56 { gap: 40px 56px; }
.split--gap-64 { gap: 40px 64px; }
.split--gap-48 { gap: 40px 48px; }
.col { min-width: 0; flex: 1 1 440px; }
.col-400 { flex-basis: 400px; } .col-440 { flex-basis: 440px; }
.col-460 { flex-basis: 460px; } .col-480 { flex-basis: 480px; } .col-520 { flex-basis: 520px; }
@media (max-width: 767px) { .split > .col { flex-basis: 100%; } }

.grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
/* 3 across, then 1 */
.grid-3 { }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* 3 across, then 2, then 1 (for multiples of 2 and 3) */
@media (min-width: 640px) { .grid-3-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid-3-2 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* 4 across, then 2, then 1 */
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* 2 across, then 1 */
/* five items: 3 + 2 on desktop (no orphan), 2 + 2 + 1 on tablet, 1 on phones */
@media (min-width: 640px) {
  .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-5 > :last-child { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .grid-5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grid-5 > * { grid-column: span 2; }
  .grid-5 > :nth-child(n+4) { grid-column: span 3; }
  .grid-5 > :last-child { grid-column: span 3; }
}
/* five items where 3 + 2 left aligned is acceptable (security principles) */

/* ---------------------------------------------------------------------------
   6  TYPOGRAPHY
   Letter-spacing is in em so tracking scales with the fluid font sizes
   (the export used fixed px values that were far too tight on phones).
   --------------------------------------------------------------------------- */
.eyebrow {
  font: 500 13px var(--font-mono);
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 16px;
}
.eyebrow--dark { color: var(--mint); }
.eyebrow--muted { color: var(--muted); margin-bottom: 0; }
.label { font: 500 12px var(--font-mono); letter-spacing: 0.16em; color: var(--brand); }
.label--caps { text-transform: uppercase; letter-spacing: 0.125em; }
.label--wide { text-transform: uppercase; letter-spacing: 0.2em; }
.label--dark { color: var(--mint); }
.label--mb10 { margin-bottom: 10px; }
.label--mb16 { margin-bottom: 16px; }

.h1 {
  font: 800 clamp(34px, 5vw, 64px)/1.05 var(--font-sans);
  letter-spacing: -0.039em;
  word-spacing: 0.08em;
  color: var(--ink);
  max-width: 900px;
  text-wrap: balance;
}
.h1--home { font-size: clamp(36px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -0.042em; max-width: none; }
.accent { color: var(--accent); }
.h2 {
  font: 800 clamp(28px, 4vw, 44px)/1.1 var(--font-sans);
  letter-spacing: -0.034em;
  word-spacing: 0.07em;
  color: var(--ink);
  max-width: 760px;
  text-wrap: balance;
}
.h2--dark { color: var(--on-dark); }
.h2--brand { color: #fff; max-width: none; }
.h2--sm { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -0.03em; max-width: none; }
.h3 { font: 800 clamp(24px, 2.4vw + 8px, 32px)/1.15 var(--font-sans); letter-spacing: -0.031em; word-spacing: 0.06em; color: var(--ink); }

.lead { margin-top: 20px; font: 400 clamp(17px, 0.5vw + 14.4px, 19px)/1.6 var(--font-sans); color: var(--ink-2); max-width: 680px; }
.lead--hero { max-width: 720px; }
.lead--dark { color: var(--on-dark-2); }
.lead--brand { margin-top: 16px; color: var(--mint-100); max-width: 620px; }
.lead--home { margin-top: 28px; font-size: clamp(17px, 0.6vw + 14.6px, 20px); max-width: 560px; }
.lead--sm { margin-top: 18px; font-size: clamp(16px, 0.3vw + 15px, 18px); max-width: 560px; }
.note { margin-top: 28px; font: 400 15px/1.6 var(--font-sans); color: var(--muted); max-width: 62ch; }

/* ---------------------------------------------------------------------------
   7  BUTTONS, CHIPS, PILLS, TABS
   --------------------------------------------------------------------------- */
.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 24px;
  border-radius: 8px;
  border: 2px solid transparent;
  font: 700 16px/1.25 var(--font-sans);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  max-width: 100%;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--mint { background: var(--mint); border-color: var(--mint); color: var(--dark); }
.btn--outline { background: #fff; border-color: var(--brand); color: var(--brand); }
.btn--ghost { background: transparent; border-color: #4f7a69; color: #fff; }
.btn--lg { min-height: 52px; padding-inline: 28px; font-size: 17px; }
.actions--sm { margin-top: 28px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.7; cursor: not-allowed; }
@media (hover: hover) {
  .btn--primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
  .btn--mint:hover { background: var(--mint-hover); border-color: var(--mint-hover); }
  .btn--outline:hover { background: var(--mint-50); }
  .btn--ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--mint); }
}
.btn:active { transform: translateY(1px); }
@media (max-width: 479px) {
  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn { width: 100%; }
  .cta .actions { flex: 1 1 100%; }
  /* lone call-to-action buttons (section heads, split columns) match the .actions buttons above */
  .sec-head > div > .btn, .mt-32 > .btn { width: 100%; }
}

.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chips--end { margin-top: auto; }
.chips--mt { margin-top: 14px; gap: 10px; }
.chip { font: 600 13px var(--font-sans); color: var(--brand); background: var(--mint-50); border-radius: 6px; padding: 5px 10px; }
.chip--lg { font-size: 14px; padding: 7px 12px; }
.chip-label { font: 500 12px var(--font-mono); letter-spacing: 0.08em; color: var(--muted); }

/* toggle pills (filters) */
.pill-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pill {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: 600 15px var(--font-sans);
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.pill[aria-pressed="true"], .pill.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (hover: hover) { .pill:not([aria-pressed="true"]):hover { border-color: var(--brand); color: var(--brand); } }

/* tabs */
.tablist { display: flex; flex-wrap: wrap; gap: 12px; }
.tab {
  min-height: 48px;
  padding: 0 24px;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: 700 16px var(--font-sans);
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.tab[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (hover: hover) { .tab[aria-selected="false"]:hover { border-color: var(--brand); color: var(--brand); } }
.tabs > .scroll-row { margin-bottom: clamp(24px, 3vw, 32px); }
.tabpanel:focus { outline: none; }
.tabpanel:focus-visible { outline: 3px solid var(--ring); outline-offset: 6px; box-shadow: none; border-radius: 8px; }
.js .tabpanel:not(.is-active) { display: none; }
html:not(.js) .tablist { display: none; }
html:not(.js) .tabpanel + .tabpanel { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }

/* Scroll rows: filters / tabs scroll sideways on narrow screens, with a fade cue */
.scroll-row { position: relative; }
@media (max-width: 767px) {
  .scroll-row > .pill-row, .scroll-row > .tablist {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .scroll-row > .pill-row::-webkit-scrollbar, .scroll-row > .tablist::-webkit-scrollbar { display: none; }
  .scroll-row > * > * { scroll-snap-align: start; flex: none; }
  .scroll-row::after, .scroll-row::before {
    content: ""; position: absolute; top: 0; bottom: 0; width: 36px; pointer-events: none; opacity: 0; transition: opacity 0.15s ease;
  }
  .scroll-row::after { right: calc(var(--gutter) * -1); background: linear-gradient(to left, #fff 15%, rgba(255, 255, 255, 0)); }
  .scroll-row::before { left: calc(var(--gutter) * -1); background: linear-gradient(to right, #fff 15%, rgba(255, 255, 255, 0)); z-index: 1; }
  .scroll-row.can-right::after { opacity: 1; }
  .scroll-row.can-left::before { opacity: 1; }
}

/* ---------------------------------------------------------------------------
   8  CARDS AND LISTS
   --------------------------------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  min-height: var(--card-min, 0);
  color: inherit;
  text-decoration: none;
}
.card--dark { background: var(--dark-2); border-color: var(--line-dark); }
.card--link { transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; }
@media (hover: hover) {
  .card--link:hover { border-color: #8fd2b6; box-shadow: 0 14px 34px rgba(11, 31, 23, 0.1); transform: translateY(-2px); }
  .card--dark.card--link:hover { border-color: #3c6a58; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35); }
}
.card--sm { padding: 24px; gap: 0; }
.card--step { padding: 26px; gap: 12px; }
.card--big { padding: 32px; gap: 16px; }
.cards-h200 { --card-min: 200px; }
.cards-h190 { --card-min: 190px; }
.cards-h210 { --card-min: 210px; }
.cards-h230 { --card-min: 230px; }
.cards-h180 { --card-min: 180px; }
.cards-h170 { --card-min: 170px; }
.cards-h150 { --card-min: 150px; }
.card-icon {
  width: 48px; height: 48px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px; background: var(--mint-50);
}
.card--dark .card-icon { background: var(--dark-3); }
.card-icon--lg { width: 52px; height: 52px; border-radius: 12px; }
.card-head { display: flex; align-items: center; justify-content: space-between; }
.card-num { font: 500 14px var(--font-mono); letter-spacing: 2px; color: var(--brand); }
.card-title { font: 700 20px/1.25 var(--font-sans); letter-spacing: -0.02em; color: var(--ink); }
.card-title--sm { font: 800 18px/1.25 var(--font-sans); letter-spacing: -0.017em; }
.card-title--md { font: 700 19px/1.3 var(--font-sans); letter-spacing: 0; }
.card-title--lg { font: 800 22px/1.2 var(--font-sans); letter-spacing: -0.023em; }
.card-title--xl { font: 800 26px/1.2 var(--font-sans); letter-spacing: -0.031em; }
.card--dark .card-title { color: var(--on-dark); }
.card-text { font: 400 16px/1.6 var(--font-sans); color: var(--ink-2); }
.card-text--sm { font-size: 15px; line-height: 1.6; }
.card--dark .card-text { color: var(--on-dark-2); }
.card--sm .card-text { margin-top: 10px; }
.card-more { margin-top: auto; display: flex; align-items: center; gap: 8px; font: 700 15px var(--font-sans); color: var(--brand); }
.card--dark .card-more { color: var(--mint); }
.card--link:hover .card-more svg { transform: translateX(3px); }
.card-more svg { transition: transform 0.15s ease; }

@media (max-width: 639px) {
  .card { padding: 22px 20px; --card-min: 0; }
  .card--sm { padding: 20px; }
  .card--big { padding: 24px 20px; }
  /* compact "row" cards on phones: icon beside title/text */
  .card--row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 6px;
    align-content: start;
  }
  .card--row > .card-icon { grid-row: 1 / span 3; width: 44px; height: 44px; }
  .card--row > .card-title, .card--row > .card-text, .card--row > .card-more { grid-column: 2; }
  /* the whole card is the link: keep only the arrow, top right */
  .card--row { position: relative; row-gap: 4px; padding-block: 18px; }
  .card--row > .card-title { padding-right: 28px; }
  .card--row > .card-more { position: absolute; top: 20px; right: 18px; margin: 0; }
  .card--row .card-more__t { display: none; }
}

.check-list { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.check-list--lg { gap: 14px; margin-top: 0; }
.check-row { display: flex; align-items: flex-start; gap: 10px; font: 500 15px/1.5 var(--font-sans); color: var(--ink-2); }
.check-row--lg { gap: 12px; font-size: 16px; }
.check-icon { flex: none; margin-top: 2px; display: flex; }
.hero-points { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 40px; }
.hero-point { display: flex; align-items: center; gap: 10px; font: 600 15px var(--font-sans); color: var(--ink-2); }

/* ---------------------------------------------------------------------------
   9  PAGE COMPONENTS
   --------------------------------------------------------------------------- */

/* -- Home: industries strip */
.strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 40px; }
.strip__items { display: flex; flex-wrap: wrap; gap: 0 36px; }
.strip__link {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 4px;
  font: 700 17px var(--font-sans); color: var(--ink); text-decoration: none;
}
@media (hover: hover) { .strip__link:hover { color: var(--brand); } }
@media (max-width: 639px) {
  .strip__items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; width: 100%; }
  .strip__link { font-size: 16px; }
}

/* -- Home: hero mock (illustration, decorative) */
.mock { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px rgba(11, 31, 23, 0.14); overflow: hidden; }
.mock__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--soft); }
.mock__title { display: flex; align-items: center; gap: 10px; font: 700 14px var(--font-sans); color: var(--ink); }
.mock__meta { font: 500 12px var(--font-mono); color: var(--muted); text-align: right; }
.mock__body { display: flex; flex-wrap: wrap; gap: 20px; padding: 20px; }
.mock__shots { flex: 1 1 340px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mock__alerts { flex: 1 1 210px; min-width: 0; }
.alert-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.alert-row__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; background: var(--c, var(--mint)); }
.alert-row__t { font: 700 14px/1.3 var(--font-sans); color: var(--ink); }
.alert-row__s { margin-top: 4px; font: 500 12px var(--font-mono); color: var(--muted); }
.mock__ask { margin: 0 20px 20px; display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 16px; font: 500 14px var(--font-sans); color: var(--muted); }
.mock-caption { margin-top: 12px; font: 500 12px var(--font-mono); letter-spacing: 0.08em; color: var(--muted); }
.shot { position: relative; height: 132px; border-radius: 8px; background: #14261f; overflow: hidden; }
.shot__floor { position: absolute; left: 0; right: 0; bottom: 0; height: 36%; background: #1b3329; }
.shot__label { position: absolute; left: 10px; top: 8px; font: 500 10px var(--font-mono); letter-spacing: 1px; color: #9fb8ac; text-transform: uppercase; }
.shot__person { position: absolute; left: var(--x); bottom: 26px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.shot__person .p-head { display: block; width: 15px; height: 15px; border-radius: 50%; background: #35614f; }
.shot__person .p-body { display: block; width: 26px; height: 46px; border-radius: 10px 10px 4px 4px; background: #35614f; }
.shot__box { position: absolute; left: calc(var(--x) - 9px); bottom: 20px; width: 44px; height: 82px; border: 2px solid var(--c); border-radius: 4px; }
.shot__tag {
  position: absolute; left: -2px; top: -2px; max-width: calc(100vw - 80px);
  background: var(--c); color: #04261a; font: 700 9px var(--font-mono); padding: 2px 5px; text-transform: uppercase; white-space: nowrap;
}
@media (max-width: 519px) {
  .mock__bar { padding: 12px 14px; }
  .mock__meta { font-size: 11px; }
  .mock__body { padding: 14px; gap: 14px; }
  .mock__ask { margin: 0 14px 14px; }
  .shot { height: 124px; }
  .shot__tag { white-space: normal; width: max-content; max-width: 78px; line-height: 1.15; } /* wraps inside narrow tiles */
}

/* -- Platform: flow of four steps, dark highlight panel */
.flow { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.flow__arrow { display: flex; align-items: center; justify-content: center; transform: rotate(90deg); color: var(--accent); }
.flow .card { flex: 0 0 auto; }
@media (min-width: 640px) and (max-width: 1099px) {
  .flow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .flow__arrow { display: none; }
}
@media (min-width: 1100px) {
  .flow { flex-direction: row; }
  .flow .card { flex: 1 1 0; min-width: 0; }
  .flow__arrow { transform: none; flex: none; }
}
.feature-panel { background: var(--dark); border-radius: 16px; padding: 36px; display: flex; flex-direction: column; gap: 24px; justify-content: center; }
.glance { border-top: 1px solid var(--line-dark); padding-top: 20px; }
.glance__k { font: 500 13px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-3); }
.glance__v { margin-top: 8px; font: 700 20px/1.35 var(--font-sans); color: var(--on-dark); }
@media (max-width: 639px) { .feature-panel { padding: 24px 20px; gap: 18px; } .glance { padding-top: 16px; } }
.panel-lead { margin: 16px 0 28px; font: 400 18px/1.6 var(--font-sans); color: var(--ink-2); max-width: 620px; }

/* -- Industries */
.seg-panel__cases { display: grid; gap: 16px; align-content: start; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .seg-panel__cases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat-card { background: var(--dark-2); border: 1px solid var(--line-dark); border-radius: 16px; padding: 40px; }
.stat-card__n { font: 800 64px/1 var(--font-sans); letter-spacing: -2px; color: var(--mint); }
.stat-card__t { margin-top: 12px; font: 700 20px var(--font-sans); color: var(--on-dark); }
.stat-card__d { margin-top: 10px; font: 400 16px/1.6 var(--font-sans); color: var(--on-dark-2); }
@media (max-width: 639px) { .stat-card { padding: 28px 22px; } .stat-card__n { font-size: 52px; } }

/* -- AI Insight */
.qa { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.qa__list { flex: 1 1 340px; max-width: 440px; min-width: 0; }
.qa__buttons { display: flex; flex-direction: column; gap: 12px; }
.qbtn {
  display: block; width: 100%; text-align: left;
  min-height: 56px; padding: 14px 18px;
  border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  font: 600 16px/1.4 var(--font-sans);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.qbtn[aria-pressed="true"] { background: var(--mint-50); border-color: var(--brand); }
@media (hover: hover) { .qbtn:not([aria-pressed="true"]):hover { border-color: var(--brand); } }
.qa__panel { flex: 1 1 560px; min-width: 0; background: var(--soft); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.qa__panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.qa__panel-title { display: flex; align-items: center; gap: 10px; font: 700 15px var(--font-sans); color: var(--ink); }
.qa__sample { font: 500 11px var(--font-mono); letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.qa__empty { padding: 48px 8px; text-align: center; font: 400 17px/1.6 var(--font-sans); color: var(--muted); }
.qa__live { min-height: 120px; }
.js .qa__answer { display: none; }
.js .qa__answer.is-active { display: block; }
.js .qa__panel.has-answer .qa__empty { display: none; }
html:not(.js) .qa__empty { display: none; }
html:not(.js) .qa__answer + .qa__answer { margin-top: 36px; }
.qa__ask { display: flex; justify-content: flex-end; }
.qa__ask p { max-width: 80%; background: var(--brand); color: #fff; border-radius: 14px 14px 4px 14px; padding: 14px 18px; font: 600 16px/1.5 var(--font-sans); }
.qa__reply { margin-top: 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 22px; }
.qa__reply-head { font: 800 19px/1.4 var(--font-sans); color: var(--ink); }
.qa__rows { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.qa__row { display: flex; gap: 10px; font: 500 16px/1.5 var(--font-sans); color: var(--ink-2); }
.qa__row::before { content: "\00b7"; color: var(--accent); font-weight: 800; }
.qa__meta { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font: 500 12px/1.6 var(--font-mono); color: var(--muted); }
@media (max-width: 639px) { .qa__panel { padding: 20px 16px; } .qa__ask p { max-width: 92%; } .qa__reply { padding: 18px 16px; } }

/* -- Analytics */
.catalog { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.catalog .card { --card-min: 230px; }
.filters { margin-bottom: 4px; }
.catalog__status { margin: 12px 0 20px; min-height: 1.5em; font: 500 14px var(--font-sans); color: var(--muted); }
html:not(.js) .catalog__status { display: none; }
html:not(.js) .filters { display: none; }
@media (max-width: 639px) { .catalog .card { --card-min: 0; } }

/* -- Request a demo */
.demo-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.demo-main { flex: 1 1 560px; min-width: 0; }
.demo-aside { flex: 1 1 360px; max-width: 480px; background: var(--dark); border-radius: 16px; padding: 40px; display: flex; flex-direction: column; gap: 28px; }
.demo-aside .step { display: flex; gap: 18px; }
.steps { display: flex; flex-direction: column; gap: 28px; }
.step__n { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--dark-2); border: 1px solid var(--line-dark); color: var(--mint); display: flex; align-items: center; justify-content: center; font: 700 17px var(--font-sans); }
.step__t { font: 800 19px var(--font-sans); color: var(--on-dark); }
.step__d { margin-top: 4px; font: 400 16px/1.6 var(--font-sans); color: var(--on-dark-2); }
.demo-aside__mail { border-top: 1px solid var(--line-dark); padding-top: 24px; font: 500 15px/1.6 var(--font-sans); color: var(--on-dark-2); }
.demo-aside__mail a { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; }
.link-brand { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
@media (max-width: 639px) { .demo-aside { padding: 28px 22px; } }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 40px; }
.form { display: flex; flex-direction: column; gap: 24px; }
.form__row { display: flex; flex-wrap: wrap; gap: 20px; }
.field { min-width: 0; }
.form__row > .field { flex: 1 1 240px; } /* width basis for fields sitting side by side; the stacked .form is a column, where a basis would set a height */
.field__label, .field__legend { display: block; margin-bottom: 8px; font: 700 14px var(--font-sans); color: var(--ink); padding: 0; }
.field__opt { font-weight: 500; color: var(--muted); }
.field__req { color: var(--warn); }
.input {
  display: block; width: 100%; min-height: 52px; padding: 0 16px;
  border-radius: 8px; border: 1.5px solid #b7c8bf; background: #fff;
  font: 500 16px var(--font-sans); color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea.input { min-height: 120px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.input::placeholder { color: #66756e; opacity: 1; }
.input:hover { border-color: #8aa398; }
.input:focus { border-color: var(--brand); }
.input[aria-invalid="true"] { border-color: var(--warn); background: #fff7f7; }
.field__error { margin-top: 6px; font: 600 14px/1.4 var(--font-sans); color: var(--warn); display: flex; gap: 6px; align-items: flex-start; }
.field__error[hidden] { display: none; }
.field__hint { margin-top: 6px; font: 500 13px/1.4 var(--font-sans); color: var(--muted); }
.radio-pills { border: 0; margin: 0; padding: 0; min-width: 0; }
.radio-pills__row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-pill { position: relative; }
.radio-pill input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.radio-pill span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  font: 600 15px var(--font-sans); cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.radio-pill input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.radio-pill input:focus-visible + span { outline: 3px solid var(--ring); outline-offset: 2px; box-shadow: 0 0 0 2px var(--ink); }
@media (hover: hover) { .radio-pill input:not(:checked):hover + span { border-color: var(--brand); color: var(--brand); } }
.form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form__fallback { font: 500 15px/1.5 var(--font-sans); color: var(--muted); }
.form__fallback a { color: var(--brand); font-weight: 600; text-underline-offset: 3px; }
.form__summary { border: 1.5px solid var(--warn); background: #fff7f7; border-radius: 10px; padding: 14px 16px; font: 600 15px/1.5 var(--font-sans); color: #7f1d1d; }
.form__summary ul { margin-top: 6px; padding-left: 18px; list-style: disc; font-weight: 500; }
.form__summary a { color: #7f1d1d; text-underline-offset: 3px; }
.form__summary li > a { display: inline-block; padding-block: 3px; } /* the list of fields to fix: links at least 24px tall (WCAG 2.2 target size) */
@media (pointer: coarse) { .form__summary li > a { padding-block: 11px; } } /* and 44px for fingers */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.45); border-top-color: #fff; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form__note { font: 500 14px/1.4 var(--font-sans); color: var(--muted); }
.form-success--page { max-width: 640px; margin-inline: auto; }
.form-success { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 48px 32px; text-align: center; }
.form-success:focus { outline: none; }
.form-success__icon { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; background: var(--mint-50); display: grid; place-items: center; }
.form-success__t { margin-top: 16px; font: 800 28px/1.2 var(--font-sans); letter-spacing: -0.8px; color: var(--ink); }
.form-success__d { margin: 12px auto 28px; max-width: 460px; font: 400 17px/1.6 var(--font-sans); color: var(--ink-2); }
@media (max-width: 639px) { .form-card { padding: 22px 18px; border-radius: 14px; } .form { gap: 20px; } .form-success { padding: 36px 20px; } }

/* -- Try it live */
.subnav { position: relative; z-index: 60; background: #fff; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .subnav { position: sticky; top: var(--header-h); background: rgba(255, 255, 255, 0.96); } }
@supports (backdrop-filter: blur(8px)) { @media (min-width: 768px) { .subnav { background: rgba(255, 255, 255, 0.9); backdrop-filter: saturate(180%) blur(10px); } } }
.subnav__inner { display: flex; align-items: center; gap: 10px; padding-block: 10px; overflow-x: auto; scrollbar-width: none; }
.subnav__inner::-webkit-scrollbar { display: none; }
.subnav a {
  display: inline-flex; align-items: center; gap: 10px; flex: none; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
  font: 700 15px var(--font-sans); color: var(--ink); text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.subnav a[aria-current="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.subnav a[aria-current="true"] svg { stroke: #fff; }
@media (hover: hover) { .subnav a:not([aria-current="true"]):hover { border-color: var(--brand); color: var(--brand); } }
/* anchors land below the sticky header (html scroll-padding-top) and, from 768px up, below the sticky sub-nav too */
@media (min-width: 768px) { .subnav ~ .sec[id] { scroll-margin-top: 49px; } } /* sub-nav height (65px) minus the 16px already in scroll-padding */

.sim { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; margin-top: 40px; }
.sim__tiles { flex: 1 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 1024px) and (min-height: 640px) {
  .sim__tiles { position: sticky; top: calc(var(--header-h) + 65px + 16px); }
}
.sim__side { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.tile { position: relative; height: 200px; border-radius: 12px; background: #14261f; overflow: hidden; }
.tile__floor { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: #1b3329; }
.tile__label { position: absolute; left: 12px; top: 10px; font: 500 11px var(--font-mono); letter-spacing: 1px; color: #9fb8ac; text-transform: uppercase; }
.tile__person { position: absolute; left: var(--x); bottom: 36px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.tile__person .p-head { display: block; width: 20px; height: 20px; border-radius: 50%; background: #35614f; }
.tile__person .p-body { display: block; width: 40px; height: 72px; border-radius: 14px 14px 5px 5px; background: #35614f; }
.tile__box { position: absolute; left: var(--x); bottom: 30px; width: var(--w); height: 106px; border: 2px solid var(--c); border-radius: 4px; }
.tile__tag { position: absolute; left: -2px; top: -2px; background: var(--c); color: #04261a; font: 700 10px var(--font-mono); padding: 3px 6px; text-transform: uppercase; white-space: nowrap; }
.tile__dark { position: absolute; inset: 0; background: #05100b; display: flex; align-items: center; justify-content: center; font: 500 12px var(--font-mono); letter-spacing: 2px; color: #8aa398; }
.tile__banner { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #fbbf24; color: #04261a; font: 700 11px var(--font-mono); padding: 7px 12px; text-transform: uppercase; white-space: nowrap; }
.tile__quiet { position: absolute; right: 10px; top: 8px; background: #2a3a33; color: #c3d4cb; font: 600 11px var(--font-sans); padding: 4px 9px; border-radius: 4px; }
.seg-row { display: flex; flex-wrap: wrap; gap: 10px; }
.seg {
  min-height: 44px; padding: 0 18px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  font: 700 15px var(--font-sans); transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.seg[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (hover: hover) { .seg:not([aria-pressed="true"]):hover { border-color: var(--brand); color: var(--brand); } }
.scn-list { display: flex; flex-direction: column; gap: 8px; }
.scn {
  text-align: left; min-height: 48px; padding: 10px 16px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  font: 600 15px var(--font-sans); transition: background-color 0.15s ease, border-color 0.15s ease;
}
.scn[aria-pressed="true"] { background: var(--mint-50); border-color: var(--brand); }
@media (hover: hover) { .scn:not([aria-pressed="true"]):hover { border-color: var(--brand); } }
.feed { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.feed__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.btn-sm { min-height: 44px; padding: 0 16px; border-radius: 6px; border: 1.5px solid var(--line); background: #fff; font: 600 14px var(--font-sans); color: var(--ink); }
@media (hover: hover) { .btn-sm:hover { border-color: var(--brand); color: var(--brand); } }
.feed__empty { font: 400 15px/1.5 var(--font-sans); color: var(--muted); padding: 12px 0; }
.feed__item { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.feed__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; background: var(--c, var(--mint)); }
.feed__t { font: 700 15px/1.3 var(--font-sans); color: var(--ink); }
.feed__s { margin-top: 4px; font: 500 12px var(--font-mono); color: var(--muted); }
.feed__totals { display: flex; gap: 24px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.stat__n { font: 800 28px var(--font-sans); color: var(--brand); }
.stat__l { font: 500 12px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.game { margin-top: 40px; max-width: 860px; }
.game__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.game__dots { display: flex; gap: 8px; }
.game__dots span { width: 44px; height: 8px; border-radius: 4px; background: var(--line-dark); }
.game__dots span.is-done { background: var(--mint); }
.game__score { display: flex; gap: 24px; font: 700 15px var(--font-sans); color: var(--on-dark); }
.game__score b { color: var(--mint); font-weight: 700; }
.game__card { background: var(--dark-2); border: 1px solid var(--line-dark); border-radius: 16px; padding: 36px; }
.game__q { margin-top: 14px; font: 800 26px/1.3 var(--font-sans); letter-spacing: -0.6px; color: var(--on-dark); }
.game__opts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.opt {
  min-height: 52px; padding: 0 26px; border-radius: 8px; border: 2px solid #4f7a69; background: var(--dark-2); color: var(--on-dark);
  font: 700 16px var(--font-sans); transition: background-color 0.15s ease, border-color 0.15s ease;
}
@media (hover: hover) { .opt:not([aria-disabled="true"]):hover { border-color: var(--mint); } }
.opt[aria-disabled="true"] { cursor: default; }
.opt[data-state]::after { content: attr(data-state); margin-left: 10px; font: 700 11px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.opt.is-correct { background: var(--mint-50); color: #04261a; border-color: var(--mint); }
.opt.is-wrong { background: #fff1f2; color: #7f1d1d; border-color: #fb7185; }
.game__fb { margin-top: 24px; padding: 20px; border-radius: 10px; background: var(--dark); border: 1px solid var(--line-dark); }
.game__fb-h { font: 800 18px var(--font-sans); }
.game__fb-h.is-ok { color: var(--mint); }
.game__fb-h.is-no { color: #fb7185; }
.game__fb-t { margin-top: 8px; font: 400 16px/1.6 var(--font-sans); color: #c3d4cb; }
.game__next { margin-top: 18px; }
.game__result { background: var(--dark-2); border: 1px solid var(--line-dark); border-radius: 16px; padding: 44px 32px; text-align: center; }
.game__score-big { margin-top: 16px; font: 800 56px/1 var(--font-sans); letter-spacing: -2px; color: var(--on-dark); }
.game__rank { margin-top: 12px; font: 800 28px var(--font-sans); color: var(--mint); }
.game__rank-t { margin: 14px auto 0; max-width: 520px; font: 400 17px/1.6 var(--font-sans); color: #c3d4cb; }
.game__result .actions { justify-content: center; margin-top: 28px; }
@media (max-width: 639px) {
  .game__card { padding: 24px 18px; }
  .game__q { font-size: 21px; }
  .game__opts { flex-direction: column; }
  .game__opts .opt { width: 100%; }
  .game__result { padding: 32px 18px; }
  .game__score-big { font-size: 44px; }
  .game__dots span { width: 100%; flex: 1; }
  .game__dots { flex: 1 1 100%; }
}

.scene-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 36px 0 28px; }
.chip-label--dark { color: var(--on-dark-2); }
.scene { background: var(--dark-2); border: 1px solid var(--line-dark); border-radius: 16px; overflow: hidden; }
.scene__view { position: relative; height: 220px; background: #14261f; overflow: hidden; contain: layout paint; }
.scene__view .tile__person { left: var(--x, 4%); }
.scene__view .tile__person .p-head { width: 18px; height: 18px; }
.scene__view .tile__person .p-body { width: 34px; height: 62px; border-radius: 12px 12px 4px 4px; }
.scene__body { padding: 22px 24px 26px; }
.scene__t { font: 800 20px var(--font-sans); color: var(--on-dark); }
.scene__d { margin-top: 8px; font: 400 15px/1.6 var(--font-sans); color: var(--on-dark-2); }

/* without JavaScript the interactive demos cannot work: hide their dead controls (the note under the page title says why) */
html:not(.js) .sim, html:not(.js) .game, html:not(.js) .calc, html:not(.js) .scene-bar { display: none; }

/* Looping demo scenes (decorative, aria-hidden). One 6s loop; --d offsets a copy.
   JS adds .is-paused (the Pause/Play button) and .is-live (the loop has been running).
   With reduced motion the scenes are frozen on a frame that shows the alert, until
   the visitor presses "Play scenes". */
.vb {
  animation-duration: 6s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-delay: var(--d, 0s);
  animation-play-state: running;
}
.scenes.is-paused .vb { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .scenes:not(.is-live) .vb { animation-play-state: paused; animation-delay: calc(var(--d, 0s) - 4s); }
}
@keyframes walk { 0% { left: 4%; } 100% { left: 76%; } }
@keyframes covr { 0%, 30% { opacity: 0; } 45%, 88% { opacity: 0.97; } 100% { opacity: 0; } }
@keyframes pop { 0%, 48% { opacity: 0; transform: scale(0.85); } 56%, 88% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
@keyframes pop2 { 0%, 38% { opacity: 0; transform: scale(0.85); } 46%, 90% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
@keyframes zone {
  0%, 32% { border-color: #34d399; background: rgba(52, 211, 153, 0.12); }
  40%, 92% { border-color: #fb7185; background: rgba(251, 113, 133, 0.2); }
  100% { border-color: #34d399; background: rgba(52, 211, 153, 0.12); }
}
@keyframes cnt { 0%, 13% { transform: translateY(0); } 14%, 63% { transform: translateY(-32px); } 64%, 100% { transform: translateY(-64px); } }
.vb-walk { animation-name: walk; }
.vb-walk--late { --d: -3s; }
.vb-cover { position: absolute; inset: 0; background: #05100b; opacity: 0; animation-name: covr; }
.vb-pop, .vb-pop2 {
  position: absolute; padding: 6px 10px; background: #fbbf24; color: #04261a; opacity: 0;
  font: 700 11px var(--font-mono); text-transform: uppercase; white-space: nowrap;
}
.vb-pop { right: 14px; top: 12px; animation-name: pop; }
.vb-pop2 { left: 12px; bottom: 12px; animation-name: pop2; }
.vb-pop--amber { background: #fbbf24; }
.vb-pop--rose { background: #fb7185; }
.vb-zone {
  position: absolute; left: 30%; top: 18%; width: 40%; height: 64%; border: 2px dashed #34d399;
  background: rgba(52, 211, 153, 0.12); animation-name: zone;
}
.vb-count { font: 800 28px/32px var(--font-sans); color: #34d399; animation-name: cnt; }
.tile__clock { position: absolute; right: 14px; top: 10px; font: 500 12px var(--font-mono); color: #fbbf24; }
.tile__line { position: absolute; left: 50%; top: 0; bottom: 0; border-left: 2px dashed #34d399; }
.tile__count {
  position: absolute; right: 14px; top: 12px; display: flex; align-items: center; gap: 10px;
  padding: 6px 12px; background: #0b1f17; border: 1px solid #244035; border-radius: 8px;
}
.tile__count > span { font: 500 11px var(--font-mono); letter-spacing: 1px; color: #9fb8ac; text-transform: uppercase; }
.tile__count-win { height: 32px; overflow: hidden; }

.calc { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 40px; align-items: stretch; }
.calc__controls { flex: 1 1 440px; min-width: 0; background: var(--soft); border: 1px solid var(--line); border-radius: 16px; padding: 36px; display: flex; flex-direction: column; gap: 32px; }
.calc__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.calc__row label { font: 700 17px var(--font-sans); color: var(--ink); }
.calc__val { font: 800 28px var(--font-sans); color: var(--brand); }
.calc input[type="range"] { display: block; width: 100%; margin: 12px 0 0; height: 44px; accent-color: var(--brand); }
.calc__stats { flex: 1 1 440px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-content: stretch; }
.calc__stat { background: var(--dark); border-radius: 16px; padding: 28px; min-width: 0; }
.calc__stat-l { font: 500 12px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--mint); }
.calc__stat-n { margin-top: 10px; font: 800 clamp(26px, 3.4vw, 40px)/1.1 var(--font-sans); letter-spacing: -0.025em; color: var(--on-dark); overflow-wrap: anywhere; }
@media (max-width: 639px) {
  .calc { gap: 20px; margin-top: 28px; }
  .calc__controls { padding: 22px 18px; gap: 24px; }
  .calc__stats { gap: 10px; }
  .calc__stat { padding: 18px 16px; border-radius: 12px; }
  .calc__stat-l { font-size: 11px; letter-spacing: 1px; }
}
@media (max-width: 419px) { .calc__stats { grid-template-columns: minmax(0, 1fr); } }

/* try-it-live: smaller tiles on phones */
@media (max-width: 639px) {
  .sim { gap: 24px; margin-top: 28px; }
  .tile { height: 156px; }
  .tile__person { bottom: 28px; }
  .tile__person .p-head { width: 16px; height: 16px; }
  .tile__person .p-body { width: 32px; height: 58px; }
  .tile__box { bottom: 22px; height: 86px; }
  .tile__tag { font-size: 9px; padding: 2px 5px; white-space: normal; width: 70px; line-height: 1.15; }
  .tile__banner { font-size: 10px; padding: 6px 8px; white-space: normal; text-align: center; width: 100px; }
  .scene__view { height: 190px; }
  .scene__body { padding: 18px 18px 22px; }
}

/* ---------------------------------------------------------------------------
   10  UTILITIES AND PAGE-LEVEL FIXES
   --------------------------------------------------------------------------- */
.page-404 { text-align: left; }
.big-code { font: 500 clamp(64px, 14vw, 140px)/1 var(--font-mono); letter-spacing: -0.04em; color: var(--accent); }
.link-list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pill-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
  font: 600 15px var(--font-sans); color: var(--ink); text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
@media (hover: hover) { .pill-link:hover { border-color: var(--brand); color: var(--brand); } }

/* Wide tables/code (none today, kept so future content cannot break the layout) */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
pre, code { max-width: 100%; overflow-x: auto; }

@media print {
  .site-header, .menu-backdrop, .to-top, .subnav, .skip-link { display: none !important; }
  .sec--dark, .sec--brand, .site-footer { background: #fff !important; color: #000 !important; }
}
