/* Inov8ing — provisional accent #885EFE, white/light background, mobile-first.
   No web fonts: system sans-serif stack keeps the page fast on mobile data. */
:root {
  color-scheme: light;
  --accent: #885EFE;
  --accent-dark: #6d46e0;
  --text: #1c1a22;
  --muted: #5c5866;
  --border: #e3e0ea;
  --bg-soft: #f7f5ff;
  --bg-warn: #fff8e6;
  --border-warn: #e6c87a;
  --success: #1d7a4f;
  --error: #b3261e;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text); line-height: 1.6; background: #fff; }
a { color: var(--accent-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.container { max-width: 1080px; margin: 0 auto; padding: 0 max(1rem, env(safe-area-inset-right)) 0 max(1rem, env(safe-area-inset-left)); }
.container.narrow { max-width: 720px; }
.container.wide { max-width: 1240px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }
.site-header { border-bottom: 1px solid var(--border); background: #fff; position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 64px; flex-wrap: wrap; }
.wordmark { font-weight: 800; font-size: 1.35rem; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; }
.wordmark-dot { width: 14px; height: 14px; border-radius: 4px; background: var(--accent); display: inline-block; }
.nav-desktop { display: none; gap: 1rem; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav-desktop a { text-decoration: none; color: var(--text); font-weight: 500; }
.nav-mobile { margin-left: auto; }
.nav-mobile summary { cursor: pointer; font-weight: 600; list-style: none; padding: .5rem .75rem; border: 1px solid var(--border); border-radius: 8px; min-height: 44px; display: inline-flex; align-items: center; }
button, a, summary { touch-action: manipulation; -webkit-tap-highlight-color: rgba(109,70,224,.25); }
section[id] { scroll-margin-top: 80px; }
.nav-mobile nav { position: absolute; right: 1rem; top: 64px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; display: flex; flex-direction: column; gap: .6rem; box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.nav-mobile nav a { text-decoration: none; color: var(--text); }
@media (min-width: 900px) { .nav-desktop { display: flex; } .nav-mobile { display: none; } }
.btn { display: inline-block; padding: .65rem 1.2rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-size: 1rem; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: #fff; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--bg-soft); }
.nav-desktop a:hover, .nav-mobile nav a:hover, .site-footer nav a:hover { text-decoration: underline; }
.btn-large { padding: .85rem 1.6rem; font-size: 1.05rem; }
.cta-row { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1.25rem 0; }
.hero { background: linear-gradient(180deg, var(--bg-soft), #fff); padding: 2.5rem 0 2rem; }
.hero-inner { display: grid; gap: 2rem; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.2fr .8fr; align-items: center; } }
.eyebrow { letter-spacing: .12em; font-weight: 800; font-size: .8rem; color: var(--accent-dark); text-transform: uppercase; }
h1 { font-size: 2rem; line-height: 1.2; margin: .5rem 0 1rem; }
h2 { font-size: 1.55rem; line-height: 1.3; margin: 0 0 1rem; }
h3 { font-size: 1.1rem; margin: 1.25rem 0 .5rem; }
@media (min-width: 700px) { h1 { font-size: 2.6rem; } }
.lede { font-size: 1.1rem; color: var(--muted); }
.trust-line { font-weight: 600; }
.hero-visual { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.hero-node { background: var(--bg-soft); border-radius: 8px; padding: 1rem; font-weight: 700; text-align: center; }
.hero-caption { grid-column: 1 / -1; text-align: center; color: var(--muted); margin: 0; }
.section { padding: 2.5rem 0; border-top: 1px solid var(--border); }
.status-note { background: var(--bg-soft); border-left: 4px solid var(--accent); padding: .75rem 1rem; border-radius: 0 8px 8px 0; }
.card-grid { display: grid; gap: 1rem; }
@media (min-width: 700px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .card-grid { grid-template-columns: 1fr 1fr 1fr; } }
.card { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; background: #fff; }
.card h3 { margin-top: 0; }
.small-print { color: var(--muted); font-size: .9rem; }
.tag-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-list li { background: var(--bg-soft); border-radius: 999px; padding: .4rem .9rem; font-weight: 600; }
.steps { padding-left: 1.25rem; }
.steps li { margin-bottom: 1rem; }
.calc-visual { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin: 1.25rem 0; background: #fff; }
.calc-line, .calc-eq { font-weight: 800; font-size: 1.1rem; }
.calc-op { color: var(--muted); padding-left: 1.25rem; }
.calc-eq { border-top: 2px solid var(--text); margin-top: .5rem; padding-top: .5rem; }
.calc-arrow { margin-top: .75rem; font-weight: 700; color: var(--accent-dark); }
.disclosure { background: var(--bg-warn); border: 1px solid var(--border-warn); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.25rem 0; }
/* Draft document rendering (lib/markdown.js output). */
.draft-doc h2 { margin-top: 2rem; }
.draft-doc h3 { margin-top: 1.5rem; }
.draft-doc pre { background: var(--bg-soft, #f6f4ff); border: 1px solid var(--border, #e5e0f5); border-radius: var(--radius); padding: 1rem; overflow-x: auto; font-size: 0.85rem; line-height: 1.5; white-space: pre; }
.draft-doc blockquote { border-left: 4px solid var(--accent, #885EFE); margin: 1.25rem 0; padding: 0.25rem 1rem; background: var(--bg-soft, #f6f4ff); }
.doc-index { list-style: none; padding: 0; }
.doc-index li { margin: 1.25rem 0; }
.doc-index li p { margin: 0.25rem 0 0; }
.disclosure h3 { margin-top: 0; }
.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 1.75rem; position: relative; margin-bottom: .6rem; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 800; }
.faq-list details.faq { border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1.1rem; margin-bottom: .6rem; }
.faq summary { cursor: pointer; font-weight: 700; }
.final-cta { text-align: center; background: var(--bg-soft); }
.site-footer { border-top: 1px solid var(--border); padding: 2rem 0 1rem; margin-top: 2rem; color: var(--muted); }
.footer-grid { display: grid; gap: 1.5rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer nav { display: flex; flex-direction: column; gap: .4rem; }
.site-footer nav a { color: var(--muted); text-decoration: none; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 1.5rem; padding-top: 1rem; font-size: .9rem; }
.small { font-size: .85rem; color: var(--muted); }
/* Forms */
.field { margin-bottom: 1rem; }
.field label, fieldset legend { font-weight: 600; display: block; margin-bottom: .35rem; }
.field input[type="text"], .field input[type="email"], .field input[type="password"],
.field input[type="search"], .field input[type="date"], .field select, .field textarea {
  width: 100%; padding: .7rem .8rem; border: 1px solid var(--border); border-radius: 8px; font-size: 1rem; background: #fff; color: var(--text); }
.field textarea { resize: vertical; }
.hint { color: var(--muted); font-size: .9rem; margin: .3rem 0 0; }
.field-error { color: var(--error); font-weight: 600; margin: .3rem 0 0; }
.error-summary { border: 2px solid var(--error); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1rem 0; background: #fdf0ef; }
.success { border: 2px solid var(--success); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1rem 0; background: #eefaf4; }
.warning { border: 2px solid var(--border-warn); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1rem 0; background: var(--bg-warn); }
.warning-inline { background: var(--bg-warn); border: 1px solid var(--border-warn); border-radius: 8px; padding: .25rem .6rem; font-weight: 600; }
.req { color: var(--error); }
.check-row { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .5rem; }
.check-row input[type="checkbox"] { width: 20px; height: 20px; margin-top: .15rem; flex-shrink: 0; }
.check-row label { font-weight: 400; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sr-only { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.progress { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0; }
.progress li { font-size: .85rem; color: var(--muted); background: #f2f0f7; border-radius: 999px; padding: .3rem .7rem; }
.progress li.current { background: var(--accent); color: #fff; font-weight: 700; }
.progress li.done { color: var(--success); }
.p-num { font-weight: 800; }
.form-nav { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.skill-row { display: flex; gap: .75rem; align-items: flex-start; flex-wrap: wrap; margin-bottom: .6rem; }
.skill-row .check-row { margin-bottom: 0; flex: 1 1 220px; }
.skill-row select { flex: 0 1 190px; padding: .55rem .7rem; border: 1px solid var(--border); border-radius: 8px; font-size: 1rem; }
.skill-row select:disabled { opacity: .45; }
.review-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.review-table th, .review-table td { border: 1px solid var(--border); padding: .6rem .8rem; text-align: left; vertical-align: top; }
.review-table th { background: var(--bg-soft); }
.review-table td { overflow-wrap: break-word; }
@media (min-width: 700px) { .review-table th { width: 220px; } }
.policy h2 { margin-top: 1.75rem; }
/* Admin */
body.admin { background: #faf9fc; }
.admin-header { position: static; }
.logout-form { margin-left: auto; }
.nav-admin-mobile { margin-left: auto; }
.nav-admin-mobile summary { cursor: pointer; font-weight: 600; list-style: none; padding: .5rem .75rem; border: 1px solid var(--border); border-radius: 8px; min-height: 44px; display: inline-flex; align-items: center; }
.nav-admin-mobile nav { position: absolute; right: 1rem; top: 64px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; display: flex; flex-direction: column; gap: .6rem; box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.nav-admin-mobile nav a { text-decoration: none; color: var(--text); }
@media (min-width: 900px) { .nav-admin-mobile { display: none; } }
.filters { display: grid; gap: .75rem; grid-template-columns: 1fr; margin: 1rem 0; }
@media (min-width: 700px) { .filters { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .filters { grid-template-columns: repeat(4, 1fr); } }
.admin-table { width: 100%; border-collapse: collapse; margin: 1rem 0; background: #fff; display: block; overflow-x: auto; }
.admin-table th, .admin-table td { border: 1px solid var(--border); padding: .6rem .8rem; text-align: left; vertical-align: top; white-space: nowrap; }
.admin-table th { background: #fff; font-size: 12px; color: var(--muted); }
.admin-table thead th { position: sticky; top: 0; }
.admin-table td { white-space: normal; overflow-wrap: break-word; font-variant-numeric: tabular-nums; }
.admin-table td.num, .admin-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.badge { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .85rem; font-weight: 700; background: #eee; }
.badge-verified_new, .badge-in_review { background: #e3eaff; }
.badge-accepted_agreement_pending, .badge-agreement_accepted, .badge-onboarding, .badge-active_member { background: #ddf5e7; }
.badge-rejected, .badge-withdrawn, .badge-closed { background: #fde8e6; }
.badge-waitlisted, .badge-interview_invited, .badge-needs_information { background: #fff3d6; }
.detail-grid { display: grid; gap: 2rem; }
@media (min-width: 1000px) { .detail-grid { grid-template-columns: 1.3fr 1fr; } }
.inline-form { display: inline; }
