/* ============================================================
   JBird — Quality Management Veteran's, Inc.
   Static marketing site. No build step, no framework.

   Dark-first. The palette is taken from JBird's own dark theme so
   the app screenshots sit on the page as part of it, not on top of it.
   ============================================================ */

:root {
  color-scheme: dark;

  /* grounds, deepest to lightest */
  --deep:       #060B13;   /* hero, feature bands, CTA */
  --ground:     #0A111B;   /* default section */
  --raise:      #0E1622;   /* alternating band */
  --surface:    #141D2B;   /* cards, panels */
  --surface-2:  #1A2534;   /* inputs, insets */

  --line:       #26334A;
  --line-soft:  #1C2739;

  --text:       #E7ECF2;
  --text-2:     #96A4B8;
  --text-3:     #6E7E93;

  --accent:     #7CB0E0;
  --accent-ink: #0A111B;
  --accent-dim: #5D93C6;
  --accent-tint: rgba(124,176,224,.13);
  --accent-line: rgba(124,176,224,.30);

  --amber:      #CDA45F;
  --amber-tint: rgba(205,164,95,.14);
  --green:      #55B98A;
  --green-tint: rgba(85,185,138,.14);
  --critical:   #E2786B;

  --radius:     6px;
  --radius-lg:  10px;

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1140px;
  --gut: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.021em;
  line-height: 1.15;
  margin: 0;
  color: #FFFFFF;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.35rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.62rem, 3.3vw, 2.32rem); letter-spacing: -0.025em; }
h3 { font-size: 1.16rem; letter-spacing: -0.012em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

img, svg { max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Layout ---------------------------------------- */

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 var(--gut); }

section { padding: 84px 0; background: var(--ground); }
section.tight { padding: 56px 0; }

.band-dark {
  background: var(--deep);
  background-image:
    radial-gradient(900px 480px at 12% -10%, rgba(124,176,224,.13), transparent 62%),
    radial-gradient(760px 440px at 88% 4%, rgba(124,176,224,.07), transparent 60%);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.band-soft { background: var(--raise); }

/* ---------- Type helpers ---------------------------------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.735rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
  font-weight: 500;
}

.lede { font-size: 1.16rem; line-height: 1.62; color: var(--text-2); }

.section-head { max-width: 700px; margin-bottom: 46px; }
.section-head p { margin-top: 16px; }

.muted { color: var(--text-2); }
.mono { font-family: var(--font-mono); font-size: 0.86em; }

/* ---------- Buttons --------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 0.945rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #96C2EA; color: var(--accent-ink); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--accent-line); background: rgba(124,176,224,.07); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.arrow { transition: transform .16s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------------------------------------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10,17,27,.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 66px;
}

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none !important; }
.logo-mark { width: 26px; height: 26px; flex: none; }
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: #FFFFFF;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: 0.925rem;
  color: var(--text-2);
  padding: 8px 13px;
  border-radius: var(--radius);
  text-decoration: none !important;
  transition: color .14s ease, background .14s ease;
}
.nav a:hover { color: var(--text); background: rgba(124,176,224,.08); }
.nav a.active { color: var(--text); font-weight: 500; }
.nav a.btn { margin-left: 10px; padding: 9px 17px; font-size: .9rem; }
.nav a.btn-primary { color: var(--accent-ink); background: var(--accent); }
.nav a.btn-primary:hover { color: var(--accent-ink); background: #96C2EA; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 7px 10px;
  cursor: pointer;
  color: var(--text);
}

/* ---------- Hero ------------------------------------------ */

.hero { padding: 92px 0 84px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { max-width: 17ch; }
.hero .lede { margin-top: 22px; max-width: 48ch; }
.hero-side { min-width: 0; }

.hero-note {
  margin-top: 30px;
  font-size: 0.9rem;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 9px;
}
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  flex: none;
  box-shadow: 0 0 0 3px rgba(124,176,224,.18);
}

/* ---------- Standards strip ------------------------------- */

.strip {
  padding: 24px 0;
  background: var(--ground);
  border-bottom: 1px solid var(--line-soft);
}
.strip-inner {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 10px 14px;
}
.strip-label {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-right: 6px;
}
.chip {
  font-family: var(--font-mono);
  font-size: .78rem;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--text-2);
  background: var(--surface);
}
.chip-new { border-color: rgba(205,164,95,.42); color: var(--amber); background: var(--amber-tint); }

/* ---------- Grids / cards --------------------------------- */

/* Grid children default to min-width:auto, which lets wide content push the
   whole column past the viewport. Force them to shrink. */
.hero-grid > *, .feature > *, .founder > *, .grid > *, .form-grid > * { min-width: 0; }

.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.band-soft .card { background: var(--surface-2); }
.band-dark .card { background: rgba(255,255,255,.035); border-color: var(--line); }
.card h3 { margin-bottom: 9px; }
.card p { font-size: .955rem; color: var(--text-2); }

.card-clause {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}
.card-dark { background: rgba(255,255,255,.035); border-color: var(--line); }

/* ---------- Feature rows ---------------------------------- */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
  padding: 46px 0;
  border-top: 1px solid var(--line-soft);
}
.feature:first-of-type { border-top: 0; }
.feature.flip .feature-visual { order: -1; }
.feature h3 { font-size: 1.5rem; letter-spacing: -.02em; margin-bottom: 14px; }
.feature .eyebrow { margin-bottom: 10px; }

.checklist { list-style: none; margin: 20px 0 0; padding: 0; }
.checklist li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--text-2);
  font-size: .955rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .48em;
  width: 13px; height: 13px;
  border-radius: 3px;
  background: var(--accent-tint);
  border: 1px solid var(--accent-line);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 4px; top: .72em;
  width: 5px; height: 2.5px;
  border-left: 1.6px solid var(--accent);
  border-bottom: 1.6px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- Screenshots ----------------------------------- */

.shot {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--deep);
  box-shadow: 0 22px 52px -26px rgba(0,0,0,.85);
  line-height: 0;
}
.shot img { width: 100%; height: auto; display: block; }
.shot-dark { border-color: rgba(124,176,224,.24); }
.shot-wide { max-width: 1000px; margin: 0 auto; }
.shot-cap {
  margin-top: 12px;
  font-size: .82rem;
  color: var(--text-3);
  line-height: 1.5;
  text-align: center;
}

/* ---------- Stage headers (product page) ------------------ */

.stage-head { max-width: 720px; margin-bottom: 42px; }
.stage-head h2 { margin-top: 8px; }
.stage-head p { margin-top: 14px; }
.stage-num {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  padding: 4px 11px;
  border: 1px solid var(--accent-line);
  background: var(--accent-tint);
  border-radius: 20px;
}

/* ---------- Panels (generic data blocks) ------------------ */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 13px; margin-bottom: 13px;
  border-bottom: 1px solid var(--line-soft);
}
.panel-head span:first-child { font-family: var(--font-display); font-weight: 600; font-size: .92rem; }
.panel-head span:last-child { font-family: var(--font-mono); font-size: .72rem; color: var(--text-3); }

.tag {
  font-family: var(--font-mono);
  font-size: .655rem; letter-spacing: .07em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 20px;
}
.tag-ok   { background: var(--green-tint); color: var(--green); }
.tag-warn { background: var(--amber-tint); color: var(--amber); }
.tag-gap  { background: rgba(226,120,107,.15); color: var(--critical); }

/* ---------- Callout --------------------------------------- */

.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.callout .eyebrow { color: var(--amber); }
.callout p { color: var(--text-2); }
.callout-dark { margin-top: 26px; background: rgba(255,255,255,.035); }

.timeline { list-style: none; margin: 26px 0 0; padding: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid var(--line-soft);
  font-size: .95rem;
  color: var(--text-2);
}
.timeline li:first-child { border-top: 0; }
.timeline .when {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--accent);
  padding-top: 2px;
}
.timeline strong { color: var(--text); font-weight: 600; }

/* ---------- Founder / quote ------------------------------- */

.founder {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 46px;
  align-items: start;
}
.badge-stack { display: flex; flex-direction: column; gap: 10px; }
.badge {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 15px;
  background: var(--surface);
}
.badge b { font-family: var(--font-display); font-size: .93rem; display: block; color: var(--text); }
.badge span { font-size: .82rem; color: var(--text-2); }

blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.32rem;
  line-height: 1.45;
  letter-spacing: -.018em;
  color: #FFFFFF;
}
blockquote + .muted { margin-top: 16px; font-size: .9rem; }

/* ---------- Standards page -------------------------------- */

.std {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: var(--surface);
}
.std-code { font-family: var(--font-mono); font-size: .8rem; color: var(--accent); letter-spacing: .06em; }
.std h3 { margin: 8px 0 10px; }
.std p { font-size: .95rem; color: var(--text-2); }
.std ul { margin: 14px 0 0; padding-left: 18px; font-size: .92rem; color: var(--text-2); }
.std li { margin-bottom: 6px; }

table.clauses { width: 100%; border-collapse: collapse; font-size: .92rem; margin-top: 22px; }
table.clauses th, table.clauses td {
  text-align: left; padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top; color: var(--text-2);
}
table.clauses th {
  font-family: var(--font-mono);
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-3); font-weight: 500;
}
table.clauses td:first-child { font-family: var(--font-mono); color: var(--accent); white-space: nowrap; }
.table-scroll { overflow-x: auto; }

/* ---------- Form ------------------------------------------ */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .855rem; font-weight: 500; color: var(--text); }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: .96rem;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,176,224,.18);
}
.field textarea { min-height: 118px; resize: vertical; }
.field .hint { font-size: .79rem; color: var(--text-3); }

.faq { border-top: 1px solid var(--line-soft); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  cursor: pointer;
  padding: 18px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--text-3); font-size: 1.2rem; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 20px; color: var(--text-2); font-size: .96rem; max-width: 68ch; }

/* ---------- CTA band -------------------------------------- */

.cta-band { text-align: center; }
.cta-band .lede { margin: 18px auto 0; max-width: 54ch; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Footer ---------------------------------------- */

.site-foot {
  background: var(--deep);
  color: var(--text-2);
  padding: 54px 0 30px;
  font-size: .9rem;
  border-top: 1px solid var(--line-soft);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line-soft);
}
.foot-grid h4 {
  font-size: .74rem;
  font-family: var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
  font-weight: 500;
}
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 9px; }
.foot-grid a { color: var(--text-2); }
.foot-grid a:hover { color: var(--text); }
.foot-tag {
  margin-top: 14px;
  max-width: 32ch;
  color: var(--text);
  font-family: var(--font-display);
  font-size: .96rem;
  line-height: 1.45;
  letter-spacing: -.012em;
}
.foot-blurb { margin-top: 10px; max-width: 34ch; color: var(--text-3); font-size: .82rem; }
.foot-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: .82rem;
  color: var(--text-3);
}

/* ---------- Page header (inner pages) --------------------- */

.page-head {
  padding: 66px 0 56px;
  background: var(--deep);
  background-image: radial-gradient(760px 380px at 15% -20%, rgba(124,176,224,.11), transparent 62%);
  border-bottom: 1px solid var(--line-soft);
}
.page-head h1 { font-size: clamp(2rem, 4.4vw, 2.85rem); max-width: 18ch; }
.page-head .lede { margin-top: 18px; max-width: 60ch; }
.page-tagline {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 1.06rem;
  color: var(--accent);
  letter-spacing: -.014em;
}

/* ---------- Responsive ------------------------------------ */

@media (max-width: 940px) {
  /* Three cards across stop fitting well before the mobile breakpoint: the
     column gets narrower than a nowrap button inside it, which pushes the
     page sideways. Drop to two here, one at 760. */
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 30px; }
  .feature.flip .feature-visual { order: 0; }
  .founder { grid-template-columns: 1fr; gap: 28px; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 760px) {
  section { padding: 60px 0; }
  .hero { padding: 62px 0 56px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 66px; left: 0; right: 0;
    background: var(--ground);
    border-bottom: 1px solid var(--line);
    padding: 12px var(--gut) 18px;
    gap: 2px;
    box-shadow: 0 18px 36px -20px rgba(0,0,0,.8);
  }
  .nav.open .btn { margin: 8px 0 0; justify-content: center; }
  .nav-toggle { display: block; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .card, .std, .panel { padding: 20px; }
}

@media (max-width: 420px) {
  :root { --gut: 18px; }
}


/* ---------------------------------------------------------------------------
   Screenshot lightbox
   App shots are full-application captures sitting in half-width columns, which
   renders their text near 46% of original size. Click opens the full capture.
   --------------------------------------------------------------------------- */

.shot-zoomable { position: relative; }
.shot-zoomable img { cursor: zoom-in; }
.shot-zoomable::after {
  content: "Click to enlarge";
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 10px;
  border-radius: var(--radius);
  background: rgba(6, 11, 19, .82);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .01em;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity .16s ease, transform .16s ease;
  pointer-events: none;
}
.shot-zoomable:hover::after,
.shot-zoomable:focus-within::after { opacity: 1; transform: translateY(0); }
.shot-zoomable img:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

html.lightbox-lock, html.lightbox-lock body { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(3, 6, 11, .93);
  overflow: auto;
}
.lightbox.open { display: flex; }

.lightbox-figure {
  margin: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.lightbox-figure img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 132px);
  width: auto;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--ground);
}
.lightbox-figure figcaption {
  max-width: 78ch;
  text-align: center;
  color: var(--text-2);
  font-size: .88rem;
  line-height: 1.5;
}

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { border-color: var(--accent-line); color: var(--accent); }
.lightbox-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 640px) {
  .lightbox { padding: 12px; }
  .lightbox-figure img { max-height: calc(100vh - 110px); }
  .shot-zoomable::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .shot-zoomable::after { transition: none; }
}
