/* ===========================================================================
   Site skin — kybernesis.ai alignment for the NDIS readiness check.
   Added 2 Sep 2026. Loads AFTER styles.css and overrides only chrome, type
   weight, controls and surfaces, so the tool's layout and logic are untouched.
   Mirrors app/site.css on the main site: paper ground, square corners,
   hairlines, 400-weight serif headings, mono kickers, one button style.
   =========================================================================== */

/* ── 1. Tokens: remap the tool's palette onto the site's ────────────────── */
:root {
  --brand: #c2551d;              /* --riso-orange */
  --brand-dark: #a5401d;
  --display-orange: #c2551d;
  --brand-pill: #c2551d;
  --brand-soft: transparent;     /* pills lose their fill */
  --surface: #f5f0e3;            /* site --paper */
  --surface-alt: #efe9dc;        /* site --bg */
  --bg: #efe9dc;
  --ink: #1a1814;
  --ink-soft: rgba(26, 24, 20, .62);
  --ink-faint: rgba(26, 24, 20, .34);
  --ink-hair: rgba(26, 24, 20, .18);
  --ink-trace: rgba(26, 24, 20, .08);
  --muted: rgba(26, 24, 20, .55);
  --line: rgba(26, 24, 20, .18);
  --line-soft: rgba(26, 24, 20, .08);
  --card-line: rgba(26, 24, 20, .18);
  --card-line-hover: #1a1814;
  --shadow-sm: none; --shadow-md: none; --shadow-lg: none;
  --radius-lg: 0; --radius: 0; --radius-sm: 0;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --label: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
body { background: var(--surface-alt); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* ── 2. Topbar: the site's, with progress as a hairline under it ────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: block; padding: 0; gap: 0;
  border-bottom: 1px solid var(--ink-hair);
  background: color-mix(in srgb, #efe9dc 84%, transparent);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px max(var(--content-pad), calc((100% - var(--measure-page)) / 2));
}
.wordmark {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--label); font-weight: 400; font-size: 13px;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
}
.wordmark-slash { opacity: .4; }
.wordmark-suffix { margin-left: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: .18em; color: var(--ink-faint); }
.nav { display: flex; align-items: center; gap: 24px; }
.btn, .topbar .btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; margin: 0;
  font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .04em; line-height: 1.3; text-transform: none;
  border: 1px solid var(--ink); border-radius: 0; box-shadow: none;
  color: var(--ink); background: transparent; cursor: pointer; text-decoration: none;
  transition: background .15s, color .15s;
}
.btn:hover, .topbar .btn:hover { background: var(--ink); color: var(--surface-alt); filter: none; transform: none; }
.btn.ghost { border-color: var(--ink-hair); }
.btn.solid { background: var(--ink); color: var(--surface-alt); }
.btn.solid:hover { background: transparent; color: var(--ink); }
.reset-confirm { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.reset-confirm > span:first-child { font-family: var(--serif); font-size: 14px; color: var(--ink-soft); white-space: nowrap; }
.topbar .progress { height: 2px; margin: 0; border-radius: 0; background: var(--ink-trace); overflow: hidden; }
.topbar .progress > span { display: block; height: 100%; border-radius: 0; background: var(--ink); transition: width .3s ease; }
@media (max-width: 640px) { .hide-sm { display: none !important; } .topbar-inner { padding-block: 12px; } }

/* The section label the old rail carried, now a kicker on the page. */
.step-kicker {
  margin: 0;
  padding: 22px max(var(--content-pad), calc((100% - var(--measure-page)) / 2)) 0;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft);
}
.step-kicker span { opacity: .4; margin: 0 4px; }

/* ── 3. Type: headings at book weight, kickers instead of pills ─────────── */
h1, h2, h3, h4, .kpi strong, .kpi-pending, .report-hero h1 { font-weight: 400; font-family: var(--serif); }
h1, h2 { letter-spacing: -.02em; }
h3 { letter-spacing: -.015em; }
h4 { font-weight: 500; }
.report-hero h1 { font-weight: 400; }

.eyebrow, .report-hero .eyebrow, .credentials-card .eyebrow, .kyber .eyebrow,
.eyebrow-good, .eyebrow-warn, .eyebrow-alert {
  display: inline-block; margin: 0 0 .9rem; padding: 0;
  border: 0; border-radius: 0; background: transparent;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; line-height: 1.5;
  color: var(--brand);
}
.eyebrow-good { color: #22225d; }
.eyebrow-warn { color: #7d5800; }
.eyebrow-alert { color: #b03a37; }
.kpi-pill, .kpi.kpi-key .kpi-pill {
  display: inline-block; padding: 0; border: 0; border-radius: 0; background: transparent;
  font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-faint);
}
.kpi small { font-family: var(--mono); font-weight: 500; font-size: 10px; letter-spacing: .18em; color: var(--ink-faint); }
.hero-meta, .report-hero .hero-meta { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }

/* ── 4. Controls: one button, square inputs, hairline choices ───────────── */
.button, .button.small {
  min-height: 0; padding: 10px 16px;
  border: 1px solid var(--ink); border-radius: 0; box-shadow: none;
  font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .04em; text-transform: none; line-height: 1.3;
  color: var(--ink); background: transparent;
  transition: background .15s, color .15s;
}
.button.small { padding: 6px 12px; font-size: 11px; }
.button:hover, .button.small:hover { background: var(--ink); color: var(--surface-alt); transform: none; filter: none; box-shadow: none; }
.button.primary, .button.primary.landing-start { background: var(--ink); color: var(--surface-alt); box-shadow: none; }
.button.primary:hover, .button.primary.landing-start:hover { background: transparent; color: var(--ink); transform: none; filter: none; box-shadow: none; }
.button.secondary, .button.small.secondary { background: transparent; color: var(--ink); border-color: var(--ink-hair); box-shadow: none; }
.button.secondary:hover, .button.small.secondary:hover { background: var(--ink); color: var(--surface-alt); border-color: var(--ink); }
.button:disabled { opacity: .45; }
.text-button {
  padding: .2rem 0; border: 0; background: none;
  font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none;
  color: var(--ink); text-decoration: underline; text-underline-offset: 3px;
}
.text-button:hover { color: var(--brand); }

input, select, textarea {
  border: 1px solid var(--ink-hair); border-radius: 0; box-shadow: none;
  /* background-COLOR, not the shorthand: styles.css draws the select chevron
     with background-image, and the shorthand wiped it (found 11 Sep 2026). */
  background-color: var(--surface); color: var(--ink);
}
input:focus, select:focus, textarea:focus { border-color: var(--ink); box-shadow: none; }
input[type="range"] { accent-color: var(--ink); }
.choice { border-radius: 0; box-shadow: none; background: var(--surface); border-color: var(--ink-hair); }
.choice:hover { border-color: var(--ink); background: var(--surface); transform: none; }
.choice.selected { border-color: var(--ink); background: var(--surface-alt); box-shadow: inset 2px 0 0 var(--brand); }
.choice input { accent-color: var(--ink); }
.footer-actions { border-top: 1px solid var(--ink-hair); background: color-mix(in srgb, #efe9dc 92%, transparent); box-shadow: none; }

/* ── 5. Surfaces: dark gradient panels become paper frames ──────────────── */
.report-hero {
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--ink); border-radius: 0; box-shadow: none;
}
.report-hero h1 { color: var(--ink); }
.report-hero h1 em { color: var(--brand); font-style: italic; }
.report-hero p { color: var(--ink-soft); }

.kpi { border: 1px solid var(--ink-hair); border-radius: 0; box-shadow: none; background: var(--surface); }
.kpi.kpi-key { background: var(--surface-alt); border-color: var(--ink); }
.kpi.kpi-key small, .kpi.kpi-key .kpi-pill { color: var(--ink-faint); }
.kpi.kpi-key strong { color: var(--ink); }
.kpi.kpi-key span:not(.eyebrow), .kpi.kpi-key .kpi-pending { color: var(--ink-soft); }
.kpi.kpi-return { box-shadow: inset 0 2px 0 var(--brand); }

.credentials-card {
  color: var(--ink-soft); background: var(--surface);
  border: 1px solid var(--ink); border-radius: 0; box-shadow: none;
}
.credentials-card strong, .credentials-card a { color: var(--ink); }
.credentials-lead { color: var(--ink); }

.kyber { color: var(--ink); background: var(--surface); border: 1px solid var(--ink); border-radius: 0; box-shadow: none; }
.kyber h2 { color: var(--ink); }
.kyber-lead, .ladder-note { color: var(--ink-soft); }
.ladder-step { border: 1px solid var(--ink-hair); border-radius: 0; background: var(--surface-alt); }
.ladder-price { font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--brand); }
.ladder-step strong { color: var(--ink); }
.ladder-step p { color: var(--ink-soft); }

.assurance { color: var(--ink); background: var(--surface); border: 1px solid var(--ink); border-radius: 0; }
.assurance h3 { color: var(--ink); }
.promise-card, .lead-capture, .lead-capture.done, .refine { background: var(--surface); border-color: var(--ink-hair); border-radius: 0; }
.privacy-note { background: transparent; border-color: var(--ink-hair); }
.teach-punchline, .shift-note-quote { border-radius: 0; background: transparent; border-left: 2px solid var(--brand); color: var(--ink); }
.section-card, .task-card, .candidate, .condition, .teach-card { border-radius: 0; box-shadow: none; }
.condition.met .condition-mark { background: var(--ink); color: var(--surface-alt); border-radius: 0; }
.tag-no { border-radius: 0; }
.tag-hold { border-radius: 0; background: transparent; border: 1px solid var(--ink-hair); color: var(--ink-soft); }

/* ── 6. Site footer on the report ───────────────────────────────────────── */
.site-footer {
  margin-top: 48px;
  padding: 56px max(var(--content-pad), calc((100% - var(--measure-page)) / 2)) 36px;
  border-top: 1px solid var(--ink);
  background: var(--surface-alt); color: var(--ink);
}
.site-footer-brand { min-width: 0; }
.site-footer-inner { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: start; }
.site-footer-tag { margin: 24px 0 0; max-width: 360px; font-family: var(--serif); font-size: 22px; line-height: 1.45; }
.site-footer-sub { margin: 16px 0 0; max-width: 360px; font-family: var(--mono); font-size: 12px; color: var(--ink-soft); }
.site-footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.site-footer-label { margin-bottom: 16px; font-family: var(--mono); font-size: 10px; letter-spacing: .18em; color: var(--ink-faint); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer li a { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 13px; color: var(--ink); text-decoration: none; }
.site-footer li a span { opacity: .4; }
.site-footer li a:hover { color: var(--brand); }
.site-footer-legal {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--ink-hair);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: var(--ink-faint);
}
@media (max-width: 760px) { .site-footer-inner, .site-footer-cols { grid-template-columns: 1fr; } }
@media print { .site-footer, .step-kicker, .topbar { display: none !important; } }
