/* Breeze Health Platform — site styles
   Tokens first; every color on the page resolves through these. */

:root {
  color-scheme: light;
  /* Breeze brand, harmonized across breezeehr.com and the clinical application:
     logo blue and primary steel blue from both; Open Sans, neutral greys and the
     warm charcoal chrome from the application; mint tint from breezeehr.com. */
  --paper: #F3F3F3;
  --ink: #333333;
  --muted: #6B6F75;
  --rule: #D5D8DC;
  --rule-soft: #E4E6E9;
  --tint: #DEFFFA;
  --surface: #FFFFFF;
  --chrome: #3A3633;
  --chrome-ink: #F1EEEB;
  --accent: #0081D3;
  --accent-ink: #3276B1;
  --direction: #9A6A12;
  --direction-bg: #F6ECD6;
  --code-bg: #EDEDED;
  --focus: #0081D3;

  --font-display: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "Source Code Pro", "SFMono-Regular", Menlo, Consolas, monospace;

  --measure: 66ch;
  --margin-col: 200px;
  --gutter: 48px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #2B2826;
    --ink: #F1EEEB;
    --muted: #C0BBB7;
    --rule: #55504C;
    --rule-soft: #45403C;
    --tint: #243A38;
    --surface: #3A3633;
    --chrome: #474544;
    --chrome-ink: #F1EEEB;
    --accent: #5EB9F2;
    --accent-ink: #8CCBF5;
    --direction: #E0B25A;
    --direction-bg: #3A2F18;
    --code-bg: #332F2C;
    --focus: #8CCBF5;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #2B2826;
  --ink: #F1EEEB;
  --muted: #C0BBB7;
  --rule: #55504C;
  --rule-soft: #45403C;
  --tint: #243A38;
  --surface: #3A3633;
  --chrome: #474544;
  --chrome-ink: #F1EEEB;
  --accent: #5EB9F2;
  --accent-ink: #8CCBF5;
  --direction: #E0B25A;
  --direction-bg: #3A2F18;
  --code-bg: #332F2C;
  --focus: #8CCBF5;
}

* { box-sizing: border-box; }
figure, blockquote { margin: 0; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.2vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
}
h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.3;
}
p { margin: 0; }
p + p { margin-top: 1em; }

code, pre, .mono {
  font-family: var(--font-mono);
  font-size: 0.88em;
}
code { background: var(--code-bg); padding: 0.08em 0.35em; border-radius: 3px; }
pre {
  margin: 0;
  background: var(--code-bg);
  border: 1px solid var(--rule-soft);
  padding: 18px 20px;
  overflow-x: auto;
  line-height: 1.5;
  font-size: 0.82rem;
}
pre code { background: none; padding: 0; font-size: inherit; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.page { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0 22px;
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.wordmark svg { width: 40px; height: 40px; flex: none; }
.wordmark .breeze { font-weight: 300; color: var(--accent); margin-right: 0.3em; }
.wordmark .mark { fill: var(--accent); stroke: var(--accent); }
.wordmark:hover { color: var(--ink); }
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 0.92rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--ink); }
.site-nav a.ext::after { content: " \2197"; }

/* Sections as ledger rows */
.section {
  display: grid;
  grid-template-columns: var(--margin-col) minmax(0, 1fr);
  column-gap: var(--gutter);
  row-gap: 28px;
  padding: 72px 0;
  border-top: 1px solid var(--rule);
}
.section.hero { border-top: 0; padding-top: 64px; }
.margin { grid-column: 1; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.body { grid-column: 2; max-width: var(--measure); }
.body > * + * { margin-top: 1.1em; }
.body h2 + p, .body h2 + .lede { margin-top: 0.7em; }
.plate { grid-column: 1 / -1; }
.plate + .plate { margin-top: 12px; }

.lede { font-size: 1.22rem; line-height: 1.45; }
.hero .lede { font-size: 1.32rem; max-width: 60ch; }
.hero h1 { max-width: 20ch; }
.hero .body > h1 + .lede { margin-top: 30px; }

/* Status markers: form encodes state */
.marker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px 3px;
  border: 1px solid currentColor;
  border-radius: 2px;
  white-space: nowrap;
}
.marker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.marker.implemented { color: var(--accent-ink); }
.marker.partial { color: var(--direction); }
.marker.partial::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); border: 1px solid currentColor; box-sizing: border-box; }
.marker.direction { color: var(--direction); }
.marker.direction::before { background: transparent; border: 1px solid currentColor; box-sizing: border-box; }

/* Actions */
.actions { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-top: 34px; }
.button {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 11px 20px;
  border: 1px solid color-mix(in srgb, var(--accent-ink) 50%, transparent);
  border-radius: 4px;
  text-decoration: none;
  color: var(--accent-ink);
  background: transparent;
}
.button:hover { border-color: var(--accent-ink); background: color-mix(in srgb, var(--accent-ink) 6%, transparent); }
.button.primary { background: var(--accent-ink); border-color: var(--accent-ink); color: #FFFFFF; }
.button.primary:hover { background: color-mix(in srgb, var(--accent-ink) 88%, #000); color: #FFFFFF; }

/* Diagram plate */
.diagram { background: var(--surface); border: 1px solid var(--rule); padding: 20px 20px 12px; overflow-x: auto; }
.diagram svg { display: block; width: 100%; height: auto; min-width: 720px; }
.diagram-caption { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 14px; font-size: 0.86rem; color: var(--muted); }
.diagram-caption .key { display: inline-flex; align-items: center; gap: 8px; }
.diagram-caption .key i { display: inline-block; width: 26px; height: 0; border-top: 2px dashed var(--accent); }
.diagram-caption .key i.dir { border-top: 1.5px dashed var(--direction); }
.diagram-caption .key i.spine { width: 14px; height: 14px; border: 1px solid var(--rule); background: var(--tint); }

svg .l-box { fill: var(--surface); stroke: var(--rule); }
svg .l-tint { fill: var(--tint); stroke: var(--rule); }
svg .l-dir { fill: var(--surface); stroke: var(--direction); stroke-dasharray: 6 5; }
svg .l-seam { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 2 7; stroke-linecap: round; fill: none; }
svg .l-bind { stroke: var(--rule); stroke-width: 1.2; stroke-dasharray: 3 4; fill: none; }
svg .l-bind-dot { fill: var(--accent); }
svg .l-line { stroke: var(--ink); stroke-width: 1.2; fill: none; }
svg .l-chip { fill: var(--tint); stroke: var(--accent); }
svg .l-bar { fill: var(--chrome); }
svg text { fill: var(--ink); font-family: var(--font-body); font-size: 15px; }
svg text.mono { font-family: var(--font-mono); font-size: 13px; }
svg text.hd { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; fill: var(--muted); }
svg text.mut { fill: var(--muted); font-size: 12.5px; }
svg text.onbar { fill: var(--chrome-ink); font-family: var(--font-mono); font-size: 12.5px; }
svg text.dir { fill: var(--direction); }
svg text.acc { fill: var(--accent-ink); }
svg text.chip { fill: var(--accent-ink); font-size: 13.5px; }

/* Requirement list */
.req { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--rule-soft); }
.req-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 190px;
  gap: 8px 32px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule-soft);
  align-items: start;
}
.req-row h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; line-height: 1.25; letter-spacing: -0.01em; }
.req-row .today { font-size: 0.92rem; color: var(--muted); margin-top: 8px; }
.req-row .today strong { color: var(--ink); font-weight: 700; }
.req-row .status { justify-self: end; text-align: right; }
.req-row .status .note { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 8px; }

/* Pull quote */
.pull {
  margin: 0;
  padding: 6px 0 6px 22px;
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 300;
}
.pull cite { display: block; font-family: var(--font-body); font-style: normal; font-size: 0.82rem; color: var(--muted); margin-top: 10px; }

/* Tables */
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.table-wrap { overflow-x: auto; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px 11px 0; border-bottom: 1px solid var(--rule-soft); }
th { font-family: var(--font-mono); font-weight: 600; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
td.mono, th.mono { font-family: var(--font-mono); font-size: 0.86rem; white-space: nowrap; }
td .card { font-variant-numeric: tabular-nums; color: var(--muted); }

/* Callout */
.callout { border: 1px solid var(--rule); background: var(--surface); padding: 22px 26px; max-width: 78ch; }
.callout h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; }
.callout p { font-size: 1rem; }

/* Operation groups */
.opgroups { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px 32px; }
.opgroup h3 { font-size: 0.74rem; font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.opgroup ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.opgroup li { font-size: 0.86rem; background: var(--tint); border: 1px solid var(--rule-soft); padding: 3px 8px; border-radius: 2px; }

/* Sub-sections and stat tiles */
.body.sub h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 1.15rem; }
.body.sub h3 + p { margin-top: 0.6em; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 28px; }
.stats > div { padding: 16px 0 18px; border-top: 2px solid var(--accent); }
.stats .n { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stats .l { font-size: 0.88rem; color: var(--muted); margin-top: 6px; max-width: 30ch; }

/* Screenshots */
.shot { border: 1px solid var(--rule); background: var(--surface); overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,0.05), 0 18px 40px -24px rgba(0,0,0,0.35); }
.shot img { display: block; width: 100%; height: auto; }
.shot-caption { font-size: 0.86rem; color: var(--muted); margin-top: 10px; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 26px 32px; }
.feature { border-top: 2px solid var(--accent); padding-top: 14px; }
.feature h3 { font-size: 1rem; margin-bottom: 6px; }
.feature p { font-size: 0.93rem; color: var(--muted); }

/* Inline link list */
.more { font-size: 0.95rem; }

/* Page sequence and contents */
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.pager { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--rule); padding: 28px 0 12px; }
.pager a { text-decoration: none; color: var(--ink); max-width: 46%; }
.pager a span { display: block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.pager a.next { text-align: right; margin-left: auto; }
.pager a:hover { color: var(--accent-ink); }
.toc { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px 32px; }
.toc-item { display: block; text-decoration: none; color: var(--ink); border-top: 2px solid var(--accent); padding-top: 14px; }
.toc-item .eyebrow { display: block; margin-bottom: 8px; }
.toc-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.toc-item p { font-size: 0.93rem; color: var(--muted); }
.toc-item:hover h3 { color: var(--accent-ink); }
svg a.l-link { cursor: pointer; }
svg a.l-link:hover rect { stroke: var(--accent); }
svg a.l-link:hover text { fill: var(--accent-ink); }
.toc-item.toc-ext { border-top-color: var(--chrome); }
.toc-item.toc-ext h3::after { content: " \2197"; color: var(--muted); font-weight: 400; }

/* Ledger */
.ledger { border: 1px solid var(--rule); background: var(--surface); font-family: var(--font-mono); font-size: 0.82rem; overflow-x: auto; }
.ledger-row { display: grid; grid-template-columns: 78px 110px minmax(280px, 1fr) 210px; gap: 0 18px; padding: 10px 18px; border-bottom: 1px solid var(--rule-soft); white-space: nowrap; min-width: 720px; }
.ledger-row:last-child { border-bottom: 0; }
.ledger-row.head { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; background: var(--tint); }
.ledger-row .t { color: var(--muted); font-variant-numeric: tabular-nums; }
.ledger-row .verb { color: var(--accent-ink); }
.ledger-row .who { color: var(--muted); }
.ledger-row .review { color: var(--direction); }

/* Steps: a real sequence, so numbered */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 20px; padding: 20px 0; border-top: 1px solid var(--rule-soft); counter-increment: step; }
.steps li::before { content: counter(step); font-family: var(--font-display); font-weight: 300; font-size: 2rem; line-height: 1; color: var(--muted); }
.steps h3 { font-size: 1.1rem; }
.steps p { margin-top: 6px; }
.steps .uses { margin-top: 8px; font-size: 0.86rem; color: var(--muted); }
.steps .uses code { font-size: 0.82em; }

/* Status table */
.status-table th:first-child, .status-table td:first-child { width: 34%; }

/* CTA */
.cta { border-top: 1px solid var(--rule); padding: 72px 0 64px; display: grid; grid-template-columns: var(--margin-col) minmax(0, 1fr); column-gap: var(--gutter); row-gap: 28px; }
.cta .body { max-width: 56ch; }
.cta .actions { margin-top: 26px; }
.cta .fine { font-size: 0.9rem; color: var(--muted); margin-top: 22px; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 28px 0 40px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; font-size: 0.86rem; color: var(--muted); }
.site-footer .brand { display: inline-flex; align-items: center; gap: 10px; }
.site-footer .brand svg { width: 24px; height: 24px; }
.site-footer .brand .mark { fill: var(--accent); stroke: var(--accent); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

/* Narrow screens */
@media (max-width: 900px) {
  .section, .cta { grid-template-columns: 1fr; row-gap: 18px; padding: 52px 0; }
  .margin, .body { grid-column: 1; }
  .margin { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
  .req-row { grid-template-columns: 1fr; gap: 6px; }
  .req-row .status { justify-self: start; text-align: left; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .page { padding: 0 18px; }
  .site-header { flex-direction: column; align-items: flex-start; gap: 12px; }
}
