/* UAP product site — "Machine Floor" theme.
   Engineering-grade dark: three surface depths, one cold-blue light story,
   mono for anything a machine said, restrained glow on the live bits.
   Distinct from the light Miller-Tech boutique theme, same family (shared
   navy CTA). Reduced-motion respected. */

:root {
  --uap-bg: #0c1017;
  --uap-surface: #131926;
  --uap-surface-2: #182031;
  --uap-line: #232d42;
  --uap-ink: #dbe2ee;
  --uap-body: #9aa6ba;
  --uap-dim: #6b7689;
  --uap-accent: #5eb0ef;
  --uap-accent-soft: rgba(94, 176, 239, 0.14);
  --uap-ok: #55c07e;
  --uap-warn: #d9a84a;
  --uap-cta: #182641;
  --uap-radius: 10px;
  --uap-font-display: "Space Grotesk", system-ui, sans-serif;
  --uap-font-body: "Inter", system-ui, sans-serif;
  --uap-font-mono: "JetBrains Mono", ui-monospace, monospace;
}

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

body.uap {
  margin: 0;
  background: var(--uap-bg);
  color: var(--uap-ink);
  font-family: var(--uap-font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
a { color: var(--uap-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--uap-accent); outline-offset: 2px; }

/* ---------------------------------------------------------------- header */
.uap-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 16, 23, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--uap-line);
}
.uap-header-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 28px; height: 64px;
}
.uap-brand {
  font-family: var(--uap-font-display); font-weight: 700; font-size: 19px;
  color: var(--uap-ink); letter-spacing: 0.02em; display: flex; align-items: baseline; gap: 8px;
  white-space: nowrap;
}
.uap-brand:hover { text-decoration: none; }
.uap-brand-mark { color: var(--uap-accent); }
.uap-brand-sub { font-family: var(--uap-font-mono); font-weight: 400; font-size: 10.5px; color: var(--uap-dim); letter-spacing: 0.14em; text-transform: uppercase; }
.uap-nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.uap-nav a {
  color: var(--uap-body); font-size: 14.5px; padding: 8px 12px; border-radius: 7px;
}
.uap-nav a:hover { color: var(--uap-ink); background: var(--uap-surface); text-decoration: none; }
.uap-nav a.here { color: var(--uap-ink); background: var(--uap-accent-soft); }
.uap-header-cta {
  font-size: 14px; font-weight: 600; color: #fff; background: var(--uap-cta);
  border: 1px solid var(--uap-line); padding: 8px 16px; border-radius: 8px; white-space: nowrap;
}
.uap-header-cta:hover { text-decoration: none; border-color: var(--uap-accent); }
.uap-nav-toggle-input { display: none; }
.uap-nav-toggle { display: none; cursor: pointer; padding: 8px; }
.uap-nav-toggle .bar { display: block; width: 20px; height: 2px; background: var(--uap-ink); margin: 4px 0; }
@media (max-width: 960px) {
  .uap-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--uap-surface); border-bottom: 1px solid var(--uap-line);
    flex-direction: column; padding: 12px 24px;
  }
  .uap-nav-toggle-input:checked ~ .uap-nav { display: flex; }
  .uap-nav-toggle { display: block; margin-left: auto; }
  .uap-header-cta { display: none; }
}

/* --------------------------------------------------------------- sections */
.uap-section { padding: 72px 0; border-bottom: 1px solid rgba(35, 45, 66, 0.55); }
.uap-section:last-child { border-bottom: 0; }
.uap-col { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.uap-narrow { max-width: 845px; }
.w-narrow .uap-col { max-width: 845px; }
.w-wide .uap-col { max-width: 1280px; }

h1, h2, h3 { font-family: var(--uap-font-display); line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 5.2vw, 58px); font-weight: 700; margin: 0 0 20px; }
h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; margin: 0 0 18px; }
h3 { font-size: 18px; font-weight: 600; margin: 0 0 8px; }

.uap-eyebrow {
  font-family: var(--uap-font-mono); font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--uap-accent); margin: 0 0 18px;
}
.uap-lede { font-size: clamp(17px, 2vw, 20px); color: var(--uap-body); max-width: 62ch; margin: 0 0 26px; }

.uap-hero { padding: 96px 0 84px; background:
  radial-gradient(1100px 420px at 18% -8%, rgba(94, 176, 239, 0.13), transparent 65%),
  radial-gradient(700px 320px at 88% 4%, rgba(94, 176, 239, 0.06), transparent 60%);
}

.uap-prose { color: var(--uap-body); max-width: 68ch; }
.uap-prose p { margin: 0 0 14px; }
.uap-prose strong { color: var(--uap-ink); }
.uap-prose code, .uap-prose pre {
  font-family: var(--uap-font-mono); font-size: 0.9em;
  background: var(--uap-surface); border: 1px solid var(--uap-line); border-radius: 6px;
}
.uap-prose code { padding: 1px 6px; }
.uap-prose pre { padding: 14px 16px; overflow-x: auto; }

/* buttons */
.uap-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 0; }
.uap-btn {
  display: inline-block; padding: 11px 22px; border-radius: 8px;
  font-weight: 600; font-size: 15px; border: 1px solid var(--uap-line);
}
.uap-btn:hover { text-decoration: none; }
.uap-btn.primary {
  background: linear-gradient(180deg, #22406b, var(--uap-cta));
  color: #fff; border-color: #2c4a78;
  box-shadow: 0 0 0 1px rgba(94, 176, 239, 0.18), 0 8px 22px rgba(24, 38, 65, 0.55);
}
.uap-btn.primary:hover { border-color: var(--uap-accent); }
.uap-btn.ghost { color: var(--uap-ink); background: transparent; }
.uap-btn.ghost:hover { border-color: var(--uap-accent); }

/* checklist */
.uap-check { list-style: none; padding: 0; margin: 8px 0 0; }
.uap-check li {
  padding: 5px 0 5px 28px; position: relative; color: var(--uap-body);
}
.uap-check li::before {
  content: "▸"; position: absolute; left: 6px; color: var(--uap-accent);
  font-family: var(--uap-font-mono);
}

/* chips */
.uap-chips-sec { padding: 26px 0; }
.uap-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; }
.uap-chips li {
  font-family: var(--uap-font-mono); font-size: 12.5px; color: var(--uap-body);
  border: 1px solid var(--uap-line); border-radius: 999px; padding: 6px 14px;
  background: var(--uap-surface);
}

/* terminal */
.uap-term {
  background: #0a0e15; border: 1px solid var(--uap-line); border-radius: var(--uap-radius);
  overflow: hidden; margin-top: 26px;
  box-shadow: 0 0 0 1px rgba(94, 176, 239, 0.06), 0 18px 44px rgba(0, 0, 0, 0.45);
}
.uap-term-bar {
  display: flex; align-items: center; gap: 7px; padding: 10px 14px;
  background: var(--uap-surface); border-bottom: 1px solid var(--uap-line);
}
.uap-term-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--uap-line); }
.uap-term-bar .dot:first-child { background: #e5695e; }
.uap-term-bar .dot:nth-child(2) { background: #d9a84a; }
.uap-term-bar .dot:nth-child(3) { background: #55c07e; }
.uap-term-title { margin-left: 8px; font-family: var(--uap-font-mono); font-size: 12px; color: var(--uap-dim); }
.uap-term-body {
  margin: 0; padding: 18px 20px; font-family: var(--uap-font-mono);
  font-size: 13.5px; line-height: 1.7; color: #b9c4d6; overflow-x: auto;
  white-space: pre-wrap;
}

/* split + screenshots */
.uap-split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.uap-split.side-left .uap-split-copy { order: 2; }
.uap-split.side-left figure { order: 1; }
@media (max-width: 900px) {
  .uap-split-grid { grid-template-columns: 1fr; }
  .uap-split.side-left .uap-split-copy { order: 1; }
  .uap-split.side-left figure { order: 2; }
}
.uap-shot { margin: 0; }
.uap-shot img {
  width: 100%; height: auto; display: block; border-radius: var(--uap-radius);
  border: 1px solid var(--uap-line);
  box-shadow: 0 0 0 1px rgba(94, 176, 239, 0.08), 0 22px 52px rgba(0, 0, 0, 0.5);
}
.uap-shot figcaption {
  font-family: var(--uap-font-mono); font-size: 12px; color: var(--uap-dim);
  margin-top: 10px;
}

/* cards */
.uap-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
@media (max-width: 1000px) { .uap-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .uap-cards { grid-template-columns: 1fr; } }
.uap-card {
  background: linear-gradient(180deg, var(--uap-surface-2), var(--uap-surface));
  border: 1px solid var(--uap-line); border-radius: var(--uap-radius); padding: 22px;
}
.uap-ic { color: var(--uap-accent); font-size: 15px; }
.uap-card .uap-prose { font-size: 14.5px; }
.uap-card-link { font-size: 14px; font-weight: 600; display: inline-block; margin-top: 10px; }

/* stats */
.uap-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 30px; }
.uap-stat {
  background: var(--uap-surface); border: 1px solid var(--uap-line);
  border-radius: var(--uap-radius); padding: 22px;
}
.uap-stat-val {
  font-family: var(--uap-font-mono); font-size: 30px; font-weight: 600;
  color: var(--uap-accent); margin: 0 0 6px;
  font-variant-numeric: tabular-nums;
}
.uap-stat-lbl { margin: 0; color: var(--uap-body); font-size: 14px; }
.uap-stat-caveat { margin: 6px 0 0; color: var(--uap-dim); font-size: 12px; }

/* pricing */
.uap-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-top: 30px; }
.uap-tier {
  position: relative; background: linear-gradient(180deg, var(--uap-surface-2), var(--uap-surface));
  border: 1px solid var(--uap-line); border-radius: var(--uap-radius); padding: 26px 22px;
  display: flex; flex-direction: column;
}
.uap-tier:hover { border-color: #2c4a78; }
.uap-badge {
  position: absolute; top: -11px; left: 22px;
  font-family: var(--uap-font-mono); font-size: 11px; color: #0c1017;
  background: var(--uap-accent); border-radius: 999px; padding: 3px 12px; font-weight: 600;
}
.uap-price { font-family: var(--uap-font-mono); font-size: 34px; font-weight: 600; margin: 4px 0 0; color: var(--uap-ink); font-variant-numeric: tabular-nums; }
.uap-unit { font-family: var(--uap-font-mono); font-size: 12px; color: var(--uap-dim); margin: 2px 0 14px; }
.uap-tier .uap-check { margin-bottom: 18px; flex-grow: 1; }
.uap-tier .uap-check li { padding-left: 22px; font-size: 14px; }
.uap-tier .uap-check li::before { content: "✓"; left: 0; color: var(--uap-ok); }

/* faq */
.uap-faq-item {
  border: 1px solid var(--uap-line); border-radius: var(--uap-radius);
  background: var(--uap-surface); margin: 0 0 12px;
}
.uap-faq-item summary {
  cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--uap-ink);
  font-family: var(--uap-font-display);
}
.uap-faq-item[open] summary { border-bottom: 1px solid var(--uap-line); }
.uap-faq-item .uap-prose { padding: 14px 20px 18px; }

/* cta band */
.uap-cta-sec { background:
  radial-gradient(900px 320px at 50% 120%, rgba(94, 176, 239, 0.12), transparent 70%);
  text-align: center;
}
.uap-cta-inner .uap-ctas { justify-content: center; }
.uap-cta-inner .uap-lede { margin-left: auto; margin-right: auto; }

/* ---------------------------------------------------------------- footer */
.uap-footer { border-top: 1px solid var(--uap-line); background: var(--uap-surface); }
.uap-footer-inner {
  max-width: 1180px; margin: 0 auto; padding: 52px 24px 30px;
  display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px;
}
@media (max-width: 800px) { .uap-footer-inner { grid-template-columns: 1fr; } }
.uap-footer-name { font-family: var(--uap-font-display); font-weight: 700; font-size: 20px; margin: 0 0 8px; }
.uap-footer-name span { font-family: var(--uap-font-mono); font-size: 10px; color: var(--uap-dim); display: block; letter-spacing: 0.16em; text-transform: uppercase; }
.uap-footer-tag { color: var(--uap-dim); font-size: 14px; margin: 0; }
.uap-footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.uap-footer-cols h4 {
  font-family: var(--uap-font-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--uap-dim); margin: 0 0 12px;
}
.uap-footer-cols a { display: block; color: var(--uap-body); font-size: 14px; padding: 3px 0; }
.uap-footer-cols a:hover { color: var(--uap-ink); }
.uap-legal { border-top: 1px solid var(--uap-line); }
.uap-legal p {
  max-width: 1180px; margin: 0 auto; padding: 18px 24px;
  color: var(--uap-dim); font-size: 12px;
}

/* reveal on scroll (respects reduced motion via the media query above) */
.uap-reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.uap-reveal.in { opacity: 1; transform: none; }
