/* JobInsights public site (Phase 13 stop A, J 2026-11-02). The app's palette; light and dark follow the system.
   No web fonts, no inline styles, no script. Contrast of every text pair is checked by tests/test_public_site.py. */
:root {
  --bg: #f6f8f7; --surface: #ffffff; --raised: #eef1f0; --border: #d6dddb; --text: #18222b; --muted: #4f5c66;
  --accent: #1d6670; --accent-text: #175760; --on-accent: #ffffff; --draft-bg: #fff4d6; --draft-text: #5c4300;
  --focus: #1d6670; --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 4px 16px rgba(0, 0, 0, .05);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111619; --surface: #192125; --raised: #212a2f; --border: #2e3a40; --text: #e5ebe9; --muted: #b3bec4;
    --accent: #6cc0c9; --accent-text: #7fcbd3; --on-accent: #0d1b1e; --draft-bg: #3a2f12; --draft-text: #f3d98a;
    --focus: #7fcbd3; --shadow: none;
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font); min-height: 100vh;
  display: flex; flex-direction: column; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin-top: 1.6em; }
h3 { font-size: 1.1rem; margin-top: 1.2em; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: .35em; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); color: var(--text); padding: 8px 12px;
  border: 2px solid var(--focus); border-radius: 6px; z-index: 10; }
.skip:focus { left: 16px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

/* header */
.top { background: var(--surface); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700;
  font-size: 1.1rem; min-height: 44px; }
.brand img { width: 32px; height: 32px; }
.top nav { flex: 1 1 auto; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 0; list-style: none; }
.nav li { margin: 0; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; color: var(--text); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 8px;
  border: 2px solid var(--accent); font-weight: 600; text-decoration: none; color: var(--accent-text); background: transparent; }
.btn.solid { background: var(--accent); color: var(--on-accent); }
.btn:hover { text-decoration: underline; }
@media (max-width: 720px) {
  .top nav { order: 3; flex-basis: 100%; }
  .nav { gap: 0 16px; }
  .top .actions { margin-left: auto; gap: 8px; }
  .top .actions .btn { padding: 0 10px; font-size: .95rem; }
}
@media (max-width: 420px) {
  .brand { font-size: 1rem; gap: 8px; }
  .top .wrap { gap: 4px 10px; }
  .top .actions .btn { padding: 0 8px; border-width: 1.5px; }
}

/* sections */
main.wrap { display: block; padding-top: 40px; padding-bottom: 56px; flex: 1 0 auto; width: 100%; }
.hero { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .hero { grid-template-columns: 1fr 1.25fr; } }
.lead { font-size: 1.2rem; color: var(--muted); }
.shot { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); background: var(--surface); }
figure { margin: 0; }
figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }
.steps { counter-reset: step; display: grid; gap: 16px; padding: 0; list-style: none; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin: 0; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-weight: 700; margin-bottom: 8px; }
.cards { display: grid; gap: 16px; }
@media (min-width: 800px) { .cards { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px 22px; }
.card h2, .card h3 { margin-top: 0; }
.band { background: var(--raised); border-radius: 12px; padding: 24px; margin-top: 32px; }
.muted { color: var(--muted); }
.feature { display: grid; gap: 20px; margin-top: 36px; align-items: start; }
@media (min-width: 900px) { .feature { grid-template-columns: 1fr 1.3fr; } }
dl.faq dt { font-weight: 700; margin-top: 1.4em; }
dl.faq dd { margin: .3em 0 0; }

/* drafts */
.draft { background: var(--draft-bg); color: var(--draft-text); border: 2px solid currentColor; border-radius: 10px; padding: 14px 18px; margin-bottom: 28px; }
.draft p { margin: 0; }
.draft strong { text-transform: uppercase; letter-spacing: .04em; }
.todo { background: var(--draft-bg); color: var(--draft-text); padding: 0 4px; border-radius: 3px; }
.legal h2 { font-size: 1.3rem; }

/* footer */
.foot { border-top: 1px solid var(--border); background: var(--surface); padding: 28px 0 36px; font-size: .95rem; }
.foot ul { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; padding: 0; margin: 0 0 12px; }
.foot li { margin: 0; }
.foot a { display: inline-flex; min-height: 44px; align-items: center; }
.foot p { color: var(--muted); margin: 0; }

/* the waitlist's forms and J's admin pages (Phase 13, J 2026-11-03): no script */
button.btn { font: inherit; font-weight: 600; cursor: pointer; }
.btn.small { padding: 0 12px; font-size: .95rem; }
.join { display: grid; gap: 14px; max-width: 520px; margin: 0 0 1em; }
.field { display: grid; gap: 4px; }
label { font-weight: 600; }
input[type="text"], input[type="email"], textarea { font: inherit; color: var(--text); background: var(--surface);
  border: 2px solid var(--muted); border-radius: 8px; min-height: 44px; padding: 8px 12px; width: 100%; }
textarea { min-height: 12em; white-space: pre-wrap; }
.join .btn { justify-self: start; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { background: var(--raised); border-left: 4px solid var(--accent); padding: 10px 14px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.table { overflow-x: auto; margin: 0 0 1em; position: relative; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
form.inline { display: inline; margin: 0; }
dl.mail { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; }
dl.mail dt { font-weight: 700; }
dl.mail dd { margin: 0; }
