/* Nurse Educator Command Center — marketing microsite
   Static hand-authored CSS. Tokens/components per strategy/06-design-system.md. */

/* ============ Tokens ============ */
:root {
  --green-deep:   #17352E;
  --green-panel:  #21483F;
  --green-border: #4C8D7A;
  --sage-light:   #B7D9CD;
  --paper:        #EEF2EF;
  --card:         #FFFFFF;
  --ink:          #17201B;
  --ink-soft:     #4A5A52;
  --blue-accent:  #2E6C91;
  --blue-deep:    #245776;
  --chip-red:     #B3402E;
  --chip-orange:  #C06B2D;
  --chip-yellow:  #B08A24;
  --chip-blue:    #2E6C91;
  --chip-green:   #2F7A52;
  --focus-ring:   #2E6C91;
  --radius-s: 7px;
  --radius-m: 10px;
  --radius-l: 14px;
  --shadow-card: 0 1px 2px rgba(23,32,27,.06), 0 4px 14px rgba(23,32,27,.06);
  --wrap: 1120px;
  --wrap-text: 720px;
  --wrap-article: 860px;
}

/* ============ Reset / base ============ */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-accent); }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
button { font-family: inherit; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* Section anchor offset so the sticky header never covers a heading */
#top, #the-job, #how-it-works, #modules, #privacy, #mobile, #guides, #faq, #early-access, #main {
  scroll-margin-top: 84px;
}

/* ============ Typography ============ */
h1 {
  font-size: clamp(2.125rem, 1.64rem + 2.15vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
}
h2 {
  font-size: clamp(1.625rem, 1.36rem + 1.19vw, 2.25rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}
small, .small { font-size: 14.5px; }

.eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-accent);
  margin: 0 0 12px;
}
.on-green .eyebrow { color: var(--sage-light); }

.prose { max-width: var(--wrap-text); }
.prose p, .prose li { font-size: 17.5px; line-height: 1.7; }

/* ============ Skip link ============ */
.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  background: var(--green-deep);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-s);
  z-index: 1000;
  transition: top .15s ease;
  font-weight: 700;
}
.skip-link:focus {
  top: 8px;
}

/* ============ Focus ============ */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
.guide-card:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--green-deep);
  color: #fff;
  height: 64px;
  display: flex;
  align-items: center;
}
.site-header.is-scrolled {
  border-bottom: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  min-width: 0;
}
.brand img {
  border-radius: var(--radius-s);
  flex: none;
}
.brand-name {
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
}
.brand-name-short {
  display: none;
  font-size: clamp(9.2px, 2.6vw, 16px);
}
/* Full name returns at 420px per design system; scale it down fluidly until
   there is enough room next to the header CTA (fits at full 16px by ~520px). */
@media (min-width: 420px) and (max-width: 759px) {
  .brand-name-full { font-size: clamp(10.5px, 5vw - 10px, 16px); }
}

.site-nav {
  display: none;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 600;
}
.site-nav a {
  color: var(--sage-light);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { color: #fff; }

/* ============ Buttons ============ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: var(--radius-m);
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, transform .1s ease;
}
.btn-primary:hover { background: var(--blue-deep); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: .7; cursor: default; }
.btn-primary.btn-block { display: flex; width: 100%; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #fff;
  border: 1px solid var(--green-border);
  font-weight: 700;
  font-size: 15px;
  padding: 11px 21px;
  border-radius: var(--radius-m);
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s ease;
}
.btn-ghost:hover { background: var(--green-panel); }

.link-arrow {
  color: var(--blue-accent);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.link-arrow:hover { color: var(--blue-deep); text-decoration: underline; }
.on-green .link-arrow { color: #fff; }
.on-green .link-arrow:hover { color: var(--sage-light); }

.prose a, .faq-body a, .card-body a, .banner-text a {
  color: var(--blue-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose a:hover, .faq-body a:hover, .card-body a:hover, .banner-text a:hover { color: var(--blue-deep); }

/* ============ Chips (hero status chips — graphics only, no meaning by color alone) ============ */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
  list-style: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--green-border);
  color: var(--sage-light);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13.5px;
  white-space: nowrap;
}

/* ============ Hero ============ */
.hero {
  background: var(--green-deep);
  color: #fff;
  padding: 64px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
.hero-copy { max-width: 56ch; }
.hero-copy .lead {
  color: var(--sage-light);
  font-size: 19px;
  line-height: 1.6;
  margin: 16px 0 0;
}
.hero-cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 24px 0 0;
}
.hero h1 { margin: 0; }

/* ============ Screenshot "browser card" treatment ============ */
/* .shot is a transparent layout wrapper. The white browser-card chrome (bg,
   border, shadow, radius, corner-clip) lives on the inner .shot-frame so the
   <figcaption> below the card renders on the SECTION background — green on the
   hero (--sage-light, ~8.72:1) and paper in guide/mobile sections (--ink-soft).
   Keeping the caption inside the white card would leave hero --sage-light text
   at ~1.5:1 on white (WCAG fail). */
.shot-frame {
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(23,32,27,.08);
  overflow: hidden;
  background: var(--card);
}
.shot-bar {
  height: 28px;
  background: #E3E9E5;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
}
.shot-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #C7D0CA;
}
.shot img { width: 100%; height: auto; display: block; }
.shot-caption {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-top: 10px;
}
.on-green .shot-caption { color: var(--sage-light); }

/* iPhone device-frame treatment */
.device-frame {
  max-width: 320px;
  margin: 0 auto;
  padding: 10px;
  background: #10241F;
  border-radius: 34px;
}
.device-frame img {
  border-radius: 24px;
  width: 100%;
  height: auto;
  display: block;
}

/* ============ Sections generic ============ */
section {
  padding: 64px 0;
}
.bg-white { background: var(--card); }
.bg-paper { background: var(--paper); }

/* ============ Problem / the-job ============ */
.the-job .body-col { max-width: var(--wrap-text); }
.the-job h2 { margin: 0 0 24px; }
.the-job p + p { margin-top: 18px; }

/* ============ Status-card motif ============ */
.accent-card {
  background: var(--card);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  border-left: 4px solid var(--chip-blue);
  padding: 24px;
}
.accent-card.accent-blue { border-left-color: var(--chip-blue); }
.accent-card.accent-green { border-left-color: var(--chip-green); }
.accent-card.accent-orange { border-left-color: var(--chip-orange); }

/* How it works steps */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
}
.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-deep);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
}
.step-card h3 { margin: 0 0 8px; }
.step-card p { font-size: 15.5px; color: var(--ink-soft); }

/* ============ Modules ============ */
.modules-intro { max-width: var(--wrap-text); margin: 0 0 32px; color: var(--ink-soft); font-size: 17.5px; }
.modules-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.module-card {
  background: var(--card);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.module-card img {
  border-radius: var(--radius-l) var(--radius-l) 0 0;
  width: 100%;
  height: auto;
}
.module-card-body { padding: 22px; }
.module-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
}
.module-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}
.module-card p { font-size: 15.5px; color: var(--ink-soft); }
.modules-closing {
  max-width: var(--wrap-text);
  margin: 32px 0 0;
  color: var(--ink-soft);
  font-size: 15.5px;
}

/* ============ Privacy ============ */
.privacy-inner { max-width: var(--wrap-text); margin: 0 auto; }
.privacy-inner h2 { margin: 0 0 24px; }
.privacy-inner p + p { margin-top: 18px; }
.privacy-callout { margin-top: 28px; }
.privacy-callout p { font-size: 15.5px; }

/* ============ Mobile ============ */
.mobile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.mobile-copy { max-width: var(--wrap-text); }
.mobile-copy h2 { margin: 0 0 18px; }

/* ============ Guides section ============ */
.guides-intro { color: var(--ink-soft); margin: 0 0 32px; font-size: 17.5px; }
.guide-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  list-style: none;
}
.guide-card {
  display: block;
  background: var(--card);
  border: 1px solid rgba(23,32,27,.08);
  border-radius: var(--radius-m);
  padding: 22px;
  text-decoration: none;
  transition: box-shadow .15s ease, transform .15s ease;
}
.guide-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}
.guide-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--blue-accent);
  margin: 0 0 8px;
}
.guide-card-desc {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0;
}

/* ============ FAQ ============ */
.faq { border-top: 1px solid rgba(23,32,27,.10); }
.faq-item {
  border-bottom: 1px solid rgba(23,32,27,.10);
}
.faq-item summary {
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  padding: 18px 32px 18px 0;
  position: relative;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 16px;
  font-size: 22px;
  font-weight: 400;
  color: var(--blue-accent);
  transition: transform .15s ease;
  transform-origin: center;
}
.faq-item[open] summary::after {
  content: "+";
  transform: rotate(45deg);
}
.faq-body {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  padding: 0 0 18px;
}
.faq-under-link { margin-top: 24px; font-size: 15.5px; }

/* ============ Early access / form ============ */
.early-access {
  background: var(--green-deep);
  color: #fff;
}
.early-access-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}
.early-access h2 { color: #fff; margin: 0 0 16px; }
.early-access > .wrap > p.lead-body { color: var(--sage-light); margin: 0 0 32px; font-size: 17px; }

.noscript-note {
  background: rgba(255,255,255,.08);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-m);
  padding: 14px 16px;
  font-size: 14.5px;
  color: var(--sage-light);
  margin-bottom: 24px;
}
.noscript-note a { color: #fff; }

.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 6px;
  color: #fff;
}
.form-hint {
  display: block;
  font-weight: 400;
  font-size: 13.5px;
  color: var(--sage-light);
  margin-top: 4px;
}
.form-field input[type="text"],
.form-field input[type="email"],
.form-field textarea {
  width: 100%;
  background: #fff;
  border: 1px solid #C7D0CA;
  border-radius: var(--radius-m);
  padding: 12px 14px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
}
.form-field textarea { min-height: 96px; resize: vertical; }
.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 1.4em;
  margin-top: 16px;
  font-size: 15px;
  color: #fff;
}
.form-reassurance {
  margin-top: 20px;
  font-size: 14px;
  color: var(--sage-light);
}

/* ============ Footer ============ */
.site-footer {
  background: var(--green-deep);
  color: var(--sage-light);
  font-size: 14.5px;
  padding: 48px 0 64px;
}
.site-footer p { margin: 0 0 10px; }
.site-footer .footer-brand { color: #fff; font-weight: 700; }
.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 20px 0;
  padding: 0;
}
.footer-links a {
  color: #fff;
  text-decoration: none;
}
.footer-links a:hover { text-decoration: underline; }
.site-footer .footer-legal { font-size: 13px; color: var(--sage-light); margin-top: 16px; }

/* ============ Guide template specifics ============ */
.breadcrumb {
  font-size: 14px;
  color: var(--ink-soft);
  padding: 20px 0 0;
}
.breadcrumb a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--blue-accent); }
.breadcrumb .crumb-current { color: var(--ink-soft); }

.guide-article {
  padding: 24px 0 64px;
}
.guide-article .article-wrap {
  max-width: var(--wrap-text);
  margin: 0 auto;
}
.guide-article .article-wide {
  max-width: var(--wrap-article);
  margin-left: auto;
  margin-right: auto;
}
.guide-byline {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 14px 0 0;
}
.guide-article h1 { margin: 0; }
.guide-article .lead {
  font-size: 19px;
  color: var(--ink-soft);
  margin: 28px 0 0;
}
.guide-article h2 { margin-top: 40px; margin-bottom: 16px; }
.guide-article h3 { margin-top: 28px; margin-bottom: 10px; }
.guide-article p { margin: 16px 0; }
.guide-article ul, .guide-article ol {
  margin: 16px 0;
  padding-left: 22px;
}
.guide-article li { margin: 10px 0; font-size: 17.5px; line-height: 1.7; }
.guide-article ul { list-style: disc; }
.guide-article ol { list-style: decimal; }
.guide-article figure.shot { margin: 24px 0; }
.guide-article .cta-banner { margin: 24px 0; }
.guide-article .cta-banner p { margin: 0 0 16px; font-size: 17px; }
.guide-article .keep-going { margin-top: 24px; }
.guide-article .keep-going h2 { margin-bottom: 20px; }
.guide-article .faq-heading { margin-top: 48px; }

/* ============ Responsive ============ */
/* Header chrome stays compact for the entire sub-760px range (below the point
   nav returns), so the full-width product name always has room next to the
   CTA button — see 06-design-system.md "font-size scaled to fit ONE line". */
@media (max-width: 759px) {
  .header-row { gap: 8px; }
  .brand { gap: 6px; min-width: 0; flex-shrink: 1; }
  .brand img { width: 22px; height: 22px; flex-shrink: 0; }
  .header-row .btn-primary { padding: 9px 14px; font-size: 14px; flex-shrink: 0; }
}

@media (max-width: 419px) {
  .brand-name-full { display: none; }
  .brand-name-short { display: inline; }
}

/* Extra-narrow fallback (sub-360px devices, below the tested breakpoint floor) */
@media (max-width: 359px) {
  .header-row { gap: 5px; }
  .brand { gap: 4px; }
  .brand img { width: 18px; height: 18px; }
  .brand-name-short { font-size: 8.5px; }
  .header-row .btn-primary { padding: 7px 10px; font-size: 12px; }
}

@media (min-width: 420px) {
  .brand-name-short { display: none; }
}

/* 760–979px: nav returns. Chrome stays a size down from full desktop comfort
   until 980px, where the hero/module grids also open up (see design system
   breakpoint table) and there is room for every header element at full size. */
@media (min-width: 760px) and (max-width: 979px) {
  .header-row { gap: 14px; }
  .brand { gap: 8px; }
  .brand img { width: 28px; height: 28px; }
  .brand-name-full { font-size: 13px; }
  .site-nav { gap: 14px; font-size: 13.5px; }
  .header-row .btn-primary { padding: 10px 16px; font-size: 14px; }
}

@media (min-width: 760px) {
  .site-nav { display: flex; }
}

@media (min-width: 900px) {
  section { padding: 96px 0; }
  .hero { padding: 96px 0 72px; }
  .modules-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 7fr 5fr; }
  .mobile-grid { grid-template-columns: 1fr 1fr; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .guide-card { transition: none; }
  .guide-card:hover { transform: none; }
  .faq-item summary::after { transition: none; }
}
