/* Justice Seek public site. Dark navy, matches the app's landing page. */
:root {
  --navy-900: #0a0f1f; --navy-800: #0f1729; --navy-700: #1b2540; --navy-600: #26324f;
  --brand: #2563eb; --brand-dark: #1e3a8a; --glow: #38bdf8;
  --text: #e2e8f0; --text-2: #cbd5e1; --muted: #94a3b8; --dim: #64748b; --faint: #475569;
  --ok: #34d399; --warn: #fbbf24; --bad: #f87171;
  --radius: 12px; --wrap: 1120px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--navy-900); color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--glow); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: #fff; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: .85rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 8px; padding: 10px 18px;
  font-weight: 600; font-size: .95rem; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s;
  text-decoration: none !important; line-height: 1.2;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: var(--navy-700); border-color: var(--navy-600); color: var(--text); }
.btn-ghost:hover { background: var(--navy-600); }
.btn-lg { padding: 13px 24px; font-size: 1.05rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(10,15,31,.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--navy-700); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand img { height: 38px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 22px; font-size: .95rem; }
.site-nav > .nav-item, .nav-item > a { color: var(--text-2); }
.nav-item[aria-current="page"], .nav-item[aria-current="page"] > a { color: #fff; }
.nav-item:hover > a, .site-nav > a.nav-item:hover { color: #fff; text-decoration: none; }
.has-menu { position: relative; display: flex; align-items: center; gap: 2px; }
.menu-caret { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px; font-size: .8rem; }
.menu {
  display: none; position: absolute; top: 100%; left: -10px; min-width: 210px; padding: 8px; margin-top: 8px;
  background: var(--navy-800); border: 1px solid var(--navy-700); border-radius: 10px; box-shadow: 0 12px 40px rgba(0,0,0,.45);
  flex-direction: column;
}
.menu a { padding: 8px 10px; border-radius: 6px; color: var(--text-2); }
.menu a:hover { background: var(--navy-700); color: #fff; text-decoration: none; }
.has-menu:hover .menu, .has-menu:focus-within .menu, .has-menu.open .menu { display: flex; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: transform .2s, opacity .2s; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-900); border-bottom: 1px solid var(--navy-700); padding: 8px 20px 16px;
  }
  .site-nav.open { display: flex; }
  .site-nav > .nav-item, .has-menu > a { padding: 10px 0; }
  .has-menu { flex-wrap: wrap; }
  .menu { display: flex; position: static; margin: 0 0 4px; width: 100%; box-shadow: none; padding-left: 16px; border: 0; background: transparent; }
  .menu-caret { display: none; }
  .nav-cta { margin-top: 8px; justify-content: center; }
}

/* Sections */
section { padding: 64px 0; }
section.alt { background: rgba(15,23,41,.55); border-top: 1px solid var(--navy-700); border-bottom: 1px solid var(--navy-700); }
.center { text-align: center; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.center .lede { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(37,99,235,.4); background: rgba(37,99,235,.12);
  color: var(--glow); border-radius: 999px; padding: 4px 12px; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600;
}
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; gap: 40px; align-items: center; grid-template-columns: 1.15fr .85fr; }
.hero h1 { margin-top: 18px; }
.hero .accent { color: var(--glow); }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(380px, 80%); filter: drop-shadow(0 0 45px rgba(56,189,248,.25)); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
@media (max-width: 800px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { order: -1; } .hero-art img { width: 220px; } }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--navy-800); border: 1px solid var(--navy-700); border-radius: var(--radius); padding: 22px; }
.card .icon { font-size: 1.6rem; line-height: 1; }
.card h3 { margin-top: 12px; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); font-size: .95rem; }
a.card { color: inherit; display: block; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--brand); text-decoration: none; transform: translateY(-2px); }
a.card .more { color: var(--glow); font-size: .9rem; margin-top: 10px; display: inline-block; }
.step-n { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pill { border: 1px solid rgba(37,99,235,.4); background: rgba(37,99,235,.1); color: var(--glow); border-radius: 999px; padding: 4px 12px; font-size: .8rem; }

.split { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr 1fr; }
.split.rev > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }
.prose { max-width: 720px; }
.prose ul, .prose ol { padding-left: 1.3em; color: var(--text-2); }
.prose li { margin-bottom: .4em; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.5em; }
.checks { list-style: none; padding: 0; margin: 16px 0 0; }
.checks li { position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--text-2); }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

.callout { border-left: 3px solid var(--brand); background: rgba(37,99,235,.08); padding: 14px 18px; border-radius: 0 8px 8px 0; color: var(--text-2); }
.notice { border: 1px solid rgba(251,191,36,.35); background: rgba(251,191,36,.07); color: #fde68a; padding: 10px 14px; border-radius: 8px; font-size: .9rem; }

/* App mockups: styled DOM, not screenshots. Every one carries a "sample" tag. */
.mock { position: relative; background: var(--navy-800); border: 1px solid var(--navy-600); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.45); font-size: .85rem; }
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--navy-700); border-bottom: 1px solid var(--navy-600); }
.mock-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--navy-600); }
.mock-bar .dot:nth-child(1) { background: #f87171; } .mock-bar .dot:nth-child(2) { background: #fbbf24; } .mock-bar .dot:nth-child(3) { background: #34d399; }
.mock-bar .mtitle { margin-left: 8px; color: var(--muted); font-size: .8rem; }
.mock-tag { margin-left: auto; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--warn); border: 1px solid rgba(251,191,36,.4); border-radius: 999px; padding: 2px 8px; }
.mock-body { padding: 16px; }
.mock-tabs { display: flex; gap: 4px; padding: 8px 12px 0; border-bottom: 1px solid var(--navy-600); background: rgba(27,37,64,.5); flex-wrap: wrap; }
.mock-tabs span { padding: 6px 10px; border-radius: 6px 6px 0 0; color: var(--muted); }
.mock-tabs span.on { background: var(--navy-800); color: #fff; border: 1px solid var(--navy-600); border-bottom-color: var(--navy-800); margin-bottom: -1px; }
.mock table { width: 100%; border-collapse: collapse; }
.mock th, .mock td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--navy-700); vertical-align: top; }
.mock th { color: var(--muted); font-weight: 500; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.mock tr:last-child td { border-bottom: 0; }
.badge { display: inline-block; border-radius: 999px; padding: 1px 8px; font-size: .72rem; font-weight: 600; }
.b-ok { background: rgba(52,211,153,.15); color: var(--ok); }
.b-warn { background: rgba(251,191,36,.15); color: var(--warn); }
.b-bad { background: rgba(248,113,113,.15); color: var(--bad); }
.b-info { background: rgba(56,189,248,.15); color: var(--glow); }
.b-dim { background: var(--navy-700); color: var(--muted); }
.cite { display: inline-block; background: rgba(37,99,235,.18); color: var(--glow); border-radius: 4px; padding: 0 5px; font-size: .75rem; font-weight: 600; margin-left: 2px; vertical-align: 1px; }
.finding { border: 1px solid var(--navy-700); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; background: rgba(10,15,31,.5); }
.finding .ft { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-weight: 600; color: #fff; margin-bottom: 4px; flex-wrap: wrap; }
.finding p { margin: 0; color: var(--text-2); }
.finding .src { color: var(--dim); font-size: .78rem; margin-top: 6px; }
.progress { height: 6px; background: var(--navy-700); border-radius: 3px; overflow: hidden; width: 110px; }
.progress i { display: block; height: 100%; background: var(--brand); }
.tl { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--navy-600); }
.tl li { position: relative; padding: 0 0 14px 14px; }
.tl li::before { content: ""; position: absolute; left: -24px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); border: 2px solid var(--navy-800); }
.tl li.flag::before { background: var(--warn); }
.tl time { color: var(--glow); font-weight: 600; font-family: ui-monospace, monospace; font-size: .8rem; display: block; }
.chat { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 92%; padding: 10px 14px; border-radius: 12px; line-height: 1.5; }
.msg.user { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.msg.ai { align-self: flex-start; background: var(--navy-700); color: var(--text); border-bottom-left-radius: 4px; }
.msg.ai .srcs { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--navy-600); font-size: .78rem; color: var(--muted); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: .85rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.two-col { display: grid; grid-template-columns: 220px 1fr; min-height: 260px; }
.two-col .side { border-right: 1px solid var(--navy-600); padding: 12px; background: rgba(10,15,31,.4); }
.two-col .side div { padding: 6px 8px; border-radius: 6px; color: var(--muted); }
.two-col .side div.on { background: var(--navy-700); color: #fff; }
@media (max-width: 640px) { .two-col { grid-template-columns: 1fr; } .two-col .side { border-right: 0; border-bottom: 1px solid var(--navy-600); display: flex; flex-wrap: wrap; gap: 4px; } }
.hl { background: rgba(251,191,36,.18); color: #fde68a; border-radius: 3px; padding: 0 3px; }
.strike { color: var(--dim); text-decoration: line-through; }
.doc { background: #fff; color: #111; font-family: Georgia, "Times New Roman", serif; padding: 26px 30px; font-size: .82rem; line-height: 1.5; }
.doc .dh { text-align: center; font-weight: 700; margin-bottom: 14px; }
.doc p { margin: 0 0 10px; }
.doc .fn { color: #1e3a8a; font-size: .75rem; }

/* Feature page header */
.page-head { padding: 56px 0 24px; }
.page-head .lede { margin-top: 10px; }
.crumbs { font-size: .85rem; color: var(--dim); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.next-prev { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 32px 0 8px; border-top: 1px solid var(--navy-700); margin-top: 24px; }

/* Forms */
form.contact { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .9rem; font-weight: 500; color: var(--text-2); }
.field input, .field textarea, .field select {
  width: 100%; background: var(--navy-900); border: 1px solid var(--navy-600); color: var(--text); border-radius: 8px; padding: 10px 12px; font: inherit;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.25); }
.field textarea { min-height: 140px; resize: vertical; }
.field .hint { font-size: .8rem; color: var(--dim); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; font-size: .95rem; }
.form-status.ok { color: var(--ok); } .form-status.err { color: var(--bad); }

/* Footer */
.site-footer { border-top: 1px solid var(--navy-700); padding: 48px 0 28px; margin-top: 40px; background: rgba(15,23,41,.4); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot-grid a { display: block; color: var(--muted); padding: 3px 0; font-size: .9rem; }
.foot-grid a:hover { color: #fff; }
.foot-brand img { height: 40px; width: auto; margin-bottom: 12px; }
.foot-h { font-weight: 600; color: #fff; margin-bottom: 8px; font-size: .9rem; }
.foot-legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--navy-700); }
.foot-legal p { margin-bottom: 6px; }
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* Stats / facts strip */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fact { text-align: center; padding: 18px 10px; border: 1px solid var(--navy-700); border-radius: var(--radius); background: var(--navy-800); }
.fact b { display: block; font-size: 1.5rem; color: #fff; }
.fact span { color: var(--muted); font-size: .85rem; }
@media (max-width: 700px) { .facts { grid-template-columns: repeat(2, 1fr); } }
table.plain { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.plain th, table.plain td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--navy-700); vertical-align: top; }
table.plain th { color: var(--muted); font-weight: 500; }
.scroll-x { overflow-x: auto; }
