/* ACC interim site — plain by design (R-W25). White base, black text,
   kelly #007A33 on the mark, links, the CTA, tool headings and the Chart Gap
   subline. System fonts, no third-party requests. This file styles the live
   site at apexcritcare.com; palette or typeface changes need Domingo's word. */

:root {
  --kelly: #007A33;
  --ink: #111111;
  --muted: #555555;
  --rule: #e6e6e6;
  --mark: 56px;              /* shield height; 40px on phones (R-W29, amends R-W21 (4)) */
  --wide: 80rem;             /* header row, card row, footer */
  --measure: 60rem;          /* the one content column */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #ffffff;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-size: 1.125rem; line-height: 1.6; background: #fff; color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--kelly); }
a:hover, a:focus { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
/* One rhythm: every section's content sits in the same centered column
   (--measure); only the header row, the card row and the footer use --wide. */
.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 1.25rem; }
.header-row, .wrap.wide, .site-footer .wrap { max-width: var(--wide); }
.hero, .signature, .cta-band, .integration { text-align: center; }
.hero p:last-child { margin-bottom: 0; }
section { padding: 2.5rem 0; }
.band { background: #fafafa; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

/* ---- header: shield + name built to LG-6 proportions (R-W21 (3)) ---- */
.site-header { border-bottom: 1px solid var(--rule); background: #fff; position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .75rem; padding-bottom: .75rem; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.lockup { display: flex; align-items: flex-start; text-decoration: none; color: var(--kelly); }
.lockup .shield { width: var(--mark); height: var(--mark); flex: none; display: block; }
.lockup span {
  /* cap height = 40% of mark height (18.64/56 canvas units); bold sans cap-height ≈ 0.716em */
  font-size: calc(var(--mark) * 0.465);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  word-spacing: -0.12em;
  white-space: nowrap;
  /* first letter at canvas x 47.72 → 0.852 × mark from the image's left edge */
  margin-left: calc(var(--mark) * -0.148);
  /* baseline at canvas y 43 → 0.768 × mark from the top; text baseline ≈ 0.85em below its box top */
  margin-top: calc(var(--mark) * 0.768 - 0.85em);
}
.site-nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .95rem; margin-left: auto; }
.menu-btn { display: none; font: inherit; font-size: .95rem; background: #fff; color: var(--ink); border: 1px solid var(--rule); border-radius: 6px; padding: .45em .8em; cursor: pointer; }   /* 📱 only — R-W39 P1 */
.nb { white-space: nowrap; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* visually hidden, read aloud */
.menu-glyph { font-size: 1.35rem; line-height: 1; }                                                                     /* R-W39 P2: wrap between items, never inside one */
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .3em; }

/* ---- buttons ---- */
.btn { display: inline-block; background: var(--kelly); color: #fff; text-decoration: none; padding: .55em 1.1em; border-radius: 6px; font-weight: 600; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.btn-lg { font-size: 1.1rem; padding: .7em 1.4em; }
.btn-sm { font-size: .95rem; padding: .5em 1em; }
.header-cta { flex: none; }                                   /* R-W35 (1): rides with the sticky header */
.btn:hover, .btn:focus { background: #00632a; }

/* ---- homepage ---- */
.signature { text-align: center; padding: 3.5rem 0; }
.signature-line { font-size: clamp(1.75rem, 5vw, 3rem); font-weight: 700; line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
.signature-line.small { font-size: 1.5rem; margin-bottom: 1.25rem; }
.hero { padding: 3.5rem 0 3rem; }
.hero h1 { font-size: clamp(1.45rem, 3.6vw, 2.2rem); max-width: 44rem; margin-left: auto; margin-right: auto; }   /* the mission opens the page — R-W42 */
.wm { color: var(--kelly); letter-spacing: -.02em; }                                      /* "Apex CritCare" as kelly text, no shield — R-W42 */
.assignment .wrap { max-width: var(--wide); }                                             /* Section 2d — R-W43 */
.assignment .lead { font-size: 1.15rem; max-width: 46rem; }
.tiles { display: grid; gap: 1rem; grid-template-columns: 1fr; margin: 1.5rem 0; }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; } }
.tile { border: 1px solid var(--rule); border-radius: 8px; padding: 1rem 1.1rem; background: #fff; }
.tile-num { font-size: 2rem; font-weight: 700; color: var(--kelly); line-height: 1.1; margin: 0 0 .35rem; }
.tile-txt { margin: 0; font-size: .98rem; }
.tools-head { text-align: center; padding-bottom: 0; }                                    /* Section 1 headlines the three tools — R-W42 */
.tools-head .eyebrow { margin-bottom: .75rem; }
.tools-h { font-size: clamp(1.35rem, 3.2vw, 2rem); max-width: 40rem; margin-left: auto; margin-right: auto; }
.subline { font-size: 1.2rem; color: var(--muted); }
.problem h2 { font-size: 1.4rem; }
.closing { font-size: 1.15rem; margin-top: 1.25rem; }
.citations { font-size: .85rem; color: var(--muted); padding-left: 1.4em; margin-top: 1.5rem; }
.citations li { margin-bottom: .2em; }
.citations .cite-quote { display: block; font-style: italic; margin: .3em 0 .7em; color: var(--ink); }   /* R-W34 (1) words */
.cite-more { display: inline; }                                                                   /* R-W35 (3) reveal */
.cite-more summary { display: inline; list-style: none; cursor: pointer; color: var(--kelly); text-decoration: underline dotted; text-underline-offset: .25em; }
.cite-more summary::-webkit-details-marker { display: none; }
.cite-more summary::after { content: " \25BE"; }
.cite-more[open] summary::after { content: " \25B4"; }
.proof { font-weight: 700; }                                                                       /* R-W35 (2) */
.mission { text-align: center; }                                                          /* R-W34 (2) */
.mission p { font-size: 1.2rem; font-weight: 500; margin: 0; max-width: 46rem; margin-left: auto; margin-right: auto; }
.cite-note { font-size: .85rem; color: var(--muted); margin-top: 1rem; }
.cards { background: #fafafa; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.card-row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.card { background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: 1.25rem; color: var(--ink); text-decoration: none; display: block; }
.card:hover, .card:focus { border-color: var(--kelly); }
.card h3 { color: var(--kelly); margin-bottom: .25em; }
.card .caption { font-size: .9rem; color: var(--muted); margin-bottom: .5em; }
.card .role { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .35em; }   /* R-W35 (6) */
.card p:last-child { margin-bottom: 0; }
.founder-row { display: flex; gap: 1.5rem; align-items: center; }
.strip-mark { flex: none; width: 96px; height: 96px; }
.strip-mark .shield { width: 96px; height: 96px; display: block; }
.arrow { font-weight: 600; text-decoration: none; }
.integration { border-top: 1px solid var(--rule); color: var(--muted); font-size: .95rem; text-align: center; }

/* ---- size of the problem (R-W30) ---- */
.scale-band .wrap { max-width: var(--wide); }
.scale-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: start; }
.scale-band .lead { font-size: 1.15rem; }
@media (min-width: 900px) { .scale-grid { grid-template-columns: 1fr 1.4fr; } }   /* 💻 DESKTOP — R-W31 (2), R-W35 (4) */
.scale { width: 100%; border-collapse: collapse; margin: 1.25rem 0 1.5rem; font-size: 1rem; }
.table-caption { font-size: .95rem; font-weight: 600; margin: 1.25rem 0 0; }             /* R-W34 (3), (5) */
.table-caption + .scale { margin-top: .5rem; }
.giveback .scale { margin-bottom: 1rem; }
.scale th, .scale td { padding: .6em .5em; border-bottom: 1px solid var(--rule); text-align: right; vertical-align: top; }
.scale th:first-child, .scale td:first-child { text-align: left; }
.scale th { font-weight: 600; color: var(--muted); font-size: .9rem; }
.scale td:not(:first-child) { font-weight: 600; white-space: nowrap; }
.scale-band .small { font-size: .85rem; color: var(--muted); }
.scale-band .closing { margin-top: 1.5rem; }

/* ---- give-back (R-W32) ---- */
.giveback .wrap { max-width: var(--wide); }                                                       /* R-W35 (4): side by side like 2b */
.giveback .lead { font-size: 1.15rem; }
.giveback .nurse-line { font-size: 1.1rem; margin-bottom: .6em; }
.giveback .scaled { font-size: 1.35rem; font-weight: 600; line-height: 1.35; margin: 1.25rem 0 .75rem; }
.giveback .small { font-size: .85rem; color: var(--muted); }
.giveback .closing { margin-top: 1.75rem; }

/* ---- what nurses said (R-W32) ---- */
.nurses .big { font-size: clamp(1.5rem, 3.5vw, 2rem); text-align: center; }
.nurses .sample { text-align: center; color: var(--muted); margin-bottom: 1.5rem; }
.nurse-cols { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-bottom: 1.25rem; }
.ncol { background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: 1.1rem 1.25rem; }
.ncol h3 { color: var(--kelly); margin-bottom: .5em; }
.ncol dl { margin: 0; }
.ncol dl > div { display: flex; justify-content: space-between; gap: 1rem; padding: .35em 0; border-top: 1px solid var(--rule); }
.ncol dt { font-weight: 400; }
.ncol dd { margin: 0; font-weight: 700; white-space: nowrap; }
.nurses .estimate { text-align: center; font-weight: 600; margin-bottom: .4em; }
.nurses .small { text-align: center; font-size: .85rem; color: var(--muted); }
.quotes { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
.quotes blockquote { margin: 0; background: #fff; border-left: 4px solid var(--kelly); border-radius: 0 8px 8px 0; padding: 1rem 1.25rem; }
.quotes blockquote p { margin-bottom: .5em; }
.quotes footer { font-size: .9rem; color: var(--muted); }
@media (min-width: 900px) { .nurse-cols, .quotes { grid-template-columns: repeat(3, 1fr); } .quotes { grid-template-columns: 1fr 1fr; } }

/* ---- platform ---- */
.tool h2 { color: var(--kelly); }
.subline-tool { font-size: 1.2rem; line-height: 1.4; margin: -.25em 0 1em; font-weight: 700; color: var(--kelly); }   /* R-W35 (5), R-W36 (5) */
.tool, .intro, #platform { scroll-margin-top: 6rem; }   /* clear the sticky header */
.intro p { font-size: 1.2rem; }
html { scroll-behavior: smooth; }
.tool.alt { background: #fafafa; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.cta-band { text-align: center; }
.integration-full { border-top: 1px solid var(--rule); }

/* ---- about ---- */
.founders-row { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.founders-row.solo { justify-items: center; }
.founder-card { border: 1px solid var(--rule); border-radius: 8px; padding: 1.5rem; max-width: 34rem; }
.founder-card img { width: 160px; height: 160px; object-fit: cover; object-position: 50% 20%; border-radius: 50%; margin-bottom: 1rem; }
.founder-card .title { color: var(--muted); margin-top: -.4em; }

/* ---- contact ---- */
form label { display: block; font-weight: 600; margin: 1rem 0 .3rem; }
form input, form select, form textarea { width: 100%; font: inherit; padding: .6em .7em; border: 1px solid #bbb; border-radius: 6px; background: #fff; color: var(--ink); }
form input:focus, form select:focus, form textarea:focus { outline: 2px solid var(--kelly); outline-offset: 1px; border-color: var(--kelly); }
.form-note { font-size: .9rem; color: var(--muted); margin-top: .4rem; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.sent { background: #f0f8f3; border: 1px solid var(--kelly); border-radius: 6px; padding: .8em 1em; font-weight: 600; }
.direct { border-top: 1px solid var(--rule); text-align: center; }

/* ---- privacy ---- */
.legal h1 { margin-bottom: .2em; }
.updated { color: var(--muted); font-size: .95rem; margin-bottom: 2rem; }
.legal h2 { font-size: 1.2rem; margin-top: 2rem; }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--rule); padding: 1.5rem 0 2.5rem; font-size: .9rem; color: var(--muted); text-align: center; }
.site-footer a { color: var(--muted); }
.footer-contact { font-size: 1.05rem; font-weight: 600; margin: 0 0 .6rem; }                 /* R-W41 (1) */
.footer-legal { margin: 0; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--kelly); margin: 0 0 .5rem; }   /* "The Problem" — R-W41 (4) */

/* ---- R-W38 (5): tablet exception — from 640 px the card row goes three across and the founders row two across; everything else stays PHONE until 900 px ---- */
@media (min-width: 640px) {
  .card-row { grid-template-columns: repeat(3, 1fr); }
  .founders-row { grid-template-columns: repeat(2, 1fr); }
  .founders-row.solo { grid-template-columns: 1fr; }
}

/* ---- review markers (R-W38): reference build only; the build emits none when reference_mode is false ---- */
.rv-sec { position: relative; border-top: 1px dashed var(--kelly) !important; }
.rv { position: absolute; top: .35rem; left: 1.25rem; background: var(--kelly); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .06em; padding: .15em .5em; border-radius: 4px; z-index: 5; line-height: 1.4; }
.legal .rv { position: static; transform: none; display: inline-block; margin-right: .5em; vertical-align: middle; }
.site-footer .rv { left: 50%; transform: translateX(-50%); }

/* ---- 📱 PHONE (640 px and narrower) — R-W37 (1), (6): the one block that holds every phone rule ---- */
@media (max-width: 640px) {
  :root { --mark: 40px; }                                                    /* R-W29 */
  body { font-size: 1.0625rem; }                                             /* R-W39 rhythm */
  section { padding: 1.75rem 0; }
  h2 { font-size: 1.35rem; }
  .signature { padding: 2.5rem 0; }
  .hero { padding: 2.5rem 0 2rem; }
  .intro p { font-size: 1.1rem; }
  /* header: shield + name left; Menu and Request a Demo right; nav drops beneath when open (R-W35 (1), R-W39 P1) */
  .header-row { flex-wrap: wrap; align-items: center; }
  .header-row { gap: .5rem; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; order: 2; margin-left: auto; width: 44px; min-height: 44px; padding: 0; }
  .header-cta { order: 3; min-height: 44px; display: inline-flex; align-items: center; font-size: .85rem; padding: .4em .8em; white-space: nowrap; }
  .site-nav { display: none; order: 4; flex-basis: 100%; margin-left: 0; flex-direction: column; gap: 0; padding-top: .25rem; }
  .site-header.nav-open .site-nav { display: flex; }
  .site-nav a { display: block; padding: .7rem 0; border-top: 1px solid var(--rule); min-height: 44px; font-size: 1.05rem; }
  /* tables read across, every column on screen (four in the size table, five in the time-saved table), no sideways swipe (R-W41 (5); the R-W39 (2) stat tiles are withdrawn) */
  .scale-grid > div { min-width: 0; }
  .scale { table-layout: fixed; font-size: .66rem; }
  .scale th, .scale td { padding: .5em .25em; }
  .scale th { font-size: .6rem; line-height: 1.25; }
  .scale th:first-child, .scale td:first-child { width: 30%; font-weight: 600; }
  .scale td:not(:first-child) { white-space: normal; overflow-wrap: anywhere; }
  .scale td.key { font-size: .74rem; font-weight: 700; color: var(--kelly); }
  .footer-contact a { display: inline-block; padding: .6em 0; }                /* tap target (R-W37 (3f)) */
  .giveback .scaled { font-size: 1.2rem; }
  .card { padding: 1rem; }
  .ncol { padding: .9rem 1rem; }
  .founder-row { flex-direction: column; align-items: flex-start; }
  .cite-more summary { display: inline-block; padding: .35em 0; }             /* tap target */
}

/* ---- Homepage rebuild + Platform page ---- */
.hero-home h1 { font-size: clamp(1.9rem, 5vw, 3rem); max-width: 46rem; line-height: 1.15; }
.hero-label { margin: .25rem 0 1rem; font-size: .85rem; }
.hero-proof { color: var(--ink); text-decoration: underline; text-decoration-color: var(--kelly); text-underline-offset: .2em; }
.hero-proof strong { color: var(--kelly); }
.cards-label { text-align: center; margin-bottom: 1rem; }
.card .learn { color: var(--kelly); font-weight: 600; margin-top: .75em; }
.proof-time { display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin: 1.75rem 0 1rem; align-items: start; text-align: left; }
.proof-time > div { min-width: 0; }
.proof-time .lead { font-size: 1.15rem; }
.proof-time .small { text-align: left; }
.nurses .closing { text-align: center; margin-top: 2rem; }
.tool .assignment { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.tool .assignment h3 { font-size: 1.2rem; }
.tool-proof { margin-top: 1.75rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.tp-label { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--kelly); margin: 0 0 .75rem; }
.tool-proof blockquote { margin: 0 0 .85rem; padding: 0 0 0 .9rem; border-left: 3px solid var(--kelly); }
.tool-proof blockquote p { font-size: .92rem; line-height: 1.5; margin: 0 0 .2em; color: var(--ink); }
.tool-proof footer { font-size: .8rem; color: var(--muted); }
.tp-count { font-size: .92rem; margin: 0 0 .5rem; padding-left: .9rem; border-left: 3px solid var(--kelly); }
.tp-count strong { color: var(--kelly); }
@media (min-width: 900px) {
  .proof-time { grid-template-columns: 1fr 1.6fr; }
  .tool-proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .tp-label { grid-column: 1 / -1; margin-bottom: 0; }
  .tool-proof blockquote, .tp-count { margin: 0; }
}
@media (max-width: 640px) { .hero-home h1 { font-size: 1.75rem; } }

/* ---- Homepage tool blocks: each tool with what nurses said about it ---- */
.hero-sample { font-size: .85rem; color: var(--muted); margin: .6rem 0 0; }
.tools { background: #fafafa; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.tool-block { background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: 1.25rem 1.25rem 1rem; margin: 0 0 1rem; }
.tool-block .role { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 .35em; }
.tool-block h2 { color: var(--kelly); font-size: 1.3rem; margin: 0 0 .4em; }
.tool-block .tb-head { font-size: 1.1rem; margin: 0 0 .6em; }
.tool-block .subline-tool { margin: 0 0 .6em; font-size: 1.05rem; }
.tb-proof { margin-top: 1rem; padding-top: .85rem; border-top: 1px solid var(--rule); }
.tb-counts { display: grid; grid-template-columns: 1fr; gap: .4rem; margin-bottom: .85rem; }
.tb-counts .tp-count { margin: 0; }
.tb-proof blockquote { margin: 0 0 .5rem; padding: 0 0 0 .9rem; border-left: 3px solid var(--kelly); }
.tb-proof blockquote p { font-size: .95rem; line-height: 1.5; margin: 0 0 .2em; }
.tb-proof footer { font-size: .8rem; color: var(--muted); }
.tb-link { margin: .85rem 0 0; font-weight: 600; }
.tools-comp { text-align: center; font-size: .85rem; color: var(--muted); margin: 1.25rem 0 0; }
@media (min-width: 900px) {
  .tb-counts { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .tool-proof { grid-template-columns: repeat(2, 1fr); }
}
.hl { color: var(--kelly); }
.tool-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.tool-grid .tool-block { margin: 0; display: flex; flex-direction: column; }
.tool-grid .tb-proof { margin-top: auto; }
.tool-grid .tb-proof { padding-top: .85rem; }
.tool-block > p:not(.role):not(.tb-link) + .tb-proof, .tool-block .tb-proof { margin-top: auto; }
.tool-block .tb-head { margin-bottom: 1rem; }
@media (min-width: 900px) {
  .tool-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .tool-grid .tb-counts { grid-template-columns: 1fr; gap: .4rem; }
}
