/* =========================================================================
   Road to 90 — Version 1 prototype stylesheet
   See DESIGN.md for the rationale behind every choice below.
   System fonts + self-hosted WOFF2 (Phase 0). No external libraries, no CDN.
   ========================================================================= */

/* ---------- Self-hosted fonts (Phase 0 — DECLARED ONLY, not yet applied) ----------
   Added for the A+C hybrid redesign. SIL Open Font License 1.1
   (see assets/fonts/OFL-Saira.txt and assets/fonts/OFL-IBMPlexMono.txt).
   These faces are declared so they are available to Phase 1; no production
   selector references them yet, so rendering is unchanged in Phase 0.
   All src are local relative URLs — no network/CDN dependency. */
@font-face {
  font-family: "Saira";            /* body / UI (variable wght) */
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/saira-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Saira Semi Condensed";   /* display / headings */
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/saira-semicondensed-600.woff2") format("woff2");
}
@font-face {
  font-family: "Saira Semi Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/saira-semicondensed-700.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";    /* data / metrics / timestamps only */
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-600.woff2") format("woff2");
}

/* ---------- Design tokens ---------- */
:root {
  --ink: #14202b;
  --navy: #0f2a43;
  --navy-700: #0a2036;
  --clay: #b4532a;
  --clay-700: #8f3f1f;
  --slate-700: #3e4c5a;
  --slate-500: #5b6b7b;
  --slate-300: #c9d2db;
  --line: #e6ebf0;
  --paper: #f4f6f8;
  --white: #ffffff;

  --carbon: #0b1722;            /* deep report header / hero surface */

  /* pipeline status colours — AA-fixed (audit H1) */
  --st-draft: #5d6571;
  --st-wait: #946012;
  --st-revise: #2b5f8a;
  --st-approved: #2a7046;
  --st-deliver: #0f2a43;

  --font-display: "Saira Semi Condensed", "Saira", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-sans: "Saira", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --maxw: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-soft: 0 1px 2px rgba(20, 32, 43, 0.06);
  --ring: 0 0 0 2px var(--white), 0 0 0 4px var(--clay);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* Ensure the [hidden] attribute always wins over component display rules
   (e.g. .error-text/.choice use display:flex). Keeps JS-toggled errors,
   confirmations and safety alerts truly hidden until revealed. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); line-height: 1.08; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.15rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1rem; max-width: 68ch; }

a { color: var(--clay-700); text-underline-offset: 2px; }
a:hover { color: var(--clay); }

ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin: 0.25rem 0; }

code, .mono { font-family: var(--font-mono); }

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute; left: 8px; top: -48px;
  background: var(--navy); color: var(--white);
  padding: 10px 16px; border-radius: var(--radius);
  z-index: 200; transition: top 120ms ease;
}
.skip-link:focus { top: 8px; color: var(--white); }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 4px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(48px, 6vw, 96px); }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy); color: #dfe7ef; }
.section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--clay-700); margin: 0 0 0.85rem;
}
.section--navy .eyebrow { color: #e7a079; }
.lead { font-size: 1.125rem; color: var(--slate-700); max-width: 60ch; }
.section--navy .lead { color: #c6d2de; }

.grid { display: grid; gap: clamp(16px, 3vw, 28px); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Skip link target spacing ---------- */
main { display: block; }

/* ---------- Site header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); text-decoration: none; }
.brand:hover { color: var(--navy); }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__name { font-size: 1.05rem; letter-spacing: -0.01em; }
.brand__name small { display: block; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-500); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: none; border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--navy); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.primary-nav a {
  display: inline-block; padding: 8px 12px; border-radius: var(--radius);
  color: var(--slate-700); text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.primary-nav a:hover { color: var(--navy); background: var(--paper); }
.primary-nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -2px 0 var(--clay); border-radius: 0; }

@media (max-width: 859px) {
  .primary-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter);
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .primary-nav a { padding: 12px; }
  .primary-nav .btn { margin-top: 8px; text-align: center; }
}
@media (min-width: 860px) {
  .nav-toggle { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: var(--radius);
  font-weight: 650; font-size: 0.975rem; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.btn--primary { background: var(--clay); color: #fff; }
.btn--primary:hover { background: var(--clay-700); color: #fff; }
.btn--secondary { background: var(--white); color: var(--navy); border-color: var(--slate-300); }
.btn--secondary:hover { background: var(--paper); color: var(--navy); }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: rgba(255,255,255,0.08); }
.section--navy .btn--secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.section--navy .btn--secondary:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: #e7eef5; }
.hero__inner { display: grid; gap: clamp(24px, 4vw, 48px); align-items: center; padding-block: clamp(48px, 7vw, 96px); }
@media (min-width: 900px) { .hero__inner { grid-template-columns: 1.1fr 0.9fr; } }
.hero h1 { color: #fff; }
.hero p { color: #c6d2de; }
.hero__panel {
  background: var(--navy-700); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 28px);
}

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(18px, 2.5vw, 26px);
  box-shadow: var(--shadow-soft);
}
.card h3 { margin-top: 0; }
.card__icon { width: 36px; height: 36px; color: var(--clay); margin-bottom: 12px; }
.card--flat { box-shadow: none; }
.card--quiet { background: var(--paper); border-color: var(--line); box-shadow: none; }

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.feature-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; margin: 0; }
.feature-list svg { width: 20px; height: 20px; color: var(--st-approved); margin-top: 2px; }

/* ---------- Status chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em;
  padding: 3px 10px; border-radius: 999px; border: 1px solid currentColor;
  white-space: nowrap;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip--draft { color: var(--st-draft); background: #f1f3f5; }
.chip--wait { color: var(--st-wait); background: #fbf3e3; }
.chip--revise { color: var(--st-revise); background: #e8f0f7; }
.chip--approved { color: var(--st-approved); background: #e7f3ec; }
.chip--deliver { color: var(--st-deliver); background: #e8eef4; }
.chip--demo { color: var(--clay-700); background: #f7ece6; }

/* ---------- AI draft block ---------- */
.ai-draft {
  border: 1.5px dashed var(--slate-300); border-radius: var(--radius-lg);
  background: repeating-linear-gradient(135deg, #fbfcfd, #fbfcfd 10px, #f6f8fa 10px, #f6f8fa 20px);
  padding: 18px; position: relative;
}
.ai-draft__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.approved-block {
  border: 1px solid var(--st-approved); border-left: 4px solid var(--st-approved);
  border-radius: var(--radius); background: #f3faf5; padding: 18px;
}
.approved-block__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }

/* ---------- Pipeline stepper ---------- */
.pipeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pipeline li {
  display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start;
  margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
}
.pipeline .step-num {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700;
  background: var(--paper); color: var(--slate-500); border: 1px solid var(--slate-300);
}
.pipeline li.is-done .step-num { background: var(--st-approved); color: #fff; border-color: var(--st-approved); }
.pipeline li.is-current { border-color: var(--clay); box-shadow: inset 0 0 0 1px var(--clay); }
.pipeline li.is-current .step-num { background: var(--clay); color: #fff; border-color: var(--clay); }
.pipeline .step-title { font-weight: 650; color: var(--navy); }
.pipeline .step-desc { font-size: 0.9rem; color: var(--slate-500); }
@media (min-width: 920px) {
  .pipeline { grid-auto-flow: column; grid-auto-columns: 1fr; }
}

/* ---------- Data tables / readouts ---------- */
.data-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.data-grid > div { background: var(--white); padding: 12px 14px; }
.data-grid dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--slate-500); font-weight: 700; margin: 0; }
.data-grid dd { margin: 4px 0 0; font-family: var(--font-mono); font-size: 1.05rem; color: var(--ink); }
.data-grid dd small { font-family: var(--font-sans); color: var(--slate-500); }
@media (min-width: 560px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }

table.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--slate-500); }
.table td.num { font-family: var(--font-mono); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- Demo banner ---------- */
.demo-banner {
  background: #2a1a12; color: #ffd9c2; border-bottom: 1px solid #4a2c1e;
  font-size: 0.85rem; text-align: center; padding: 8px var(--gutter);
}
.demo-banner strong { color: #ffb893; }

/* ---------- Pain / safety callout ---------- */
.callout {
  border: 1px solid var(--slate-300); border-left: 4px solid var(--st-wait);
  background: #fbf6ec; border-radius: var(--radius); padding: 16px 18px; margin: 16px 0;
}
.callout--stop { border-left-color: var(--clay); background: #f9eee8; }
.callout h3 { margin-top: 0; font-size: 1.05rem; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Tabs (dashboards) ---------- */
.tabs { border-bottom: 1px solid var(--line); display: flex; gap: 2px; overflow-x: auto; }
.tabs [role="tab"] {
  appearance: none; background: none; border: none; cursor: pointer;
  padding: 12px 14px; font-size: 0.95rem; font-weight: 650; color: var(--slate-500);
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.tabs [role="tab"]:hover { color: var(--navy); }
.tabs [role="tab"][aria-selected="true"] { color: var(--navy); border-bottom-color: var(--clay); }
.tabpanel { padding-top: 24px; }
.tabpanel[hidden] { display: none; }

/* ---------- Forms ---------- */
.form-section { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(16px, 2.5vw, 24px); margin-bottom: 20px; }
.form-section > legend { font-weight: 700; color: var(--navy); padding: 0 6px; font-size: 1.05rem; }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 680px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.95rem; color: var(--slate-700); }
.field .req { color: var(--clay-700); font-weight: 700; }
.field .hint { font-size: 0.82rem; color: var(--slate-500); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid var(--slate-300); border-radius: var(--radius); padding: 10px 12px; min-height: 44px; width: 100%;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { box-shadow: var(--ring); border-color: var(--clay); }

.upload-mock {
  border: 1.5px dashed var(--slate-300); border-radius: var(--radius-lg);
  padding: 22px; text-align: center; color: var(--slate-500); background: var(--paper);
}
.upload-mock svg { width: 30px; height: 30px; margin: 0 auto 8px; color: var(--slate-500); }

/* ---------- FAQ accordion ---------- */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; background: var(--white); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 650; color: var(--navy);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { flex: none; width: 18px; height: 18px; transition: transform 150ms ease; color: var(--clay); }
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 18px 18px; color: var(--slate-700); }
.faq-item .faq-body p { margin-top: 0; }

/* ---------- Coach queue ---------- */
.queue-item { display: grid; gap: 12px; grid-template-columns: 1fr; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); margin-bottom: 12px; }
@media (min-width: 760px) { .queue-item { grid-template-columns: 1.4fr 1fr auto; } }
.queue-item h3 { margin: 0; font-size: 1.05rem; }
.queue-item .meta { font-size: 0.85rem; color: var(--slate-500); margin: 2px 0 0; }

/* ---------- Progress bars (CSS only) ---------- */
.bar { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; height: 12px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--st-approved); }
.bar--clay > span { background: var(--clay); }

/* ---------- Misc ---------- */
.divider { border: none; border-top: 1px solid var(--line); margin: 32px 0; }
.muted { color: var(--slate-500); }
.center { text-align: center; }
.stack > * + * { margin-top: 16px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tag-list li { margin: 0; }
.tag { display: inline-block; font-size: 0.85rem; padding: 4px 10px; border: 1px solid var(--slate-300); border-radius: var(--radius); background: var(--white); color: var(--slate-700); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9c6d3; padding-block: 48px 32px; margin-top: 0; }
.site-footer a { color: #dbe6f0; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.footer-legal { border-top: 1px solid rgba(255,255,255,0.14); margin-top: 32px; padding-top: 20px; font-size: 0.82rem; color: #91a2b3; }
.footer-legal p { max-width: none; }

/* ===================================================================
   A+C HYBRID — Coach's Report marketing components (Phase 1)
   Used by the public/marketing pages. App screens (Phase 2) keep their
   existing components; these classes are additive and don't touch them.
   =================================================================== */

/* Carbon surface */
.section--carbon { background: var(--carbon); color: #cfe0ee; }
.section--carbon h1, .section--carbon h2, .section--carbon h3 { color: #fff; }
.section--carbon .eyebrow { color: #e7a079; }
.section--carbon .lead { color: #c6d2de; }
.section--carbon a { color: #e7eef5; }

/* Report hero (blueprint-grid carbon) */
.hero-report { background: var(--carbon); color: #e7eef5; position: relative; overflow: hidden; }
.hero-report::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 34px 34px;
}
.hero-report .container { position: relative; }
.hero-report .eyebrow { color: #e7a079; }
.hero-grid { display: grid; gap: clamp(28px, 4vw, 52px); align-items: center; padding-block: clamp(40px, 6vw, 76px); }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }
.hero-report h1 { color: #fff; text-transform: uppercase; line-height: 1.0; }
.hero-report h1 em { font-style: normal; color: #e7a079; }
.hero-report .lead { color: #c6d2de; }

/* Mono spec line */
.specline {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; color: #8ea3b7;
  border-block: 1px solid #21323f; padding: 9px 0; margin: 22px 0;
  display: flex; flex-wrap: wrap; gap: 6px 14px;
}
.specline b { color: #e7a079; font-weight: 600; }
.hero-report .muted { color: #6f879c; font-family: var(--font-mono); font-size: 0.72rem; }

/* Scouting-report card */
.report { background: #fff; border: 1px solid var(--slate-300); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 20px 50px -28px rgba(0,0,0,.55); }
.report__bar { background: var(--carbon); color: #cfe0ee; padding: 11px 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; }
.report__bar b { color: #fff; }
.report__body { padding: 18px; }
.report__hd { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 14px; }
.report__hd h3, .report__hd .rname { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1; text-transform: uppercase; color: var(--navy); margin: 0; max-width: none; }
.report__hd .sub { font-family: var(--font-mono); font-size: 0.72rem; color: var(--slate-500); margin: 3px 0 0; }
.report__ft { margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.68rem; color: var(--slate-500); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Coach Approved stamp — single restrained use (report header only) */
.stamp { flex: none; border: 2px solid var(--clay); color: var(--clay-700); border-radius: 5px; padding: 6px 9px; text-align: center; transform: rotate(4deg); font-family: var(--font-display); font-weight: 700; text-transform: uppercase; line-height: 0.98; letter-spacing: 0.02em; font-size: 0.95rem; }
.stamp small { display: block; font-family: var(--font-mono); font-size: 0.55rem; font-weight: 400; letter-spacing: 0.08em; margin-top: 3px; color: var(--clay); }

/* Report metrics + strike-zone */
.zone-wrap { display: grid; grid-template-columns: 118px 1fr; gap: 14px; align-items: center; }
.zone-chart { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; width: 100%; }
.report-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0; }
.report-metrics > div { background: #fff; padding: 8px 10px; }
.report-metrics dt { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-500); margin: 0; }
.report-metrics dd { margin: 2px 0 0; font-family: var(--font-mono); font-weight: 600; font-size: 1.15rem; color: var(--ink); }
.report-metrics dd small { font-size: 0.62rem; color: var(--slate-500); font-weight: 400; }

/* Status-model strip (homepage) — the shared 5-state language */
.statuscols { display: grid; gap: 2px; margin-top: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--line); }
@media (min-width: 760px) { .statuscols { grid-template-columns: repeat(4, 1fr); } }
.statuscol { background: #fff; padding: 16px 16px 18px; border-top: 3px solid var(--slate-300); }
.statuscol[data-state="draft"] { border-top-color: var(--st-draft); }
.statuscol[data-state="review"] { border-top-color: var(--st-wait); }
.statuscol[data-state="approved"] { border-top-color: var(--st-approved); }
.statuscol[data-state="delivered"] { border-top-color: var(--st-deliver); }
.statuscol .s { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-500); }
.statuscol h3 { font-size: 1.2rem; margin: 5px 0 6px; }
.statuscol p { font-size: 0.9rem; color: var(--slate-700); margin: 0; max-width: none; }

/* Delivery-phase timeline (signature) */
.phases { margin-top: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; padding: 24px 22px; }
.phase-rail { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 8px; }
.phase-rail::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: var(--slate-300); }
.phase { position: relative; padding-top: 26px; text-align: center; }
.phase::before { content: ""; position: absolute; top: 3px; left: 50%; transform: translateX(-50%); width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 2px solid var(--slate-300); }
.phase.on::before { background: var(--clay); border-color: var(--clay); }
.phase .pn { font-family: var(--font-mono); font-size: 0.6rem; color: var(--slate-500); }
.phase .pt { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: 0.92rem; color: var(--navy); margin-top: 2px; line-height: 1.05; }
.phase .pc { font-size: 0.78rem; color: var(--slate-500); margin-top: 4px; display: block; }

/* Report contents list (replaces card grids) */
.report-contents { margin-top: 26px; border-top: 2px solid var(--navy); }
.report-row { display: grid; grid-template-columns: 54px 1fr auto; gap: 18px; align-items: baseline; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.report-row .ci { font-family: var(--font-mono); font-weight: 600; color: var(--clay-700); font-size: 1.05rem; }
.report-row h3 { font-size: 1.4rem; text-transform: uppercase; margin: 0; }
.report-row p { margin: 6px 0 0; color: var(--slate-700); font-size: 0.96rem; max-width: 64ch; }
.report-row .tag { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate-500); white-space: nowrap; }
.report-row .tag.depth { color: var(--clay-700); }

/* Coach approval line (shared trust component) */
.approval-line { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.03em; color: var(--slate-700); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Honest photo placeholder */
.photo-ph { aspect-ratio: 4/5; border: 1px dashed var(--slate-300); border-radius: var(--radius-lg); background: var(--paper); display: grid; place-items: center; text-align: center; color: var(--slate-500); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 16px; }

/* Footer column title (fixes audit M1 h2->h4 skip; styled like old h4) */
.site-footer .ftcol-title { color: #fff; font-family: var(--font-mono); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 12px; font-weight: 600; }

@media (max-width: 560px) {
  .zone-wrap { grid-template-columns: 1fr; }
  .phase-rail { grid-template-columns: 1fr; gap: 0; }
  .phase-rail::before { display: none; }
  .phase { text-align: left; padding: 10px 0 10px 26px; border-bottom: 1px solid var(--line); }
  .phase:last-child { border-bottom: none; }
  .phase::before { left: 3px; top: 14px; }
  .report-row { grid-template-columns: 40px 1fr; }
  .report-row .tag { grid-column: 2; }
}

/* ===================================================================
   A+C HYBRID — Application components (Phase 2A)
   Shared form / validation / status / safety / confirmation system.
   Used by app/intake.html; reusable by Phase 2B dashboards.
   =================================================================== */

/* Checkbox & radio base — removes the per-input inline overrides (audit M5) */
.field input[type="checkbox"], .field input[type="radio"],
.choice input[type="checkbox"], .choice input[type="radio"] {
  width: auto; min-height: 0; margin: 0; flex: none; accent-color: var(--clay);
}
.choice { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--slate-700); line-height: 1.4; }
.choice input { margin-top: 3px; min-width: 18px; min-height: 18px; }
.choice + .choice { margin-top: 12px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 4px; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 560px) { .choice-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.choice-grid li { margin: 0; }

/* Required marker (text, not colour-only) */
.req { color: var(--clay-700); font-weight: 700; }
.field-note { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--slate-500); }

/* Validation states */
.field--error > input, .field--error > select, .field--error > textarea { border-color: var(--clay); box-shadow: 0 0 0 1px var(--clay); }
fieldset.field--error { border-color: var(--clay); box-shadow: 0 0 0 1px var(--clay); }
.error-text { color: var(--clay-700); font-size: 0.82rem; font-weight: 600; display: flex; gap: 6px; align-items: flex-start; margin-top: 2px; }
.error-text svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.form-errors { border: 1px solid var(--clay); border-left: 4px solid var(--clay); background: #f9eee8; border-radius: var(--radius); padding: 14px 18px; margin-bottom: 22px; }
.form-errors h2 { font-size: 1.05rem; margin: 0 0 8px; color: var(--clay-700); display: flex; align-items: center; gap: 8px; }
.form-errors h2 svg { width: 18px; height: 18px; }
.form-errors ul { margin: 0; padding-left: 1.1rem; }
.form-errors a { color: var(--clay-700); }

/* Safety alert (pain reported) — calm, non-diagnostic, accessible */
.safety-alert { border: 1px solid var(--slate-300); border-left: 4px solid var(--clay); background: #f9eee8; border-radius: var(--radius); padding: 16px 18px; margin: 16px 0 0; }
.safety-alert__title { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--clay-700); margin: 0 0 6px; }
.safety-alert__title svg { width: 22px; height: 22px; flex: none; }
.safety-alert p { margin: 0; color: var(--slate-700); }

/* Safety-hold status chip (distinct from amber "awaiting") */
.chip--hold { color: var(--clay-700); background: #f7ece6; }

/* Confirmation panels (final state) */
.confirm { border: 1px solid var(--slate-300); border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 26px); }
.confirm__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.confirm__head h2 { font-size: 1.5rem; margin: 0; }
.confirm--review { border-left: 4px solid var(--st-wait); background: #fbf6ec; }
.confirm--safety { border-left: 4px solid var(--clay); background: #f9eee8; }
.confirm__meta { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--slate-500); margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.confirm ul { margin: 0.5rem 0 0; }

/* Upload placeholders share one style (no inline) */
.upload-mock { border: 1.5px dashed var(--slate-300); border-radius: var(--radius-lg); padding: 22px; text-align: center; color: var(--slate-500); background: var(--paper); }
.upload-mock svg { width: 30px; height: 30px; margin: 0 auto 8px; color: var(--slate-500); }
.upload-mock strong { color: var(--slate-700); }

/* ===================================================================
   A+C HYBRID — Workflow control centre + athlete gating (Phase 2B)
   =================================================================== */
.qgrid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .qgrid { grid-template-columns: repeat(5, 1fr); } }
.qstat { background: #fff; padding: 10px 12px; }
.qstat dt { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate-500); margin: 0; }
.qstat dd { margin: 3px 0 0; font-family: var(--font-mono); font-weight: 600; font-size: 1.3rem; color: var(--ink); }

.wf-grid { display: grid; gap: 20px; align-items: start; }
@media (min-width: 920px) { .wf-grid { grid-template-columns: 300px 1fr; } }
.wf-reclist { display: flex; flex-direction: column; gap: 8px; }
.wf-rec { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; cursor: pointer; font: inherit; color: inherit; }
.wf-rec:hover { border-color: var(--slate-300); }
.wf-rec.is-active { border-color: var(--clay); box-shadow: inset 0 0 0 1px var(--clay); }
.wf-rec__name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--navy); }
.wf-rec__meta { grid-column: 1 / -1; font-family: var(--font-mono); font-size: 0.66rem; color: var(--slate-500); }
.wf-rec .chip { justify-self: start; grid-column: 1 / -1; margin-top: 4px; }

.wf-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(16px, 2.5vw, 24px); }
.wf-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 4px; }
.wf-head h3 { margin: 0; font-size: 1.4rem; }
.wf-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.action-cell { display: flex; flex-direction: column; gap: 4px; }
.action-reason { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.03em; color: var(--clay-700); max-width: 22ch; }

.wf-preview { margin-top: 20px; border: 1px solid var(--slate-300); border-radius: var(--radius); overflow: hidden; }
.wf-preview__bar { background: var(--carbon); color: #cfe0ee; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 14px; }
.wf-preview__body { padding: 16px; }

.wf-audit { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; }
.audit-list { list-style: none; margin: 8px 0 0; padding: 0; }
.audit-list li { display: grid; grid-template-columns: 116px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.audit-when { font-family: var(--font-mono); font-size: 0.7rem; color: var(--slate-500); }
.audit-what { font-size: 0.92rem; color: var(--slate-700); }
.audit-note { display: block; color: var(--slate-500); font-size: 0.85rem; margin-top: 2px; }
.audit-actor { display: block; font-family: var(--font-mono); font-size: 0.64rem; color: var(--slate-500); margin-top: 3px; letter-spacing: 0.03em; }
@media (max-width: 520px) { .audit-list li { grid-template-columns: 1fr; gap: 2px; } }

/* Athlete tab discoverability (audit M2) */
.tabs-wrap { position: relative; }
.tabs__hint { display: none; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--clay-700); margin: 6px 2px 0; }
@media (max-width: 760px) {
  .tabs-wrap::after { content: ""; position: absolute; top: 0; right: 0; bottom: 12px; width: 36px; pointer-events: none; background: linear-gradient(90deg, rgba(255,255,255,0), var(--white)); }
  .tabs__hint { display: block; }
  .tabs { scroll-snap-type: x proximity; }
  .tabs [role="tab"] { scroll-snap-align: start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
