/* =========================================================================
   FAQTIS — site-level styles (on top of tokens.css)
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--fg-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01','cv02','cv11';
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { display: block; max-width: 100%; }

/* dotted-grid corner accents (deck signature) */
.dot-grid {
  position: absolute;
  pointer-events: none;
  width: 160px; height: 100px;
  background-image: radial-gradient(rgba(63,169,245,0.28) 1px, transparent 1.4px);
  background-size: 10px 10px;
  opacity: 0.9;
  z-index: 1;
}
.dot-grid.tr { top: 24px; right: 24px; }
.dot-grid.bl { bottom: 24px; left: 24px; }

/* page container */
.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
}

/* eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan-500);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: ''; width: 28px; height: 2px; background: var(--cyan-500);
  display: inline-block;
}

/* canonical section title — caps with optional yellow underline */
.sec-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.4vw, 56px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0;
}
.sec-title .accent { color: var(--cyan-500); }
.sec-title.with-rule { display: inline-block; padding-bottom: 14px; position: relative; }
.sec-title.with-rule::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 5ch; height: 4px; background: var(--amber-500); border-radius: 2px;
}

/* big body text */
.lead {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 60ch;
  margin: 0;
  text-wrap: pretty;
}

/* amber inline emphasis */
.em { color: var(--amber-500); font-weight: 600; }
.em-cy { color: var(--cyan-500); font-weight: 600; }

/* section wrappers */
.section {
  position: relative;
  padding: 70px 0;
}
.section.tight { padding: 48px 0; }
.section + .section { border-top: 1px solid rgba(255,255,255,0.04); }
.section.dark { background: var(--navy-950); }
.section.field { background: var(--navy-900); }

/* CTAs */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--amber-500);
  color: #1a1100;
}
.btn-primary:hover {
  background: var(--amber-400);
  box-shadow: 0 0 0 1px var(--amber-500), 0 0 32px rgba(255,184,0,0.32);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.18);
}
.btn-secondary:hover {
  border-color: var(--cyan-500);
  background: rgba(63,169,245,0.06);
}
.btn .arr { transition: transform 200ms var(--ease-out); }
.btn:hover .arr { transform: translateX(3px); }
.btn-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--cyan-400); font-weight: 600;
  font-family: var(--font-display); font-size: 14px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.btn-link:hover { color: var(--cyan-300); }
.btn-link .arr { transition: transform 200ms var(--ease-out); }
.btn-link:hover .arr { transform: translateX(3px); }

/* card chrome — on dark */
.card {
  background: linear-gradient(180deg, rgba(31,79,168,0.10), rgba(3,23,74,0.55));
  border: 1px solid rgba(63,169,245,0.18);
  border-radius: var(--radius-xl);
  padding: 24px;
}
.card-hover {
  transition: transform var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out);
}
.card-hover:hover {
  border-color: rgba(63,169,245,0.55);
  box-shadow: 0 0 0 1px rgba(63,169,245,0.35), 0 0 32px rgba(63,169,245,0.16);
  transform: translateY(-2px);
}

/* status pills */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
}
.pill::before { content:''; width:6px; height:6px; border-radius:999px; background: currentColor; }
.pill-running { background: rgba(34,197,94,0.12); color: var(--status-running); border:1px solid rgba(34,197,94,0.4); }
.pill-idle    { background: rgba(255,184,0,0.12); color: var(--amber-500); border:1px solid rgba(255,184,0,0.4); }
.pill-down    { background: rgba(239,68,68,0.12); color: var(--status-down); border:1px solid rgba(239,68,68,0.4); }
.pill-info    { background: rgba(63,169,245,0.12); color: var(--cyan-500); border:1px solid rgba(63,169,245,0.4); }

/* mono */
.mono { font-family: var(--font-mono); }

/* horizontal rule */
.hairline { height:1px; background: rgba(255,255,255,0.06); border:none; margin: 0; }

/* ========================== NAV ========================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(2,16,61,0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-inner {
  display: flex; align-items: center; gap: 32px;
  padding: 10px 24px;
  min-height: 72px;
  max-width: 1280px; margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--white);
  letter-spacing: -0.01em;
  padding: 4px 0;
}
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan-500), var(--cyan-700));
  display: grid; place-items: center;
  color: var(--navy-950);
  font-weight: 800; font-size: 16px;
}
.brand .dot { color: var(--cyan-500); }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-link {
  padding: 8px 14px; border-radius: 8px;
  color: var(--fg-2); font-size: 14px; font-weight: 500;
  font-family: var(--font-body);
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.04); }
.nav-link.active { color: var(--cyan-400); }
.nav-cta { margin-left: 8px; }
.nav-cta .btn { padding: 10px 16px; font-size: 13px; border-radius: 8px; }
.nav-burger {
  display: none;
  margin-left: auto;
  background: transparent; border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; padding: 8px 10px;
  color: var(--white); cursor: pointer;
}
.nav-burger svg { display:block; }
.nav-mobile {
  display: none;
  padding: 12px 18px 18px;
  border-top: 1px solid rgba(255,255,255,0.05);
  background: rgba(2,16,61,0.95);
}
.nav-mobile.open { display: block; }
.nav-mobile-link {
  display: block;
  padding: 14px 4px;
  font-size: 16px; color: var(--fg-1);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-family: var(--font-display); font-weight: 500;
}
.nav-mobile .btn { width: 100%; justify-content: center; margin-top: 16px; }

@media (max-width: 1024px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-inner { position: relative; justify-content: center; }
  .nav-inner .brand {
    margin: 0 auto;
    /* keep clear of the burger so a long wordmark doesn't slip under it */
    padding-right: 44px; padding-left: 44px;
  }
  .nav-burger {
    position: absolute; right: 18px; top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
  }
}

/* ========================== FOOTER ========================== */
.footer-banner {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  margin-bottom: 56px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(31,79,168,0.18), rgba(3,23,74,0.55));
  border: 1px solid rgba(63,169,245,0.28);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.footer-banner:hover {
  border-color: rgba(63,169,245,0.55);
  box-shadow: 0 0 0 1px rgba(63,169,245,0.35), 0 0 36px rgba(63,169,245,0.16);
}
.footer-banner-text { flex: 1 1 auto; min-width: 0; }
.footer-banner-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(63,169,245,0.10);
  border: 1px solid rgba(63,169,245,0.4);
  color: var(--cyan-400);
  font-family: var(--font-display);
  font-weight: 600; font-size: 13px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex: 0 0 auto;
  transition: background var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out);
}
.footer-banner:hover .footer-banner-cta {
  background: var(--cyan-500);
  color: var(--navy-950);
  border-color: var(--cyan-500);
}
.footer-banner .arr { transition: transform 200ms var(--ease-out); }
.footer-banner:hover .arr { transform: translateX(3px); }
@media (max-width: 720px) {
  .footer-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 18px;
  }
  .footer-banner-cta { width: 100%; justify-content: center; }
}

.footer {
  background: var(--navy-950);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 64px 0 32px;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
}
.footer-col h5 {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--cyan-400);
  margin: 0 0 16px;
}
.footer-col a {
  display: block; padding: 6px 0;
  color: var(--fg-2); font-size: 14px;
  transition: color var(--dur-fast) var(--ease-out);
}
.footer-col a:hover { color: var(--white); }
.footer-tagline { color: var(--fg-3); font-size: 14px; line-height: 1.6; max-width: 280px; margin: 16px 0 0; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
  font-size: 12px; color: var(--fg-3);
}
.footer-bottom .spacer { flex: 1 1 auto; }
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ========================== DOTTED PIPE (visibility gap) ========================== */
.pipe {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  align-items: stretch;
  position: relative;
}
.pipe-node {
  position: relative;
  background: rgba(15,45,138,0.35);
  border: 1px solid rgba(63,169,245,0.25);
  padding: 18px 14px;
  border-radius: 14px;
  text-align: center;
  display: flex; flex-direction: column; gap: 6px; align-items: center;
}
.pipe-node + .pipe-node { margin-left: -1px; }
.pipe-node .label { font-family: var(--font-display); font-weight: 600; color: var(--fg-1); font-size: 15px; }
.pipe-node .sub { font-size: 11px; color: var(--cyan-400); letter-spacing: 0.06em; text-transform: uppercase; }
.pipe-node.gap {
  background: rgba(255,184,0,0.16);
  border: 2px solid var(--amber-500);
  box-shadow: 0 0 0 1px rgba(255,184,0,0.3), 0 0 28px rgba(255,184,0,0.22);
}
.pipe-node.gap .label { color: var(--amber-500); font-weight: 800; }
.pipe-node.gap .sub { color: var(--amber-400); }
.pipe-arrow {
  align-self: center;
  width: 14px; height: 2px;
  background: rgba(63,169,245,0.4);
}
.pipe-track {
  display: flex; align-items: stretch; gap: 0;
  position: relative;
}
.pipe-track .pipe-node { flex: 1; }
.pipe-connector {
  align-self: center;
  width: 18px; height: 2px;
  background: linear-gradient(90deg, rgba(63,169,245,0.5), rgba(63,169,245,0.5));
  flex: 0 0 18px;
}
.pipe-connector.hot { background: var(--amber-500); }

@media (max-width: 760px) {
  .pipe-track { flex-direction: column; gap: 8px; }
  .pipe-connector { width: 2px; height: 14px; flex: 0 0 14px; align-self: center; }
}

/* ========================== IMAGE SLOT (dark theme) ========================== */
image-slot {
  color: rgba(255,255,255,0.55);
  font-family: var(--font-body);
}
image-slot::part(frame) {
  background: #02103D;
  border: 1px solid rgba(63,169,245,0.16);
}

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

/* keyframes */
@keyframes tickerBlink { 0%,60% { opacity: 1 } 80% { opacity: 0.3 } 100% { opacity: 1 } }
@keyframes pulseDot { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.6) } 100% { box-shadow: 0 0 0 8px rgba(34,197,94,0) } }
@keyframes wpopin { from { opacity: 0; transform: translateY(8px) scale(0.96) } to { opacity: 1; transform: none } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }
.fade-up { animation: fadeUp 600ms var(--ease-out) both; }

/* mobile-specific dash spacing */
@media (max-width: 720px) {
  .hide-mobile { display: none !important; }
}
@media (min-width: 721px) {
  .show-mobile { display: none !important; }
}
