/* ALF Ready — evergreen for care, inspection-tag yellow for readiness. */
@font-face { font-family: 'IBM Plex Sans'; font-weight: 500; font-style: normal; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-style: normal; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Public Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/public-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Public Sans'; font-weight: 400; font-style: italic; font-display: swap; src: url(/fonts/public-sans-latin-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'Public Sans'; font-weight: 500; font-style: normal; font-display: swap; src: url(/fonts/public-sans-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Public Sans'; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/public-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Public Sans'; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/public-sans-latin-700-normal.woff2) format('woff2'); }

:root {
  color-scheme: light;
  --ink: #15262B;
  --ink-2: #3A4B50;
  --muted: #55666B;
  --paper: #FFFFFF;
  --punch: #FFFFFF; /* logo hole */
  --tip: #E8731C; /* orange: only ever a small corner accent, like the tip of the logo tick */
  --mist: #EEF3F1;
  --mist-2: #E1EAE7;
  --rule: #C9D6D2;
  --rule-soft: #E2EAE7;
  --pine: #1E5B50;
  --pine-deep: #153F38;
  --pine-tint: #E3EFEB;
  --tag: #F2C230;
  --tag-deep: #D9A60F;
  --tag-soft: #FBEFC6;
  --ok: #1F5A3A; --ok-bg: #E2F0E7;
  --warn: #6E4E00; --warn-bg: #FDF0C4; --warn-bar: #D9A60F;
  --bad: #8A1F17; --bad-bg: #FBE3E0;
  --open: #3A4B50; --open-bg: #EEF1F2;
  --series-1: #1E5B50;
  --series-2: #D9A60F;
  --radius: 6px;
  --font: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'IBM Plex Sans', 'Public Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--paper); }
img, svg { max-width: 100%; }
a { color: var(--pine); text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--pine-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--tag-deep); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; color: var(--ink); }
h1 { font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 4.8vw, 3.4rem); letter-spacing: -0.005em; }
h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 2.8vw, 2.15rem); letter-spacing: 0; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
code { background: var(--mist-2); padding: 1px 5px; border-radius: 4px; font-size: .9em; }
.hp { position: absolute; left: -9999px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: 1rem; color: #fff; background: var(--pine); border: 2px solid var(--pine); border-radius: var(--radius); padding: 10px 18px; text-decoration: none; cursor: pointer; line-height: 1.2; white-space: nowrap; }
.btn:hover { background: var(--pine-deep); border-color: var(--pine-deep); color: #fff; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--pine); }
.btn-ghost:hover { background: var(--pine-tint); color: var(--pine-deep); border-color: var(--pine-deep); }
.btn-tag { background: var(--tag); border-color: var(--tag); color: var(--ink); }
.btn-tag:hover { background: #ffd34f; border-color: #ffd34f; color: var(--ink); }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }
.btn-small { font-size: .875rem; padding: 6px 12px; }
.btn-lg { font-size: 1.05rem; padding: 13px 22px; }
.btn-wide { width: 100%; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--pine); text-decoration: underline; cursor: pointer; }
.linklike.danger { color: var(--bad); font-size: .85rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 12px; }

/* ---------- Public site ---------- */
.site-head { background: var(--paper); border-bottom: 1px solid var(--rule-soft); position: sticky; top: 0; z-index: 30; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.6rem; color: var(--ink); text-decoration: none; letter-spacing: .005em; line-height: 1; }
.brand:hover { color: var(--ink); text-decoration: none; }
.logo-mark { width: 30px; height: 35px; flex: none; }
.site-nav { display: flex; align-items: center; gap: 4px 22px; flex-wrap: wrap; }
.site-nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 500; padding: 6px 0; }
.site-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--tag); }
.site-nav a:not(.btn):hover { color: var(--pine); }
.nav-toggle { display: none; }

.kicker { font-weight: 600; color: var(--pine); margin-bottom: 10px; }
.hero { padding: 56px 0 104px; background: var(--paper); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4rem); max-width: 15ch; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 58ch; }
.hero-visual { position: relative; }
.photo { display: block; width: 100%; height: auto; background: var(--mist-2); border-radius: 8px; object-fit: cover; }
.hero-photo { aspect-ratio: 1 / 1.02; border-radius: 10px; }
.hero-tag { position: absolute; left: -44px; bottom: -72px; width: 292px; transform: rotate(-3deg); }

/* The punch tag: the one memorable element */
.punch { position: relative; background: var(--tag); border-radius: 10px 10px 14px 14px; padding: 44px 22px 20px; box-shadow: 0 1px 0 var(--tag-deep), 0 22px 40px -22px rgba(21, 38, 43, .6); max-width: 420px; }
.punch::after { content: ''; position: absolute; inset: 6px; border: 1.5px dashed rgba(21, 38, 43, .28); border-radius: 7px 7px 11px 11px; pointer-events: none; }
.punch-hole { position: absolute; top: 13px; left: 50%; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: var(--punch); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .25); }
.punch-title { font-family: var(--display); font-weight: 700; font-size: 1.25rem; text-align: center; margin-bottom: 12px; }
.punch-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px 6px; }
.pm { display: flex; flex-direction: column; align-items: center; gap: 3px; font-weight: 700; font-size: .78rem; }
.pm-dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; color: var(--mist); }
.pm-done .pm-dot { background: var(--ink); box-shadow: inset 0 3px 4px rgba(0, 0, 0, .45); }
.pm-missed .pm-dot { border: 2.5px solid var(--bad); background: rgba(255, 255, 255, .55); position: relative; }
.pm-missed .pm-dot::before, .pm-missed .pm-dot::after { content: ''; position: absolute; width: 14px; height: 2.5px; background: var(--bad); border-radius: 2px; }
.pm-missed .pm-dot::before { transform: rotate(45deg); } .pm-missed .pm-dot::after { transform: rotate(-45deg); }
.pm-missed .pm-label { color: var(--bad); }
.pm-open .pm-dot { border: 2.5px dashed var(--ink); }
.pm-before .pm-dot { border: 2px solid rgba(21, 38, 43, .25); }
.pm-before .pm-label { opacity: .5; }
.punch-caption { margin: 14px 0 0; font-weight: 600; text-align: center; font-size: .92rem; line-height: 1.35; }
.punch-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; align-items: center; margin: 14px 0 0; font-size: .8rem; font-weight: 600; }
.lg { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: -8px; vertical-align: -1px; }
.lg-done { background: var(--ink); } .lg-missed { border: 2px solid var(--bad); } .lg-open { border: 2px dashed var(--ink); }
.punch-wide { transform: none; margin: 0; max-width: none; }
.punch-compact { max-width: 380px; }

section { padding: 72px 0; }
.band-home { background: var(--mist); }
.section-lede { max-width: 62ch; color: var(--ink-2); font-size: 1.05rem; }
.cite { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--ink-2); background: var(--mist-2); border-radius: 4px; padding: 1px 7px; }

.home-fit { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.fit-photo .photo { aspect-ratio: 4 / 3; }
.fit-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 24px 0 0; border-top: 2px solid var(--ink); }
.fit-facts > div { padding: 14px 16px 0 0; }
.fit-facts > div + div { padding-left: 16px; border-left: 1px solid var(--rule); }
.fit-facts dt { font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: 1.1; }
.fit-facts dd { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }

.cite-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 2px solid var(--ink); }
.cite-list li { display: grid; gap: 4px; padding: 20px 22px 20px 0; border-bottom: 1px solid var(--rule); }
.cite-list li:nth-child(odd) { border-right: 1px solid var(--rule); }
.cite-list li:nth-child(even) { padding-left: 22px; }
.cite-list a { color: var(--ink); text-decoration-color: var(--tag-deep); text-decoration-thickness: 2px; font-size: 1.12rem; }
.cite-list .cite { justify-self: start; }

.tracks h2 { margin-bottom: 36px; }
.track { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 28px 0; }
.track + .track { border-top: 1px solid var(--rule-soft); }
.track-flip .track-media { order: 2; }
.track-media .photo { aspect-ratio: 4 / 3; }
.track-media-tag { display: grid; place-items: center; background: var(--mist); border-radius: 10px; padding: 36px 20px; }
.track-copy h3 { font-family: var(--display); font-size: 1.7rem; font-weight: 700; }
.track-copy p { color: var(--ink-2); max-width: 54ch; }
.due-demo { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; font-size: .92rem; }
.due-demo li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.aside-photo .photo { aspect-ratio: 4 / 3; margin-bottom: 8px; }
.steps { padding-left: 0; list-style: none; counter-reset: s; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 52px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; background: var(--pine); color: #fff; font-family: var(--display); font-weight: 700; font-size: 1.2rem; display: grid; place-items: center; }
.steps.compact li { padding-bottom: 10px; padding-left: 44px; }
.steps.compact li::before { width: 28px; height: 28px; font-size: 1rem; }
.steps li.done::before { content: '✓'; background: var(--ok); }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { border-bottom: 1px solid var(--rule-soft); }
.link-list a { display: block; padding: 10px 0; font-weight: 600; }

.price-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.pricebars { margin: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; padding: 22px; }
.band-home .pricebars { border-color: var(--rule); }
.pricebars figcaption { font-weight: 700; margin-bottom: 12px; }
.pricebars ul { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 12px; }
.pricebars li { display: grid; grid-template-columns: 1fr 56px; grid-template-areas: 'label val' 'track track'; gap: 4px 10px; align-items: end; }
.pb-label { grid-area: label; font-size: .9rem; color: var(--ink-2); }
.pb-val { grid-area: val; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.pb-track { grid-area: track; height: 14px; background: var(--mist); border-radius: 0 4px 4px 0; }
.pb-bar { display: block; height: 100%; border-radius: 0 4px 4px 0; background: #9AA9AD; }
.pb-us .pb-bar { background: var(--pine); }
.pb-us .pb-label { color: var(--ink); font-weight: 600; }

.closing { background: var(--pine); color: #fff; padding: 56px 0; }
.closing h2 { color: #fff; margin-bottom: .2em; }
.closing p { margin: 0; color: #d6e6e1; }
.closing-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.closing .cta-row { margin: 0; }

.page-head { padding: 52px 0 12px; }
.prose-sec { padding-top: 12px; }
.prose p, .prose li { max-width: 68ch; }
.prose h2 { margin-top: 1.4em; font-size: 1.5rem; }
.guide-list { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.guide-list li { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.guide-list a { font-size: 1.15rem; }
.guide-list p { margin: 4px 0 6px; color: var(--ink-2); }

.guide { padding: 36px 0 64px; }
.guide h2 { margin-top: 1.6em; font-size: 1.6rem; }
.guide p, .guide li { max-width: 68ch; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.answer { background: var(--mist); border-left: 6px solid var(--tag); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; margin: 20px 0 8px; }
.answer-h { font-family: var(--font); font-size: 1rem !important; margin: 0 0 .4em !important; }
.answer p:last-child { margin: 0; }
.answer p:first-of-type { font-size: 1.1rem; }
ul.checks { list-style: none; padding: 0; }
ul.checks li { position: relative; padding: 6px 0 6px 32px; border-bottom: 1px solid var(--rule-soft); }
ul.checks li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 18px; height: 18px; border: 2px solid var(--ink); border-radius: 3px; }
.template-cta, .track-cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px 22px; margin: 32px 0; }
.template-cta h2, .track-cta h2 { margin: 0 0 .3em !important; font-size: 1.35rem !important; }
.template-cta p, .track-cta p { margin: 0; }
.track-cta { background: var(--pine); color: #fff; border-color: var(--pine); }
.track-cta h2 { color: #fff; }
.faq dt { font-weight: 700; margin-top: 16px; }
.faq dd { margin: 4px 0 0; color: var(--ink-2); max-width: 68ch; }
.disclaimer { font-size: .85rem; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 14px; margin-top: 28px; }
.related-h { margin-top: 28px; }

/* Features page */
.feature-list { padding-top: 24px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 36px 0; border-top: 1px solid var(--rule-soft); }
.feature:first-child { border-top: 0; }
.feature-flip .feature-copy { order: 2; }
.feature-copy p { color: var(--ink-2); font-size: 1.05rem; max-width: 54ch; }
.feature-demo { background: var(--mist); border-radius: 10px; padding: 28px; }
.mini-list { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); }
.mini-list li { padding: 10px 14px; border-bottom: 1px solid var(--rule-soft); display: grid; gap: 2px; }
.mini-list li:last-child { border-bottom: 0; }
.mini-list span { font-size: .85rem; color: var(--muted); }
.mini-score { display: flex; gap: 18px; align-items: center; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px 20px; }
.mini-score > div { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.mini-score strong { flex-basis: 100%; }
.ms-num { font-family: var(--display); font-weight: 700; font-size: 3.6rem; line-height: .9; color: var(--ok); }
.ms-num span { font-size: 1.8rem; }
.sms { display: grid; gap: 6px; justify-items: start; }
.sms-bubble { background: var(--paper); border: 1px solid var(--rule); border-radius: 16px 16px 16px 4px; padding: 12px 14px; max-width: 36ch; font-size: .95rem; }
.mini-table { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); }
.mini-toc { margin: 0; background: var(--paper); border: 1px solid var(--rule); border-top: 6px solid var(--tag); border-radius: var(--radius); padding: 16px 16px 16px 36px; }
.mini-toc li { padding: 3px 0; }
.mini-chat { display: grid; gap: 8px; }

/* Pricing */
.plans-sec { padding-top: 20px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.plan { background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; padding: 26px; display: flex; flex-direction: column; position: relative; }
.plan h2 { font-size: 1.6rem; margin-bottom: .2em; }
.plan-main { border: 2px solid var(--pine); }
.plan-flag { position: absolute; top: -13px; left: 22px; margin: 0; background: var(--tag); color: var(--ink); font-weight: 700; font-size: .8rem; padding: 3px 10px; border-radius: 3px 10px 10px 3px; }
.plan .price { font-family: var(--display); font-size: 2.9rem; font-weight: 700; margin: 0; line-height: 1.1; }
.plan .price span { font-family: var(--font); font-size: .95rem; font-weight: 500; color: var(--muted); }
.plan ul { flex: 1; }
.plan .btn, .plan form { margin-top: 8px; }
.plan form .btn { width: 100%; white-space: normal; }
.plan-current { margin: 8px 0 0; font-weight: 700; color: var(--pine); }
.ticks { list-style: none; padding: 0; margin: 12px 0; }
.ticks li { position: relative; padding: 4px 0 4px 26px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 10px; width: 12px; height: 7px; border-left: 2.5px solid var(--pine); border-bottom: 2.5px solid var(--pine); transform: rotate(-45deg); }
.compare td:nth-child(2) { font-weight: 600; }
.plans-app { margin-bottom: 14px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 48px; align-items: start; }
.contact-form { background: var(--mist); border-radius: 10px; padding: 26px; }
.contact-aside .photo { aspect-ratio: 520 / 560; margin-bottom: 14px; }
.panel-note { background: var(--ok-bg); border-radius: 10px; padding: 26px; }
textarea { resize: vertical; }

/* Footer */
.site-foot { background: var(--ink); color: #c6d3d6; padding: 48px 0 28px; margin-top: 0; }
.site-foot .brand { color: #fff; }
.site-foot a { color: #e2ecee; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1fr; gap: 28px; }
.foot-grid > div > a:not(.brand) { display: block; padding: 3px 0; text-decoration: none; }
.foot-grid > div > a:not(.brand):hover { text-decoration: underline; color: #fff; }
.foot-brand p { margin: 12px 0 0; max-width: 32ch; }
.foot-h { font-family: var(--font); font-size: .95rem; color: #fff; margin-bottom: 8px; }
.foot-legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; font-size: .85rem; }
.foot-legal p { margin: 0 0 6px; max-width: 110ch; }

/* Templates (printable) */
.template-page { padding: 32px 0 56px; }
.sheet { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px; overflow-x: auto; }
.sheet-head h1 { font-size: 2rem; margin-bottom: 10px; }
.sheet-fields { display: flex; flex-wrap: wrap; gap: 8px 28px; font-weight: 600; margin-bottom: 8px; }
.log-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: .85rem; }
.log-table th { text-align: left; background: var(--mist); border: 1px solid var(--ink); padding: 6px; vertical-align: bottom; }
.log-table td { border: 1px solid var(--ink-2); height: 34px; padding: 4px 6px; }
.sheet-foot { margin: 12px 0 0; color: var(--muted); }

/* Self-check */
.quiz { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.qrow { border: 0; border-bottom: 1px solid var(--rule); padding: 16px 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.qrow legend { float: left; width: 100%; font-weight: 600; margin-bottom: 8px; display: flex; gap: 12px; }
.qnum { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--pine); color: #fff; font-size: .8rem; display: grid; place-items: center; }
.qrow label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); cursor: pointer; margin: 0; }
.qrow label:has(input:checked) { border-color: var(--pine); background: var(--pine); color: #fff; }
.quiz .btn { justify-self: start; margin-top: 20px; }
.quiz-result { background: var(--mist); border-top: 6px solid var(--tag); border-radius: var(--radius); padding: 22px; margin-top: 28px; }
.quiz-result .big { font-family: var(--display); font-size: 3rem; font-weight: 700; line-height: 1; }
.lead-form { margin-top: 20px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px; }
.lead-form label { font-weight: 600; display: block; margin-bottom: 8px; }
.inline { display: flex; gap: 8px; flex-wrap: wrap; }
.inline input { flex: 1 1 240px; }

/* Auth */
.auth { display: grid; place-items: center; padding: 56px 20px; background: var(--mist); }
.auth-card { background: var(--paper); border: 1px solid var(--rule); border-top: 6px solid var(--tag); border-radius: var(--radius); padding: 30px; width: 100%; max-width: 440px; }
.auth-card h1 { font-size: 2.1rem; }
.form-error { background: var(--bad-bg); color: var(--bad); padding: 10px 12px; border-radius: var(--radius); font-weight: 600; }

/* Forms */
label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; font-weight: 600; font-size: .9rem; margin-bottom: 12px; }
label > input:not([type=checkbox]):not([type=radio]), label > select, label > textarea, label > .hint, label > .field-error { flex-basis: 100%; }
label > .req { margin-left: -1px; }
input, select, textarea { font: inherit; font-weight: 400; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1.5px solid var(--rule); border-radius: var(--radius); padding: 9px 11px; width: 100%; min-height: 42px; }
input:focus, select:focus, textarea:focus { border-color: var(--pine); outline: 2px solid rgba(30, 91, 80, .2); }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; min-height: 0; accent-color: var(--pine); }
label.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; flex-wrap: wrap; }
label.check .hint { flex-basis: 100%; margin-left: 28px; }
.hint { font-weight: 400; font-size: .82rem; color: var(--muted); }
.grid-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; align-items: start; }
.grid-form .span2 { grid-column: 1 / -1; }
.grid-form .btn { justify-self: start; grid-column: 1 / -1; }
.inline-form { margin-top: 8px; }

/* ---------- Assistant ---------- */
.ask { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.ask-open { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 600; background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 11px 18px 11px 14px; box-shadow: 0 10px 24px -10px rgba(21,38,43,.6); cursor: pointer; }
.ask-open:hover { background: var(--pine-deep); }
.ask[data-where="app"] .ask-open { width: 48px; height: 48px; padding: 0; justify-content: center; }
.ask[data-where="app"] .ask-open span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ask[data-where="app"] .ask-open .ico { width: 22px; height: 22px; }
.ask-open[aria-expanded="true"] { display: none; }
.ask-panel { width: min(380px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 110px)); display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; box-shadow: 0 24px 50px -20px rgba(21,38,43,.55); overflow: hidden; }
.ask-panel[hidden] { display: none; }
.ask-head { flex: none; display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: var(--pine); color: #fff; }
.ask-close { background: none; border: 0; color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.ask-log { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.ask-msg { margin: 0; padding: 10px 12px; border-radius: 12px; max-width: 92%; font-size: .93rem; line-height: 1.45; }
.ask-bot { background: var(--mist); border-bottom-left-radius: 4px; align-self: flex-start; }
.ask-user { background: var(--pine); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.ask-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ask-links a { font-size: .85rem; font-weight: 600; background: var(--paper); border: 1px solid var(--rule); border-radius: 999px; padding: 3px 10px; text-decoration: none; }
.ask-suggest { display: flex; flex-wrap: wrap; gap: 6px; }
.ask-suggest button { font: inherit; font-size: .85rem; background: var(--paper); border: 1px solid var(--pine); color: var(--pine); border-radius: 999px; padding: 4px 10px; cursor: pointer; text-align: left; }
.ask-suggest button:hover { background: var(--pine-tint); }
.ask-form { flex: none; display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--rule-soft); }
.ask-form input { min-height: 38px; padding: 7px 10px; }
.ask-note { margin: 0; padding: 0 12px 10px; font-size: .75rem; color: var(--muted); }
.ask-typing { color: var(--muted); font-style: italic; }

/* ---------- App shell ---------- */
.app { background: var(--mist); }
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.side { background: var(--pine-deep); color: #dce9e5; padding: 18px 14px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand { color: #fff; padding: 2px 8px; font-size: 1.5rem; }
.fac-chip { background: rgba(255, 255, 255, .08); border-left: 4px solid var(--tag); border-radius: 4px; padding: 10px 12px; display: grid; gap: 2px; }
.fac-chip strong { color: #fff; font-size: .95rem; line-height: 1.3; }
.fac-chip span { font-size: .8rem; color: #b9d0c9; }
.side nav { display: grid; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 10px; color: #dce9e5; text-decoration: none; padding: 7px 10px; border-radius: 5px; font-weight: 500; font-size: .95rem; }
.side nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.side nav a[aria-current="page"] { background: var(--paper); color: var(--ink); }
.ico { width: 19px; height: 19px; flex: none; }
.side-extra { display: grid; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .14); }
.side-extra a { display: flex; align-items: center; gap: 10px; color: #a9c2bb; text-decoration: none; padding: 9px 10px; border-radius: 5px; font-weight: 500; font-size: .92rem; }
.side-extra a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.side-foot { margin-top: auto; display: grid; gap: 4px; padding: 10px 10px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.side-foot .small { color: #a9c2bb; overflow-wrap: anywhere; }
.side-foot .linklike { color: #fff; justify-self: start; }
.topbar { display: none; }
.main-col { min-width: 0; }
.app-main { padding: 28px 32px 96px; max-width: 1280px; }
.app h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.app h2 { font-family: var(--font); font-size: 1.1rem; }
.page-title { margin-bottom: 18px; }
.page-title h1 { margin-bottom: 4px; }
.page-title p { margin: 0; }
.row-between { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.flash { background: var(--ok-bg); border: 1px solid #b7d8c4; color: var(--ok); font-weight: 600; padding: 10px 14px; border-radius: var(--radius); margin-bottom: 18px; }
.flash-warn { background: var(--warn-bg); border-color: #edd58a; color: var(--warn); font-weight: 500; }
.panel { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 20px; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.panel-head h2 { margin: 0; }
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.dash-grid .span2 { grid-column: 1 / -1; }
.empty { color: var(--muted); margin: 6px 0; }
.locked { border-top: 6px solid var(--tag); }
.onboard { border-left: 6px solid var(--tag); }

.score-row { display: flex; gap: 20px; align-items: stretch; flex-wrap: wrap; margin-bottom: 20px; padding: 0; }
.score { flex: 1 1 340px; display: flex; gap: 18px; align-items: center; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px 22px; }
.score h2 { margin: 0 0 4px; }
.score p { margin: 0; }
.score-num { flex: none; white-space: nowrap; font-family: var(--display); font-weight: 700; font-size: 4.2rem; line-height: .9; }
.score-num span { font-size: 2rem; }
.score-good .score-num { color: var(--ok); } .score-warn .score-num { color: var(--warn); } .score-bad .score-num { color: var(--bad); }
.counts { flex: 1 1 420px; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.counts li { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 8px; align-content: space-between; justify-items: start; }
.counts strong { font-family: var(--display); font-size: 2.3rem; line-height: 1; }
.counts li { gap: 4px; border-top-width: 4px; }
.counts .c-label { font-weight: 700; font-size: .95rem; }
.counts .c-sub { font-size: .8rem; color: var(--muted); }
.counts .c-bad { border-top-color: var(--bad); } .counts .c-bad strong { color: var(--bad); }
.counts .c-warn { border-top-color: var(--tag-deep); }
.counts .c-ok { border-top-color: var(--ok); } .counts .c-ok strong { color: var(--ok); }
.progress { height: 8px; background: var(--rule-soft); border-radius: 99px; overflow: hidden; margin: 0 0 14px; }
.progress span { display: block; height: 100%; background: var(--ok); border-radius: 99px; }
.steps li.done { color: var(--muted); }
.ledger td .tag + .sub { margin-top: 4px; }
.btn-quiet { background: transparent !important; color: var(--pine) !important; border: 1px solid var(--rule) !important; }
.log-q { margin: 0 0 10px; display: grid; gap: 2px; }
.log-q span { font-size: .85rem; color: var(--muted); }
.lg-before { border: 2px solid rgba(21, 38, 43, .25); }
.lgi .lg { margin-right: 0; }
.lgi { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }

.tag { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 700; padding: 3px 9px 3px 7px; border-radius: 3px 10px 10px 3px; white-space: nowrap; line-height: 1.4; }
.tag-hole { display: none; }
.tag-ok { background: var(--ok-bg); color: var(--ok); }
.tag-due_soon { background: var(--warn-bg); color: var(--warn); }
.tag-overdue, .tag-missing { background: var(--bad-bg); color: var(--bad); }
.tag-open, .tag-not_yet { background: var(--open-bg); color: var(--open); }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; position: relative; }
.ledger { width: 100%; border-collapse: collapse; font-size: .92rem; }
.ledger caption { text-align: left; font-size: .85rem; color: var(--muted); padding-bottom: 6px; }
.ledger th { text-align: left; font-size: .8rem; font-weight: 700; color: var(--ink-2); border-bottom: 2px solid var(--ink); padding: 8px 10px 6px; white-space: nowrap; }
.ledger td { border-bottom: 1px solid var(--rule-soft); padding: 10px; vertical-align: top; }
.ledger tbody tr:nth-child(even) td { background: #f8fbfa; }
.ledger .num { text-align: right; font-variant-numeric: tabular-nums; }
.ledger .sub { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.ledger td.act { text-align: right; width: 1%; white-space: nowrap; }
.items tr.row-overdue td:first-child, .items tr.row-missing td:first-child { box-shadow: inset 4px 0 0 var(--bad); }
.items tr.row-due_soon td:first-child { box-shadow: inset 4px 0 0 var(--tag-deep); }
.qgrid th[scope="row"] { border-bottom: 1px solid var(--rule-soft); font-size: .9rem; color: var(--ink); }

.log-pop { position: relative; display: inline-block; text-align: left; }
.log-pop > summary { list-style: none; }
.log-pop > summary::-webkit-details-marker { display: none; }
.log-pop[open] > summary { background: var(--ink); border-color: var(--ink); }
.log-form { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; width: min(420px, 86vw); background: var(--paper); border: 1px solid var(--ink); border-radius: var(--radius); padding: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; box-shadow: 0 12px 30px -12px rgba(21, 38, 43, .5); white-space: normal; }
.log-form .span2 { grid-column: 1 / -1; }
.log-form .btn { grid-column: 1 / -1; justify-self: start; }

.upcoming { list-style: none; margin: 0; padding: 0; }
.upcoming li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule-soft); font-size: .92rem; }
.upcoming li > span { color: var(--ink-2); text-align: right; flex: none; max-width: 50%; }
.upcoming .sub { display: block; font-size: .8rem; color: var(--muted); }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { font: inherit; font-size: .88rem; font-weight: 600; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--rule); background: var(--paper); color: var(--ink-2); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--pine); border-color: var(--pine); color: #fff; }
.crumbs a { font-weight: 600; }
pre.msg { white-space: pre-wrap; font-family: var(--font); font-size: .85rem; background: var(--mist); padding: 10px; border-radius: 4px; margin: 8px 0 0; max-width: 60ch; }
details > summary { cursor: pointer; }

/* Charts */
.chart { margin: 0; position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: var(--rule-soft); stroke-width: 1; }
.chart .baseline { stroke: var(--rule); stroke-width: 1; }
.chart .axis { font-size: 11px; fill: var(--muted); font-family: var(--font); }
.chart .crosshair { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .hit:hover { fill: rgba(21, 38, 43, .04); }
.tip { position: absolute; top: 0; pointer-events: none; background: var(--ink); color: #fff; font-size: .8rem; font-weight: 600; padding: 5px 9px; border-radius: 4px; white-space: nowrap; transform: translate(-50%, -110%); }

/* Admin */
.kpis { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.kpis li { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 2px; align-content: start; }
.kpis span { font-size: .85rem; color: var(--ink-2); font-weight: 600; }
.kpis strong { font-family: var(--display); font-size: 2.2rem; line-height: 1.05; font-variant-numeric: tabular-nums; }
.kpis em { font-style: normal; font-size: .8rem; color: var(--muted); }
.funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.funnel li { display: grid; grid-template-columns: minmax(150px, 260px) 1fr 110px; gap: 12px; align-items: center; font-size: .92rem; }
.f-bar { height: 22px; background: var(--mist); border-radius: 4px; overflow: hidden; }
.f-bar span { display: block; height: 100%; background: var(--series-1); border-radius: 0 4px 4px 0; }
.f-n { font-weight: 700; font-variant-numeric: tabular-nums; }
.f-n em { font-style: normal; font-weight: 500; color: var(--muted); font-size: .82rem; }

/* Binder */
.binder .b-cover, .binder .b-sec { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; }
.b-cover { border-top: 8px solid var(--tag) !important; }
.b-toc { margin-top: 18px; }
.b-sec h3 { margin-top: 18px; }
.b-sec .ledger { margin-bottom: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; font: inherit; font-weight: 600; background: var(--paper); color: var(--ink); border: 1.5px solid var(--rule); border-radius: var(--radius); padding: 7px 12px; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px 20px 18px; flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--rule-soft); }
  .site-nav .btn { margin-top: 12px; }
  .hero { background: var(--paper); padding: 28px 0 48px; }
  .hero-grid, .two-col, .home-fit, .track, .price-split, .feature, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .track-flip .track-media, .feature-flip .feature-copy { order: 0; }
  .hero-tag { position: relative; left: auto; bottom: auto; width: auto; max-width: 360px; margin: -60px auto 0; }
  .hero-visual { padding-bottom: 0; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .plans { grid-template-columns: 1fr; max-width: 480px; }
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 272px; z-index: 45; transform: translateX(-100%); transition: transform .2s ease; }
  .side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .35); }
  .topbar { display: flex; align-items: center; gap: 14px; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 10px 16px; position: sticky; top: 0; z-index: 30; }
  .brand-top { font-size: 1.35rem; }
  .brand-top .logo-mark { width: 24px; height: 28px; }
  .menu-btn { font: inherit; font-weight: 600; background: var(--pine-deep); color: #fff; border: 0; border-radius: var(--radius); padding: 8px 12px; }
  .app-main { padding: 20px 16px 96px; }
  .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  section { padding: 48px 0; }
  .wrap { padding: 0 16px; }
  .brand { font-size: 1.4rem; }
  .logo-mark { width: 26px; height: 30px; }
  .cite-list { grid-template-columns: 1fr; }
  .cite-list li:nth-child(odd) { border-right: 0; }
  .cite-list li:nth-child(even) { padding-left: 0; }
  .fit-facts { grid-template-columns: 1fr; }
  .fit-facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); margin-top: 12px; }
  .grid-form, .log-form { grid-template-columns: 1fr; }
  .counts { grid-template-columns: 1fr; gap: 8px; }
  .counts li { padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; }
  .counts strong { font-size: 1.8rem; order: 2; }
  .counts .c-sub { display: none; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .funnel li { grid-template-columns: 1fr 80px; }
  .funnel .f-bar { grid-column: 1 / -1; grid-row: 2; }
  .punch { padding: 40px 14px 18px; }
  .punch-grid { gap: 10px 2px; }
  .pm-dot { width: 24px; height: 24px; }
  .hero-tag { margin-top: -40px; }
  .score-num { font-size: 3.4rem; }
  .log-form { position: static; width: auto; margin-top: 8px; }
  .ledger td.act { white-space: normal; }
  .items thead { display: none; }
  .items, .items tbody { display: block; }
  .items tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0 12px 10px; border-bottom: 1px solid var(--rule-soft); }
  .items td { border: 0; padding: 0; background: none !important; box-shadow: none !important; }
  .items td:first-child { grid-column: 1; grid-row: 1; }
  .items td:nth-child(2) { grid-column: 1 / -1; font-size: .85rem; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
  .items td:nth-child(2) .sub { margin: 0; }
  .items td.act { grid-column: 1 / -1; text-align: left; margin-top: 4px; width: auto; }
  .items .log-pop { display: block; }
  .items .log-form { grid-template-columns: 1fr; }
  .items tr.row-overdue, .items tr.row-missing { box-shadow: inset 4px 0 0 var(--bad); }
  .items tr.row-due_soon { box-shadow: inset 4px 0 0 var(--tag-deep); }
  .foot-grid { grid-template-columns: 1fr; }
  .closing-row { flex-direction: column; align-items: flex-start; }
  .ask { right: 12px; bottom: 12px; }
  .ask-open span { display: none; }
  .ask-open { padding: 13px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

@media print {
  body { background: #fff; font-size: 11pt; }
  .site-head, .site-foot, .no-print, .side, .topbar, .flash, .skip, .ask { display: none !important; }
  .shell { display: block; }
  .app-main { padding: 0; max-width: none; }
  .sheet, .binder .b-cover, .binder .b-sec { border: 0; padding: 0; }
  .b-sec { break-before: page; }
  .ledger th, .ledger td, .log-table th, .log-table td { border-color: #000 !important; }
  .ledger tbody tr:nth-child(even) td { background: none; }
  .tag { border: 1px solid #000; background: none !important; color: #000 !important; }
  .punch { box-shadow: none; transform: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .template-page, .guide { padding: 0; }
  .items td.act, .items th:last-child, .filter-row, .cta-row, .log-pop, form[data-confirm] { display: none !important; }
  .report { border: 0 !important; padding: 0 !important; }
  .report section { break-inside: auto; }
  a { color: #000; text-decoration: none; }
  @page { size: landscape; margin: 12mm; }
}

/* ---------- Required fields & errors ---------- */
.req { color: var(--bad); font-weight: 700; }
.field-error { color: var(--bad); font-size: .85rem; font-weight: 600; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--bad); background: #fff8f7; }
label.agree { font-size: .9rem; margin: 4px 0 16px; align-items: flex-start; }
label.agree input { margin-top: 3px; }
label.agree span { flex: 1; }
label.agree .field-error { flex-basis: 100%; margin-left: 28px; }

/* ---------- Strategy ---------- */
.goals { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 14px; }
.goals li { display: grid; grid-template-columns: 1fr 44px; gap: 4px 10px; align-items: center; }
.g-top { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 8px; font-size: .92rem; }
.g-top strong { font-variant-numeric: tabular-nums; }
.g-top em { font-style: normal; font-weight: 500; color: var(--muted); }
.g-track { height: 12px; background: var(--mist); border-radius: 0 4px 4px 0; }
.g-bar { display: block; height: 100%; background: var(--pine); border-radius: 0 4px 4px 0; }
.g-bar.g-done { background: var(--ok); }
.g-pct { font-size: .82rem; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.strat-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.strat-jump a { font-weight: 600; font-size: .9rem; background: var(--paper); border: 1px solid var(--rule); border-radius: 999px; padding: 5px 12px; text-decoration: none; }
.strat > p { margin-top: -4px; }
.strat-list { list-style: none; margin: 0; padding: 0; }
.strat-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule-soft); align-items: start; }
.strat-list li p { margin: 2px 0 4px; color: var(--ink-2); font-size: .92rem; max-width: 80ch; }
.strat-list li.is-done strong { text-decoration: line-through; color: var(--muted); }
.strat-list li.is-done p { color: var(--muted); }
.strat-check { width: 26px; height: 26px; border: 2px solid var(--pine); border-radius: 5px; background: var(--paper); color: #fff; font-weight: 700; cursor: pointer; display: grid; place-items: center; padding: 0; line-height: 1; }
.strat-check[aria-pressed="true"] { background: var(--pine); }
.strat-check:hover { background: var(--pine-tint); }
.strat-check[aria-pressed="true"]:hover { background: var(--pine-deep); }
.strat-add { margin-top: 12px; }
.strat-add > summary { font-weight: 600; color: var(--pine); }
.strat-add form { margin-top: 12px; }
.script { background: var(--mist); border-left: 4px solid var(--tag); padding: 12px 16px; border-radius: 0 var(--radius) var(--radius) 0; max-width: 80ch; }
.user-actions { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .88rem; }
.user-actions form { display: inline; }
.kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 640px) { .kpis-4 { grid-template-columns: 1fr 1fr; } .strat-list li { grid-template-columns: auto 1fr; } .strat-list li > form:last-child { grid-column: 2; } }

/* ---------- Mobile touch targets & overflow ---------- */
@media (max-width: 640px) {
  .btn-small { min-height: 42px; padding: 9px 14px; }
  .strat-check { width: 34px; height: 34px; }
  .binder .b-sec, .binder .b-cover { overflow-x: auto; padding: 18px; }
  .binder .ledger { min-width: 560px; }
  label.check { padding: 6px 0; }
  label.check input[type="checkbox"], label.agree input { width: 22px; height: 22px; }
  .qrow label { padding: 10px 16px 10px 12px; }
  .site-nav a:not(.btn) { padding: 14px 0; }
  .chip { padding: 9px 16px; }
}

/* Checkbox labels: box on the left, text (and hint) beside it */
label.check { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; row-gap: 2px; align-items: start; }
label.check > input { margin-top: 2px; }
label.check > .hint, label.check > .field-error { grid-column: 2; margin-left: 0; flex-basis: auto; }
label.agree { display: grid; grid-template-columns: auto 1fr; }
label.agree > span:not(.req) { grid-column: 2; }

/* Tablet & phone: keep photos from dominating single-column layouts */
@media (max-width: 900px) {
  .hero-photo, .fit-photo .photo, .track-media .photo, .aside-photo .photo { aspect-ratio: 16 / 10; }
  .contact-aside .photo { aspect-ratio: 16 / 10; }
  .hero-tag { max-width: 340px; }
  .track { padding: 20px 0; }
}
@media (max-width: 640px) {
  .hero-photo, .fit-photo .photo, .track-media .photo, .aside-photo .photo, .contact-aside .photo { aspect-ratio: 4 / 3; }
}

/* Billing options: monthly/yearly and discount code */
.billing-options { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: flex-start; }
.seg { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.seg legend { font-weight: 600; margin-bottom: 6px; width: 100%; }
.seg label { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--rule); border-radius: 999px; padding: 8px 14px; cursor: pointer; min-height: 42px; }
.seg label:has(input:checked) { border-color: var(--pine); background: var(--mist); font-weight: 600; }
.seg input { accent-color: var(--pine); margin: 0; }
.save-chip { background: var(--tag); color: var(--ink); border-radius: 999px; padding: 1px 8px; font-size: .78rem; font-weight: 700; }
.code-row { flex: 1 1 280px; max-width: 420px; }
.code-row > label { display: block; font-weight: 600; margin-bottom: 6px; }
.code-input { display: flex; gap: 8px; }
.code-input input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .04em; }
.code-msg { min-height: 1.4em; margin: 6px 0 0; font-size: .92rem; }
.code-msg.ok { color: var(--pine); font-weight: 600; }
.code-msg.err { color: #A3341F; }
.plan .price .was { color: var(--muted); font-weight: 500; font-size: .7em; margin-right: 4px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }
.plan .price span[data-amt] { font-size: inherit; color: inherit; font-weight: inherit; font-family: inherit; }

/* Other-state waitlist */
.other-state { margin-top: 18px; padding: 12px 14px; background: var(--mist); border-radius: 8px; font-size: .95rem; }
.auth-card select { width: 100%; }
.state-bars { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; max-width: 560px; }
.state-bars li { display: grid; grid-template-columns: 130px 1fr 32px; gap: 10px; align-items: center; }
.state-bar { height: 10px; background: var(--mist-2); border-radius: 6px; overflow: hidden; }
.state-bar i { display: block; height: 100%; background: var(--pine); border-radius: 6px; }

/* Feedback form */
.feedback-form fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.feedback-form legend { font-weight: 600; font-size: .92rem; margin-bottom: 8px; padding: 0; }
.fb-kinds { display: grid; gap: 8px; }
.fb-kind { display: flex; align-items: center; gap: 10px; border: 1px solid var(--rule); border-radius: var(--radius); padding: 10px 12px; cursor: pointer; font-weight: 500; margin: 0; }
.fb-kind:has(input:checked) { border-color: var(--pine); background: var(--ok-bg); }
.fb-kind input { margin: 0; width: auto; }
.fb-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fb-rating legend { width: 100%; }
.fb-rating label { margin: 0; }
.fb-rating input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fb-rating label span { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--rule); border-radius: 50%; font-weight: 700; cursor: pointer; }
.fb-rating input:checked + span { background: var(--pine); border-color: var(--pine); color: #fff; }
.fb-rating input:focus-visible + span { outline: 2px solid var(--pine); outline-offset: 2px; }
.feedback-form textarea { width: 100%; }
.panel.narrow { max-width: 640px; }
.fb-msg { max-width: 52ch; white-space: pre-wrap; }

/* Undo in the saved message */
.flash-undo { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.flash-undo form { margin: 0; }
.flash-undo .btn { background: #fff; }
/* Popover actions */
.log-actions { display: flex; gap: 8px; align-items: center; grid-column: 1 / -1; }
.log-form .log-actions .btn { grid-column: auto; }
/* Reports */
.report-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.report-card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.report-card h2 { margin: 0 0 4px; font-size: 1.1rem; }
.report-card p { margin: 0; max-width: 60ch; }
.report-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.report { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px; }
.report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; border-bottom: 3px solid var(--ink); padding-bottom: 14px; margin-bottom: 16px; }
.report-head h1 { margin: 0 0 4px; }
.report-head p { margin: 0; }
.report-score { text-align: center; border: 2px solid var(--ink); border-radius: var(--radius); padding: 8px 16px; }
.report-score strong { display: block; font-family: var(--display); font-size: 2.4rem; line-height: 1; }
.report-counts { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.report-counts strong { font-size: 1.15rem; }
.report section { padding: 0; margin: 0; }
.report section h2 { margin: 22px 0 8px; font-size: 1.1rem; }
@media (max-width: 640px) { .report { padding: 16px; } .report-head { flex-direction: column; } .report-card { padding: 14px; } }

/* Notification plan */
.notice-plan { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.notice-plan li { border: 1px solid var(--rule); border-radius: var(--radius); padding: 12px 14px; display: grid; gap: 4px; background: #f8fbfa; }
.notice-plan span { font-size: .88rem; color: var(--ink-2); }
/* Share links */
.share-form { display: grid; grid-template-columns: 2fr 1fr auto; gap: 12px; align-items: end; margin-bottom: 16px; }
.share-form label { margin: 0; }
.copy-row { display: flex; gap: 6px; align-items: center; min-width: 320px; }
.copy-row input { flex: 1; min-width: 0; font-size: .85rem; padding: 6px 8px; }
.share-table tr.is-off td { color: var(--muted); }
.share-body { background: var(--mist, #eef3f1); }
.share-head { background: var(--paper); border-bottom: 1px solid var(--rule); }
.share-head-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; flex-wrap: wrap; }
.share-main { padding: 24px 0 40px; }
.share-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; }
.share-bar p { margin: 0; }
.share-foot { padding: 20px 0 32px; color: var(--muted); }
label.check > span .hint { display: block; margin-top: 2px; }
@media (max-width: 640px) {
  .report .table-wrap { overflow: visible; }
  .report .ledger, .report .ledger tbody { display: block; }
  .report .ledger thead { display: none; }
  .report .ledger tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--rule-soft); }
  .report .ledger td { border: 0; padding: 0; background: none !important; }
  .report .ledger td:nth-child(1) { grid-column: 1; grid-row: 1; font-weight: 600; }
  .report .ledger td:nth-child(5) { grid-column: 2; grid-row: 1; }
  .report .ledger td:nth-child(2) { grid-column: 1 / -1; font-size: .8rem; color: var(--muted); }
  .report .ledger td:nth-child(3) { grid-column: 1 / -1; font-size: .85rem; }
  .report .ledger td:nth-child(3)::before { content: 'Last done: '; color: var(--muted); }
  .report .ledger td:nth-child(4) { grid-column: 1 / -1; font-size: .85rem; }
  .report-score { align-self: flex-start; }
  .share-head-row .small { display: none; }
}
@media (max-width: 640px) { .share-form { grid-template-columns: 1fr; } .copy-row { min-width: 0; flex-wrap: wrap; } .copy-row input { flex-basis: 100%; } }

/* Home: photo with a product card on top */
.photo-stack { position: relative; padding-bottom: 28px; }
.mock-mail { position: absolute; left: -14px; right: 18%; bottom: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; padding: 14px 16px; box-shadow: 0 18px 40px -18px rgba(21, 38, 43, .55); display: grid; gap: 4px; font-size: .88rem; }
.mock-mail .mm-head { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: .78rem; color: var(--muted); border-bottom: 1px solid var(--rule-soft); padding-bottom: 6px; margin-bottom: 4px; }
.mock-mail .mm-from { font-weight: 700; color: var(--ink-2); }
.mock-mail strong { font-size: 1rem; }
.mock-mail p { margin: 0; color: var(--ink-2); }
.mock-mail .mm-btn { justify-self: start; margin-top: 6px; background: var(--pine); color: #fff; border-radius: 5px; padding: 5px 12px; font-weight: 700; font-size: .82rem; }
.mock-report { width: 100%; max-width: 440px; background: var(--paper); border: 1px solid var(--rule); border-top: 6px solid var(--pine); border-radius: 10px; padding: 18px; display: grid; gap: 12px; box-shadow: 0 18px 40px -22px rgba(21, 38, 43, .5); }
.mock-report .mr-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.mock-report .mr-top div { display: grid; gap: 2px; }
.mock-report .mr-top span { font-size: .8rem; color: var(--muted); }
.mock-report .mr-score { font-family: var(--display); font-size: 2rem !important; color: var(--ok) !important; line-height: 1; font-weight: 700; }
.mock-report ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .88rem; }
.mock-report li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mock-report .mr-share { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: center; background: var(--mist); border-radius: 6px; padding: 8px 10px; font-size: .85rem; }
.mock-report .mr-share .ico { width: 18px; height: 18px; grid-row: span 2; color: var(--pine); }
.mock-report .mr-share em { font-style: normal; font-size: .78rem; color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.check-list li { padding-left: 26px; position: relative; color: var(--ink-2); }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); font-weight: 700; font-size: .75rem; display: grid; place-items: center; }
/* Home: everything grid */
.feature-grid { list-style: none; margin: 24px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.feature-grid li { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.feature-grid h3 { font-size: 1rem; margin: 0 0 4px; }
.feature-grid p { margin: 0 0 8px; font-size: .9rem; color: var(--ink-2); }
.fg-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--ok-bg); color: var(--pine); display: grid; place-items: center; }
.fg-icon .ico { width: 22px; height: 22px; }
.fg-plan { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; border-radius: 99px; padding: 2px 8px; }
.fg-free { background: var(--ok-bg); color: var(--ok); }
.fg-ess { background: var(--warn-bg); color: var(--warn); }
.fg-pro { background: var(--ink); color: #fff; }
@media (max-width: 640px) { .mock-mail { position: relative; left: 0; right: 0; margin-top: -40px; margin-left: 10px; margin-right: 10px; } .photo-stack { padding-bottom: 0; } }

/* Pricing by size, Founding 50, team */
.founding-box { display: flex; gap: 12px; align-items: flex-start; background: var(--ok-bg, #eaf5ee); border: 1px solid var(--rule); border-left: 5px solid var(--ok, #2f7d4f); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 14px; }
.founding-box svg { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 2px; }
.founding-box p { margin: 4px 0 0; }
.size-note { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2, #444); margin: 0 0 14px; }
.size-note svg { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 2px; }
.note-box { background: var(--mist); border: 1px solid var(--rule); border-radius: var(--radius); padding: 12px 14px; }
.fac-switch { display: grid; gap: 4px; margin: 0 0 12px; }
.fac-switch select { width: 100%; }
.size-toggle { display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; padding: 4px; background: var(--paper); gap: 4px; justify-content: center; max-width: 100%; }
@media (max-width: 420px) { .size-toggle label { padding: 8px 11px; font-size: .9rem; } }
.size-toggle label { padding: 8px 14px; border-radius: 999px; cursor: pointer; font-weight: 600; }
.size-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.size-toggle label:has(input:checked) { background: var(--ink, #1d2b36); color: #fff; }
.size-toggle label:has(input:focus-visible) { outline: 2px solid var(--tag); outline-offset: 2px; }
.founding-banner { text-align: center; background: var(--paper); border: 2px dashed var(--tag); border-radius: var(--radius); padding: 14px 18px; margin: 18px auto; max-width: 760px; }
.founding-banner strong { font-size: 1.1rem; }
.size-table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.size-table th, .size-table td { border-bottom: 1px solid var(--rule); padding: 10px 8px; text-align: left; }
.size-table td.num, .size-table th.num { text-align: right; white-space: nowrap; }
@media (max-width: 640px) { .size-table th, .size-table td { padding: 8px 4px; font-size: .92rem; } }
.pricing-root .size-pick { border: 0; padding: 0; margin: 0 0 18px; text-align: center; }
.pricing-root .p-large { display: none; }
.pricing-root:has(#sz-large:checked) .p-large { display: block; }
.pricing-root:has(#sz-large:checked) .p-small { display: none; }
.narrow-box { max-width: 760px; margin: 32px auto 0; }

/* ---- Sidebar groups ---- */
.side .nav-group { margin: 14px 12px 4px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); }

/* ---- Plans: four columns ---- */
.plans-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.plans-4 .plan { padding: 20px 18px; }
@media (max-width: 1200px) { .plans-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .plans-4 { grid-template-columns: 1fr; } }
.multi-note { color: var(--ok); font-weight: 600; margin: 4px 0 0; }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.two-up h2 { margin-top: 0; }
@media (max-width: 760px) { .two-up { grid-template-columns: 1fr; } }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-form input[type=number] { width: 90px; }
.inline-form input[type=date] { width: auto; }
.inline-filter { display: flex; gap: 8px; align-items: center; }
.role-help { margin: 10px 0 0; padding-left: 18px; color: var(--ink-2); font-size: .9rem; }
.role-help li { margin: 2px 0; }

/* ---- To-do tasks ---- */
.task-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.task-list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 4px; border-bottom: 1px solid var(--rule-soft); }
.task-list li:last-child { border-bottom: 0; }
.task-list form { margin: 0; }
.task-check { width: 26px; height: 26px; border-radius: 6px; border: 2px solid var(--pine); background: var(--paper); cursor: pointer; display: grid; place-items: center; padding: 0; color: #fff; flex: 0 0 26px; }
.task-check:hover { background: var(--pine-tint); }
.task-check svg { width: 18px; height: 18px; }
.task-done .task-check { background: var(--pine); }
.task-done strong { text-decoration: line-through; color: var(--muted); }
.task-late .sub { color: var(--bad); font-weight: 600; }
.task-list .sub, .fix-list .sub, .home-card .sub { display: block; font-size: .85rem; color: var(--muted); }

/* ---- Mock survey ---- */
.mock-progress { position: sticky; top: 0; z-index: 3; background: var(--paper); border: 1px solid var(--rule); border-radius: 999px; padding: 6px 14px; display: inline-block; margin: 0 0 12px; }
.mock-sec h2 { margin-top: 0; }
.mock-q { border: 0; border-top: 1px solid var(--rule-soft); margin: 0; padding: 14px 0; }
.mock-q:first-of-type { border-top: 0; }
.mock-q legend { font-weight: 600; padding: 0; margin-bottom: 8px; float: left; width: 100%; }
.mock-q legend + * { clear: both; }
.mock-hint { margin: 0 0 8px; font-size: .88rem; padding: 6px 10px; border-radius: 4px; clear: both; }
.mock-hint.is-ok { background: var(--ok-bg); color: var(--ok); }
.mock-hint.is-bad { background: var(--bad-bg); color: var(--bad); }
.mock-opts { display: flex; flex-wrap: wrap; gap: 8px; clear: both; }
.mock-opts label { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--rule); border-radius: 999px; padding: 8px 16px; cursor: pointer; font-weight: 600; min-height: 44px; }
.mock-opts label:has(input:checked) { background: var(--pine); color: #fff; border-color: var(--pine); }
.mock-opts label:has(input[value=no]:checked) { background: var(--bad); border-color: var(--bad); }
.mock-opts input { accent-color: var(--pine); }
.mock-note { display: block; margin-top: 8px; font-size: .85rem; color: var(--muted); }
.mock-note input { display: block; width: 100%; margin-top: 4px; }
.mock-actions { position: sticky; bottom: 0; background: var(--mist); padding: 12px 0; display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; z-index: 3; }
.mock-score { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.mock-big { font-family: var(--display); font-size: 4rem; font-weight: 700; line-height: 1; color: var(--pine); }
.mock-score p { margin: 0 0 6px; }
.fix-list { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.mock-cta { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; border-left: 5px solid var(--tag); }
.mock-cta h2 { margin: 0 0 4px; }
.mock-cta p { margin: 0; }

/* ---- Plan of correction ---- */
.poc-due { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; border-left: 6px solid var(--pine); }
.poc-due.is-soon { border-left-color: var(--tag-deep); background: var(--warn-bg); }
.poc-due.is-late { border-left-color: var(--bad); background: var(--bad-bg); }
.poc-due.is-done { border-left-color: var(--ok); }
.poc-actions, .poc-item-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.poc-item.is-done { opacity: .85; }
.poc-dl { display: grid; grid-template-columns: minmax(160px, 30%) 1fr; gap: 6px 16px; margin: 12px 0; }
.poc-dl dt { font-weight: 600; color: var(--ink-2); font-size: .9rem; }
.poc-dl dd { margin: 0; white-space: pre-wrap; }
@media (max-width: 640px) { .poc-dl { grid-template-columns: 1fr; } .poc-dl dd { margin-bottom: 8px; } }
.poc-form { display: grid; gap: 10px; margin: 10px 0; }
.poc-form label { display: grid; gap: 4px; font-weight: 600; font-size: .92rem; }
.poc-form textarea { width: 100%; font: inherit; }
.poc-item details summary { cursor: pointer; margin: 6px 0; }
.poc-print h2 { font-size: 1.2rem; margin-top: 22px; }
.poc-print h3 { font-size: .95rem; margin: 10px 0 2px; }
.poc-print p { margin: 0 0 6px; white-space: pre-wrap; }
.poc-p { break-inside: avoid; border-top: 1px solid var(--rule); padding-top: 6px; }

/* ---- Homes ---- */
.home-cards { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.home-card { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; align-items: start; margin: 0; }
.home-card form { grid-column: 1 / -1; margin: 0; }
.home-card h2 { margin: 0; font-size: 1.15rem; }
.home-card p { margin: 2px 0; }
.home-score { font-family: var(--display); font-weight: 700; font-size: 2.2rem; line-height: 1; padding: 10px 12px; border-radius: 8px; min-width: 84px; text-align: center; }
.home-score.is-ok { background: var(--ok-bg); color: var(--ok); }
.home-score.is-soon { background: var(--warn-bg); color: var(--warn); }
.home-score.is-bad { background: var(--bad-bg); color: var(--bad); }
.t-ok { color: var(--ok); } .t-bad { color: var(--bad); }

/* ---- Staff phone upload page ---- */
.staff-up h2.h3 { font-size: 1.1rem; margin: 18px 0 8px; }
.mini-status { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.mini-status li { display: flex; justify-content: space-between; gap: 10px; align-items: center; border-bottom: 1px solid var(--rule-soft); padding: 6px 0; font-size: .92rem; }
.form-grid.stack { grid-template-columns: 1fr; }
.staff-up input, .staff-up select { width: 100%; }
.plan-who { margin: -4px 0 8px; font-size: .85rem; font-weight: 600; color: var(--pine); }
.addons { margin: 28px auto 0; max-width: 1000px; }
.addons h2 { font-size: 1.4rem; }
.addon-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.addon-list li { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 4px; }
.addon-list span { color: var(--ink-2); font-size: .92rem; }
@media (max-width: 760px) { .addon-list { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .mock-actions { padding-right: 64px; } .mock-actions .btn { flex: 1 1 auto; } }

/* Keep managed signup verification visible on phones. */
.security-verification { min-width: 0; margin: 18px 0; }
.signup-confirm { margin-top: 16px; padding: 14px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--pine-tint); }
.signup-confirm p { margin: 0 0 10px; }
.signup-confirm [data-signup-status] { margin: 10px 0 0; }
.signup-confirm button:disabled, [data-signup-submit]:disabled { opacity: .55; cursor: not-allowed; }
.signup-confirm button:focus-visible { outline: 3px solid var(--pine); outline-offset: 3px; }
.security-verification .cf-turnstile { max-width: 100%; }
@media (max-width: 460px) { .auth { padding: 32px 8px; } .auth-card { padding: 16px 8px; } }
@media (max-width: 360px) { .auth { padding-inline: 0; } }

/* Honor conditional fields even where form labels have an explicit display. */
.grid-form [hidden] { display: none !important; }
.training-fields { border: 0; padding: 0; margin: 0; min-width: 0; }

.signup-code { display: block; padding: 14px; margin: 12px 0; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); color: var(--pine); font-size: 1.65rem; font-weight: 700; letter-spacing: .22em; text-align: center; }
.signup-confirm input[data-signup-answer] { width: 100%; min-height: 48px; font-size: 1.15rem; letter-spacing: .15em; }
.signup-clear { margin: 8px 0; font-size: .875rem; }
.signup-code { filter: blur(1.8px); transform: rotate(-2deg) skewX(-6deg); background-image: repeating-linear-gradient(12deg, transparent 0 14px, rgba(30,91,80,.12) 15px 16px, transparent 17px 28px); }
.signup-clear:has(input:checked) + .signup-code { filter: none; transform: none; background-image: none; }
.signup-code { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.signup-confirm input[data-signup-answer] { text-transform: uppercase; }

/* Facility setup and sample workspace reuse the existing layout and tokens. */
.setup-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.setup-fields > .grid-form { width: 100%; }
.setup-banner, .sample-banner { margin-bottom: 1.25rem; }
.sample-banner p { margin: .4rem 0 0; }

/* ---- Product-first home (Oct 14) ---- */
.hero-product { background: linear-gradient(180deg, var(--pine-tint) 0%, var(--paper) 78%); padding: 56px 0 64px; }
.hero-product h1 { max-width: 17ch; }
.app-shot { margin: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; box-shadow: 0 24px 48px -18px rgba(21, 38, 43, .28), 0 2px 6px rgba(21, 38, 43, .06); overflow: hidden; font-size: .9rem; }
.as-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--mist); border-bottom: 1px solid var(--rule); }
.as-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--rule); }
.as-bar em { margin-left: 10px; font-style: normal; font-size: .75rem; color: var(--muted); background: var(--paper); border-radius: 999px; padding: 2px 12px; }
.as-body { padding: 16px; display: grid; gap: 12px; }
.as-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.as-fac { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); }
.as-fac svg { width: 18px; height: 18px; color: var(--pine); }
.as-muted { color: var(--muted); font-size: .8rem; }
.as-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.as-kpis div { border-radius: 8px; padding: 10px 12px; display: grid; gap: 2px; }
.as-kpis b { font-family: var(--display); font-size: 1.8rem; line-height: 1; }
.as-kpis span { font-size: .78rem; font-weight: 600; }
.k-bad { background: var(--bad-bg); color: var(--bad); } .k-warn { background: var(--warn-bg); color: var(--warn); } .k-ok { background: var(--ok-bg); color: var(--ok); }
.as-h { margin: 2px 0 -4px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.as-list, .as-flow, .as-homes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.as-list li, .as-homes li { display: flex; gap: 10px; align-items: center; justify-content: space-between; border: 1px solid var(--rule-soft); border-radius: 8px; padding: 8px 10px; }
.as-list li { justify-content: flex-start; }
.as-list li .tag, .as-homes .tag, .as-flow .tag, .as-table .tag { flex: 0 0 auto; font-size: .72rem; }
.as-list strong, .as-flow strong, .as-homes strong { display: block; font-size: .88rem; line-height: 1.3; }
.as-list em, .as-flow em, .as-homes em { display: block; font-style: normal; font-size: .76rem; color: var(--muted); }
.as-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--rule-soft); padding-top: 10px; }
.as-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--pine); color: #fff; border-radius: 6px; padding: 6px 12px; font-weight: 600; font-size: .82rem; }
.as-btn svg { width: 16px; height: 16px; }
.as-flow li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; border: 1px solid var(--rule-soft); border-radius: 8px; padding: 10px; position: relative; }
.as-step { width: 26px; height: 26px; border-radius: 50%; background: var(--pine); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .8rem; }
.as-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.as-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--rule); }
.as-table td { padding: 9px 8px; border-bottom: 1px solid var(--rule-soft); }
.shot-cap { margin: 10px 0 0; font-size: .78rem; color: var(--muted); text-align: center; }
.trust-bar { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--paper); padding: 16px 0; }
.trust-bar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; }
.trust-bar li { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.trust-bar svg { width: 18px; height: 18px; color: var(--pine); flex: 0 0 18px; }
.product-rows .wrap { display: grid; gap: 64px; }
.prow { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.prow-flip .prow-copy { order: 2; }
.prow h2 { margin-top: 0; }
.prow p { color: var(--ink-2); }
.cat-grid { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.cat-grid li { background: var(--paper); border: 1px solid var(--rule); border-left: 4px solid var(--pine); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 4px; }
.cat-grid span { color: var(--ink-2); font-size: .9rem; }
.state-band { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.state-chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.state-chips a { display: grid; gap: 2px; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: 12px; text-decoration: none; color: var(--ink); }
.state-chips a:hover { border-color: var(--pine); }
.state-chips strong { font-family: var(--display); font-size: 1.5rem; line-height: 1; color: var(--pine); }
.state-chips span { font-size: .85rem; font-weight: 600; }
.state-chips em { font-style: normal; font-size: .75rem; color: var(--muted); }
.steps-row { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps-row li { border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px; background: var(--paper); }
.steps-row span { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--pine); color: #fff; font-weight: 700; margin-bottom: 8px; }
.steps-row strong { display: block; font-size: 1.05rem; }
.steps-row p { margin: 4px 0 0; color: var(--ink-2); font-size: .92rem; }
@media (max-width: 900px) {
  .prow, .state-band { grid-template-columns: 1fr; gap: 24px; }
  .prow-flip .prow-copy { order: 0; }
  .steps-row { grid-template-columns: 1fr; }
  .state-chips { grid-template-columns: repeat(2, 1fr); }
  .hero-product { padding: 32px 0 40px; }
}
@media (max-width: 420px) { .as-kpis b { font-size: 1.4rem; } .as-body { padding: 12px; } .as-table th:nth-child(4), .as-table td:nth-child(4) { display: none; } }
.res-links { padding-top: 0; }
.res-tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.res-tiles a { display: grid; gap: 2px; border: 1px solid var(--rule); border-radius: var(--radius); padding: 12px 14px; text-decoration: none; color: var(--ink); background: var(--paper); }
.res-tiles a:hover { border-color: var(--pine); }
.res-tiles span { font-size: .88rem; color: var(--muted); }
@media (max-width: 640px) { .res-tiles { grid-template-columns: 1fr; } }

/* ---- Facility dashboard (Oct 14) ---- */
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.dash-head h1 { margin-bottom: 4px; }
.kpi-row { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi-row li { border-radius: 10px; padding: 14px 16px; display: grid; gap: 2px; border: 1px solid transparent; }
.kpi-row b { font-family: var(--display); font-size: 2.2rem; line-height: 1; }
.kpi-row span { font-size: .85rem; font-weight: 600; }
.kpi-row .k-neutral { background: var(--paper); border-color: var(--rule); color: var(--ink); }
.dash-two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
.dash-two .panel { margin: 0; }
.att-list, .area-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.att-list a, .area-list a { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--rule-soft); border-radius: 8px; text-decoration: none; color: var(--ink); }
.att-list a:hover, .area-list a:hover { border-color: var(--pine); background: var(--pine-tint); }
.att-list svg, .area-list svg { width: 20px; height: 20px; color: var(--pine); }
.att-list strong, .area-list strong { display: block; font-size: .95rem; }
.att-list em, .area-list em { display: block; font-style: normal; font-size: .8rem; color: var(--muted); }
.area-go { color: var(--muted); font-size: 1.2rem; }
.dash-res { margin-top: 16px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.dash-res h2 { margin: 0 0 4px; font-size: 1.1rem; }
.dash-res p { margin: 0; max-width: 62ch; }
@media (max-width: 900px) { .dash-two { grid-template-columns: 1fr; } .kpi-row { grid-template-columns: repeat(2, 1fr); } }

/* ---- Clinical theme (Oct 14): blue, green, white; Plex for headings, Plex Mono for readouts ---- */
body { background: var(--paper); color: var(--ink); }
h1 { font-weight: 600; letter-spacing: -0.02em; font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-weight: 600; letter-spacing: -0.015em; font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
h3 { font-family: var(--display); font-weight: 600; }
.hero h1, .hero-product h1 { font-size: clamp(2.2rem, 4.4vw, 3.3rem); max-width: 18ch; }
.brand { font-weight: 600; letter-spacing: -0.01em; }
.kicker { font-family: var(--mono); font-weight: 500; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--pine); }
/* Numbers read like an instrument display */
.as-kpis b, .kpi-row b, .counts strong, .kpis strong, .score-num, .home-score, .mock-big, .report-score strong, .plan .price, .ms-num, .quiz-result .big, .state-chips strong, .fit-facts dt {
  font-family: var(--mono); font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.plan .price { font-size: 2.4rem; }
.as-list em, .as-flow em, .as-homes em, .att-list em, .area-list em, .as-table td:nth-child(3), .ledger td, .as-bar em, .state-chips em, .shot-cap { font-variant-numeric: tabular-nums; }
.as-bar em, .shot-cap, .state-chips em { font-family: var(--mono); }
.btn { border-radius: 8px; font-weight: 600; }
.panel, .feature-grid li, .cat-grid li, .steps-row li, .state-chips a, .app-shot { box-shadow: 0 1px 2px rgba(21, 38, 43, .05); }
.tag { border-radius: 999px; padding: 3px 10px; font-weight: 600; letter-spacing: .01em; }
.tag-hole { display: none; }
/* Status lights: a small dot before each status tag, like an indicator on a device */
.tag-ok::before, .tag-due_soon::before, .tag-overdue::before, .tag-missing::before, .tag-open::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; margin-right: 2px; }
.hero-product { background: linear-gradient(180deg, var(--pine-tint) 0%, var(--paper) 80%); }
.site-head { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(6px); border-bottom: 1px solid var(--rule-soft); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--pine); }
.closing { background: var(--pine); }
.cat-grid li { border-left-color: var(--tag); }
.trust-bar svg, .feature-grid .fg-icon svg { color: var(--tag); }
.fg-icon { background: var(--pine-tint); color: var(--pine); border-radius: 10px; }
.side { background: var(--pine-deep); }
.side nav a[aria-current="page"] { background: #fff; color: var(--ink); box-shadow: inset 3px 0 0 var(--tag); }
.fac-chip { border-left-color: var(--tag); }
.k-neutral b, .kpi-row .k-neutral b { color: var(--pine); }
/* Signature: the facility's pulse, a vital-signs trace under the hero headline */
.pulse { display: block; width: min(320px, 80%); height: 34px; margin: 4px 0 18px; color: var(--tag); overflow: visible; }
.pulse path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 640; stroke-dashoffset: 0; }
.pulse .pulse-base { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 3 5; }
@media (prefers-reduced-motion: no-preference) {
  .pulse path.pulse-trace { animation: pulse-draw 1.6s cubic-bezier(.6, 0, .2, 1) .2s both; }
  @keyframes pulse-draw { from { stroke-dashoffset: 640; } to { stroke-dashoffset: 0; } }
}

/* ---- Plain home (Oct 14, pass 3): real screenshots, no decoration ---- */
.kicker { font-family: var(--font); font-weight: 600; font-size: .9rem; letter-spacing: 0; text-transform: none; color: var(--pine); }
.hero-plain { padding: 56px 0 40px; background: var(--paper); border-bottom: 1px solid var(--rule-soft); }
.hero-split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: center; }
.hero-plain h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); max-width: 14ch; margin-bottom: 14px; }
.hero-plain .lede { font-size: 1.1rem; max-width: 48ch; }
.screen-fig { margin: 0; }
.screen { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 10px; box-shadow: 0 18px 40px -24px rgba(21, 38, 43, .35); background: var(--mist); }
.screen-fig figcaption { margin-top: 10px; font-size: .88rem; color: var(--muted); }
.screen-fig figcaption strong { color: var(--ink); }
.facts { background: var(--mist); border-bottom: 1px solid var(--rule-soft); padding: 12px 0; }
.facts p { margin: 0; text-align: center; font-size: .9rem; color: var(--ink-2); }
.narrowish { max-width: 880px; }
.track-list { margin: 22px 0 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.track-list div { padding: 16px 0; border-top: 1px solid var(--rule); }
.track-list dt { font-family: var(--display); font-weight: 600; font-size: 1.08rem; margin-bottom: 4px; }
.track-list dd { margin: 0; color: var(--ink-2); }
.screens-two { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.why p { font-size: 1.08rem; color: var(--ink-2); max-width: 62ch; }
.state-line { font-size: 1rem; line-height: 2; }
@media (max-width: 900px) {
  .hero-split, .screens-two, .track-list { grid-template-columns: 1fr; }
  .hero-plain { padding: 32px 0 28px; }
}
.hero-split { grid-template-columns: 1fr; gap: 36px; }
.hero-plain .hero-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 48px; align-items: end; }
.hero-plain .hero-copy h1 { grid-row: span 3; max-width: 13ch; margin: 0; }
.hero-plain .hero-copy .lede, .hero-plain .hero-copy .cta-row, .hero-plain .hero-copy .small { margin: 0; }
.screens-two { grid-template-columns: 1fr; gap: 40px; max-width: 1000px; margin: 0 auto; }
.closing { background: var(--pine); }
@media (max-width: 900px) { .hero-plain .hero-copy { grid-template-columns: 1fr; } .hero-plain .hero-copy h1 { grid-row: auto; } }

.screen-fig picture{display:block}
@media (max-width:640px){.hero-copy h1{margin-bottom:14px}}
.big-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:48px;align-items:center}
.big-split h2{margin-bottom:10px}
.big-list{margin:20px 0 24px;display:grid;gap:14px}
.big-list div{padding-left:14px;border-left:3px solid var(--tag)}
.big-list dt{font-weight:600;color:var(--ink)}
.big-list dd{margin:2px 0 0;color:var(--ink-2)}
@media (max-width:900px){.big-split{grid-template-columns:1fr;gap:28px}}

/* ---- The logo tick, used for every check mark ---- */
:root { --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='9.4 20.4 21.4 16.6'%3E%3Cpath d='M11.6 29.2l5.6 5.6 8-8.55' fill='none' stroke='%231E5B50' stroke-width='4.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M25.2 26.25L28.6 22.6' fill='none' stroke='%23E8731C' stroke-width='4.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.ticks li::before { top: 9px; left: 0; width: 17px; height: 13px; border: 0; transform: none; background: var(--tick) center / contain no-repeat; }
.check-list li::before { content: ''; top: 4px; width: 18px; height: 14px; border-radius: 0; background: var(--tick) center / contain no-repeat; }
.has-tick::before { content: ''; display: inline-block; width: 1.05em; height: .82em; margin-right: 6px; vertical-align: -.08em; background: var(--tick) center / contain no-repeat; }
.tick-mark { display: inline-block; width: 1.05em; height: .82em; vertical-align: -.08em; overflow: visible; }
.home-score .tick-mark { width: .95em; height: .74em; vertical-align: -.02em; }

/* ---- Full-width layout: use the screen on laptops and large monitors, tight gutters on phones ---- */
.wrap { max-width: 1760px; padding: 0 clamp(16px, 3.2vw, 56px); }
.narrowish { max-width: 1760px; }
.app-main { max-width: none; padding: 28px clamp(16px, 2.6vw, 44px) 96px; }
.screens-two { max-width: 1760px; }
@media (min-width: 1100px) {
  .track-list { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; }
  .screens-two { grid-template-columns: 1fr 1fr; align-items: start; }
  .why p { max-width: 75ch; }
  .addons { max-width: none; }
}
@media (min-width: 1700px) { html { font-size: 17px; } }
@media (max-width: 640px) { .app-main { padding: 18px 14px 88px; } }
@media (min-width: 1400px) { .hero-plain h1, .hero-copy h1 { font-size: clamp(3rem, 3.4vw, 4rem); } }
/* Wide screens: copy on the left, product on the right, so the screenshot never outshouts the headline */
@media (min-width: 1280px) {
  .hero-plain .hero-split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 4vw, 80px); align-items: center; }
  .hero-plain .hero-copy { grid-template-columns: 1fr; gap: 0; }
  .hero-plain .hero-copy h1 { font-size: clamp(2.8rem, 3.6vw, 4.1rem); margin-bottom: .35em; }
  .hero-plain .hero-copy .lede { max-width: 46ch; font-size: 1.12rem; }
}
@media (min-width: 1280px) { .hero-plain .hero-copy .cta-row { margin: 26px 0 14px; } .hero-plain .hero-copy .lede { margin-bottom: 0; } }

/* ---- Live icons and logo (motion only when the visitor allows it) ---- */
.ico * { transform-box: fill-box; }
@media (prefers-reduced-motion: no-preference) {
  /* Logo: the tag swings from its hole, the tick draws, the orange tip lands last */
  .logo-mark { transform-origin: 50% 28%; animation: tag-swing 1.1s cubic-bezier(.3, 1.6, .5, 1) .15s both; }
  .logo-mark .lm-tick { stroke-dasharray: 1; animation: draw .55s ease-out .35s both; }
  .logo-mark .lm-tip { stroke-dasharray: 1; animation: draw .25s ease-out .85s both; }
  .brand:hover .logo-mark { animation: tag-swing .9s cubic-bezier(.3, 1.6, .5, 1); }
  .brand:hover .logo-mark .lm-tick { animation: draw .5s ease-out; }
  .brand:hover .logo-mark .lm-tip { animation: draw .25s ease-out .45s both; }
  @keyframes tag-swing { 0% { transform: rotate(-9deg); } 35% { transform: rotate(6deg); } 65% { transform: rotate(-3deg); } 100% { transform: rotate(0); } }
  @keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

  /* Each icon has its own small motion; it plays on hover and once for the page you are on */
  :is(.side nav a:hover, .side nav a[aria-current="page"], .side-extra a:hover, .att-list a:hover, .area-list a:hover, .feature-grid li:hover, .site-nav a:hover) .ico,
  .att-list li .ico, .area-list li .ico { --play: running; }
  :is(.side nav a:hover, .side-extra a:hover, .att-list a:hover, .area-list a:hover, .feature-grid li:hover) .ico-gear,
  .side nav a[aria-current="page"] .ico-gear { animation: spin-q .8s cubic-bezier(.4, 1.4, .5, 1); }
  :is(.side nav a:hover, .att-list a:hover, .area-list a:hover, .feature-grid li:hover) .ico-flag,
  .side nav a[aria-current="page"] .ico-flag { transform-origin: 20% 90%; animation: wave .8s ease-in-out; }
  :is(.side nav a:hover, .att-list a:hover, .area-list a:hover, .feature-grid li:hover) .ico-flame,
  .side nav a[aria-current="page"] .ico-flame { transform-origin: 50% 100%; animation: flicker .9s ease-in-out; }
  :is(.side nav a:hover, .att-list a:hover, .area-list a:hover, .feature-grid li:hover) .ico-people .p2,
  .side nav a[aria-current="page"] .ico-people .p2 { animation: hop .6s ease-out; }
  :is(.side nav a:hover, .att-list a:hover, .area-list a:hover, .feature-grid li:hover) .ico-people .hd,
  .side nav a[aria-current="page"] .ico-people .hd { animation: hop .6s ease-out .12s; }
  :is(.side nav a:hover, .feature-grid li:hover) .ico-grid rect, .side nav a[aria-current="page"] .ico-grid rect { transform-origin: center; animation: pop .45s ease-out both; }
  :is(.side nav a:hover, .feature-grid li:hover) .ico-grid rect:nth-child(2), .side nav a[aria-current="page"] .ico-grid rect:nth-child(2) { animation-delay: .07s; }
  :is(.side nav a:hover, .feature-grid li:hover) .ico-grid rect:nth-child(3), .side nav a[aria-current="page"] .ico-grid rect:nth-child(3) { animation-delay: .14s; }
  :is(.side nav a:hover, .feature-grid li:hover) .ico-grid rect:nth-child(4), .side nav a[aria-current="page"] .ico-grid rect:nth-child(4) { animation-delay: .21s; }
  :is(.side nav a:hover, .feature-grid li:hover, .area-list a:hover) :is(.ico-list, .ico-binder, .ico-card) .ln,
  .side nav a[aria-current="page"] :is(.ico-list, .ico-binder, .ico-card) .ln { stroke-dasharray: 1; animation: draw .4s ease-out both; }
  :is(.side nav a:hover, .feature-grid li:hover) .ico-list .ln:nth-child(2), .side nav a[aria-current="page"] .ico-list .ln:nth-child(2) { animation-delay: .08s; }
  :is(.side nav a:hover, .feature-grid li:hover) .ico-list .ln:nth-child(3), .side nav a[aria-current="page"] .ico-list .ln:nth-child(3) { animation-delay: .16s; }
  :is(.side nav a:hover, .feature-grid li:hover) .ico-chart .bar, .side nav a[aria-current="page"] .ico-chart .bar { transform-origin: 50% 100%; animation: grow .5s cubic-bezier(.3, 1.4, .5, 1) both; }
  :is(.side nav a:hover, .feature-grid li:hover) .ico-chart .bar:nth-child(2), .side nav a[aria-current="page"] .ico-chart .bar:nth-child(2) { animation-delay: .08s; }
  :is(.side nav a:hover, .feature-grid li:hover) .ico-chart .bar:nth-child(3), .side nav a[aria-current="page"] .ico-chart .bar:nth-child(3) { animation-delay: .16s; }
  :is(.side nav a:hover, .side-extra a:hover) .ico-clock .hands, .side nav a[aria-current="page"] .ico-clock .hands { transform-origin: 0% 69%; animation: spin-full .9s ease-in-out; }
  :is(.side nav a:hover, .feature-grid li:hover) .ico-key, .side nav a[aria-current="page"] .ico-key { animation: turn .6s ease-in-out; }
  :is(.side nav a:hover, .feature-grid li:hover) .ico-layers .top, .side nav a[aria-current="page"] .ico-layers .top { animation: lift .55s ease-out; }
  :is(.side nav a:hover, .feature-grid li:hover, .area-list a:hover) .ico-file .fold, .side nav a[aria-current="page"] .ico-file .fold { transform-origin: 100% 0%; animation: flip .5s ease-out; }
  :is(.side nav a:hover, .side-extra a:hover) .ico-home, .side nav a[aria-current="page"] .ico-home { animation: hop .5s ease-out; }
  :is(.side nav a:hover, .att-list a:hover, .area-list a:hover, .feature-grid li:hover) :is(.ico-clipboard, .ico-check, .ico-shield) .tk,
  .side nav a[aria-current="page"] :is(.ico-clipboard, .ico-check, .ico-shield) .tk { stroke-dasharray: 1; animation: draw .45s ease-out both; }
  :is(.side nav a:hover, .att-list a:hover, .area-list a:hover, .feature-grid li:hover) :is(.ico-clipboard, .ico-check, .ico-shield) .tp,
  .side nav a[aria-current="page"] :is(.ico-clipboard, .ico-check, .ico-shield) .tp { stroke-dasharray: 1; animation: draw .2s ease-out .4s both; }
  .tick-mark .tk { stroke-dasharray: 1; animation: draw .45s ease-out .2s both; }
  .tick-mark .tp { stroke-dasharray: 1; animation: draw .2s ease-out .6s both; }

  /* Dashboard tiles arrive one after another */
  .att-list li, .area-list li { animation: rise .45s ease-out both; }
  .att-list li:nth-child(2), .area-list li:nth-child(2) { animation-delay: .05s; }
  .att-list li:nth-child(3), .area-list li:nth-child(3) { animation-delay: .1s; }
  .att-list li:nth-child(4), .area-list li:nth-child(4) { animation-delay: .15s; }
  .att-list li:nth-child(n+5), .area-list li:nth-child(n+5) { animation-delay: .2s; }

  /* Live: overdue and expired dots keep a slow pulse so the urgent items read as alive */
  .tag-overdue::before, .tag-missing::before { animation: live-dot 1.8s ease-out infinite; }

  @keyframes spin-q { to { transform: rotate(90deg); } }
  @keyframes spin-full { to { transform: rotate(360deg); } }
  @keyframes wave { 0%, 100% { transform: skewY(0); } 30% { transform: skewY(-9deg); } 65% { transform: skewY(6deg); } }
  @keyframes flicker { 0%, 100% { transform: scale(1, 1); } 25% { transform: scale(.92, 1.1); } 55% { transform: scale(1.06, .94); } 80% { transform: scale(.97, 1.04); } }
  @keyframes hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-2.5px); } }
  @keyframes pop { 0% { transform: scale(.55); opacity: .4; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
  @keyframes grow { from { transform: scaleY(.15); } to { transform: scaleY(1); } }
  @keyframes turn { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-25deg); } }
  @keyframes lift { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-3px); } }
  @keyframes flip { 0% { transform: scale(1, 1); } 45% { transform: scale(.2, .2); } 100% { transform: scale(1, 1); } }
  @keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  @keyframes live-dot { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent); } 80%, 100% { box-shadow: 0 0 0 6px transparent; } }
}
.feature-grid .fg-icon svg, .fg-icon .ico { color: var(--pine); }

/* Website bar above the app, so the home page is always one click away */
.site-bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 18px; padding: 10px clamp(16px, 2.6vw, 44px); background: #fff; border-bottom: 1px solid var(--rule, #dfe6e2); font-size: .95rem; }
.site-bar a { color: var(--ink, #1d2b27); text-decoration: none; font-weight: 500; }
.site-bar a:hover { color: var(--pine, #1f4d40); text-decoration: underline; }
.site-bar .site-back { font-weight: 700; color: var(--pine, #1f4d40); }
.site-links { display: flex; gap: 16px; }
.site-bar .site-cta { margin-left: auto; color: #fff; text-decoration: none; }
@media (max-width: 760px) { .site-links { display: none; } .site-bar { gap: 10px; position: static; } }
@media print { .site-bar { display: none; } }

/* Wide paper logs scroll sideways on phones instead of being cut off */
@media screen and (max-width: 700px) { .log-table { display: block; overflow-x: auto; white-space: nowrap; } }
