/* Nurse AI OS — Trainer landing page
   Scoped, standalone presentation layer for trainer.html. */
:root {
  --teal-700: #0f766e;
  --teal-600: #0d9488;
  --teal-100: #ccfbf1;
  --slate-950: #1e293b;
  --slate-800: #334155;
  --slate-700: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --line: #e2e8f0;
  --offwhite: #f8fafc;
  --white: #ffffff;
  --ink: #1e293b;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-md: 0 14px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 52px rgba(15, 23, 42, .12);
  --radius: 18px;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--offwhite);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.58;
}
img { display: block; max-width: 100%; }
a { color: var(--teal-700); }
a:hover { color: var(--teal-600); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--teal-600);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: .7rem;
  left: .7rem;
  transform: translateY(-180%);
  padding: .72rem 1rem;
  border-radius: 8px;
  background: var(--white);
  color: var(--slate-950);
  box-shadow: var(--shadow-md);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(100% - 2.5rem, 1160px); margin-inline: auto; }
.narrow { width: min(100%, 760px); }
.eyebrow {
  margin: 0 0 .7rem;
  color: var(--teal-700);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
}
.section { padding: clamp(3.75rem, 7vw, 6.25rem) 0; }
.section-header { max-width: 690px; margin-bottom: 2.2rem; }
.section-header p:last-child { margin-bottom: 0; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1, h2, h3 {
  margin-top: 0;
  color: var(--slate-950);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.1;
}
h1 { margin-bottom: 1.2rem; font-size: clamp(2.7rem, 5.5vw, 5.25rem); }
h2 { margin-bottom: .8rem; font-size: clamp(2rem, 3.3vw, 3.15rem); }
h3 { margin-bottom: .55rem; font-size: 1.38rem; }
p { margin-top: 0; }
.muted { color: var(--slate-700); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Site navigation */
.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(226, 232, 240, .82);
  background: rgba(248, 250, 252, .94);
  box-shadow: 0 1px 12px rgba(15, 23, 42, .04);
  backdrop-filter: blur(12px);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  width: min(100% - 2.5rem, 1240px);
  min-height: 76px;
  margin-inline: auto;
  padding: .65rem 0;
}
.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .62rem;
  min-height: 44px;
  color: var(--slate-950);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
}
.brand:hover { color: var(--teal-700); }
.brand-mark { width: 31px; height: 31px; border-radius: 8px; }
.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .1rem .3rem;
  flex-wrap: wrap;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .35rem .55rem;
  border-radius: 7px;
  color: var(--slate-700);
  font-size: .91rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}
.nav-links a:hover { background: #e6fffb; color: var(--teal-700); }
.nav-links .active { color: var(--teal-700); box-shadow: inset 0 -2px 0 var(--teal-700); }
.nav-links .nav-preview {
  margin-left: .2rem;
  padding-inline: .82rem;
  border: 1px solid var(--teal-700);
  background: var(--teal-700);
  color: var(--white);
}
.nav-links .nav-preview:hover { background: var(--teal-600); color: var(--white); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4.4rem, 8vw, 7.25rem) 0 clamp(4rem, 7vw, 6rem);
  background:
    radial-gradient(circle at 89% 8%, rgba(45, 212, 191, .18), transparent 26rem),
    linear-gradient(132deg, #123b3b 0%, var(--teal-700) 52%, #0a5f5a 100%);
  color: #e6fffb;
}
.hero::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  mask-image: linear-gradient(to right, #000, transparent 76%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(250px, .72fr);
  gap: clamp(2rem, 6vw, 6.5rem);
  align-items: end;
}
.hero .eyebrow { color: #bff9ee; }
.hero h1 { max-width: 800px; color: var(--white); }
.hero .lede {
  max-width: 680px;
  margin-bottom: 1.65rem;
  color: #dcfaf4;
  font-size: clamp(1.1rem, 1.8vw, 1.28rem);
  line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: .72rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--white); color: var(--teal-700); box-shadow: 0 8px 18px rgba(0, 0, 0, .12); }
.button-primary:hover { background: #f0fdfa; color: var(--teal-700); box-shadow: 0 12px 24px rgba(0, 0, 0, .16); }
.button-quiet { border-color: var(--line); background: var(--white); color: var(--teal-700); }
.button-quiet:hover { border-color: var(--teal-600); background: #f0fdfa; color: var(--teal-700); }
.hero-caption { margin: 1rem 0 0; color: #bff9ee; font-size: .9rem; }
.hero-note {
  position: relative;
  align-self: center;
  padding: 1.55rem 1.45rem 1.45rem;
  border: 1px solid rgba(204, 251, 241, .43);
  border-radius: 3px 18px 18px 18px;
  background: rgba(6, 78, 73, .3);
  box-shadow: 16px 16px 0 rgba(8, 58, 54, .15);
}
.hero-note::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 54px;
  height: 4px;
  background: #99f6e4;
  content: "";
}
.hero-note .note-label { margin: 0 0 .85rem; color: #99f6e4; font-size: .76rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.hero-note blockquote { margin: 0; color: var(--white); font-family: var(--font-display); font-size: 1.3rem; line-height: 1.3; }
.hero-note p:last-child { margin: 1rem 0 0; color: #d5f8f1; font-size: .94rem; }

/* Scope and track library */
.scope-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.scope-items { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; list-style: none; }
.scope-items li { padding: 1.35rem 1.3rem; color: var(--slate-700); font-size: .98rem; }
.scope-items li + li { border-left: 1px solid var(--line); }
.scope-items strong { display: block; margin-bottom: .1rem; color: var(--slate-950); font-family: var(--font-display); font-size: 1.05rem; }
.tracks-section { background: var(--offwhite); }
.track-summary {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  margin: 0 0 1.3rem;
  padding: .37rem .7rem;
  border: 1px solid #99f6e4;
  border-radius: 999px;
  background: #f0fdfa;
  color: #115e59;
  font-size: .9rem;
  font-weight: 700;
}
.track-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.track-card {
  display: flex;
  min-height: 248px;
  flex-direction: column;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.track-card:hover { border-color: #5eead4; box-shadow: var(--shadow-md); transform: translateY(-3px); }
.track-card .track-code { margin: 0 0 .85rem; color: var(--teal-700); font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.track-card h3 { margin-bottom: .2rem; }
.track-card .bank-count { margin: 0 0 .78rem; color: var(--slate-950); font-size: 1.05rem; font-weight: 700; }
.track-card p { margin-bottom: 1rem; color: var(--slate-700); font-size: .94rem; line-height: 1.45; }
.track-card .card-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: auto; color: var(--teal-700); font-size: .96rem; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.track-card .card-link:hover { color: var(--teal-600); }
.track-card .caveat { margin-top: -.1rem; color: var(--slate-500); font-size: .83rem; }

/* Practice workflow */
.workflow-section { background: var(--white); }
.workflow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.workflow-card { padding: 1.4rem 1.3rem; border-left: 3px solid var(--teal-600); background: #f8fafc; }
.workflow-card .step-no { display: block; margin-bottom: .9rem; color: var(--teal-700); font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.workflow-card p { margin-bottom: 0; color: var(--slate-700); font-size: .98rem; }
.study-loop {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, .72fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: center;
  margin-top: clamp(3rem, 6vw, 5.5rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid #99f6e4;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f0fdfa, #ffffff 67%);
}
.study-loop h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.study-loop p:last-child { margin-bottom: 0; }
.loop-list { display: grid; gap: .72rem; margin: 0; padding: 0; list-style: none; }
.loop-list li { display: grid; grid-template-columns: 2.15rem 1fr; gap: .7rem; align-items: start; color: var(--slate-700); }
.loop-list b { display: grid; width: 2.15rem; height: 2.15rem; place-items: center; border-radius: 50%; background: var(--teal-700); color: var(--white); font-size: .9rem; }
.loop-list strong { color: var(--slate-950); }
.loop-list span { font-size: .97rem; line-height: 1.45; }

/* Companion tools */
.companions { background: #ecfdf9; border-top: 1px solid #ccfbf1; }
.companion-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 1rem; }
.companion-card { padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: var(--radius); }
.ekg-card { border: 1px solid #99f6e4; background: var(--white); }
.hub-card { background: var(--slate-950); color: #d8fff7; }
.hub-card h2 { color: var(--white); }
.hub-card .eyebrow { color: #99f6e4; }
.companion-card p { color: var(--slate-700); }
.hub-card p { color: #cbd5e1; }
.companion-card ul { margin: 1rem 0 1.35rem; padding-left: 1.15rem; }
.companion-card li { margin: .3rem 0; }
.hub-card li { color: #e2e8f0; }
.hub-card .button { border-color: #5eead4; background: transparent; color: #ccfbf1; }
.hub-card .button:hover { background: #134e4a; color: var(--white); }
.status-note { margin: 1.15rem 0 0; color: #94a3b8 !important; font-size: .87rem; line-height: 1.45; }

/* Sign-in, boundary, and footer */
.assurance-section { background: var(--offwhite); }
.assurance-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1rem; }
.assurance-card { padding: clamp(1.4rem, 3vw, 2.15rem); border-radius: var(--radius); }
.sign-in-card { border: 1px solid var(--line); background: var(--white); }
.sign-in-statement { margin: 0; color: var(--slate-700); font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.52rem); line-height: 1.4; }
.boundary-card { border-left: 4px solid var(--teal-600); background: #e6fffb; }
.boundary-card h2 { font-size: 1.48rem; }
.boundary-card p:last-child { margin-bottom: 0; color: var(--slate-700); }
.founder-line { margin: 2rem 0 0; color: var(--slate-700); font-size: .98rem; }
.founder-line strong { color: var(--slate-950); }
.site-footer { padding: 2.8rem 0; background: var(--slate-950); color: #cbd5e1; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.5rem; align-items: end; }
.footer-brand { display: flex; gap: .7rem; align-items: center; margin-bottom: .75rem; color: var(--white); font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.footer-brand img { width: 30px; height: 30px; border-radius: 7px; }
.site-footer p { margin-bottom: .5rem; font-size: .91rem; line-height: 1.55; }
.site-footer a { color: #99f6e4; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem 1rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: .94rem; font-weight: 600; text-decoration: none; }
.footer-links a:hover { color: var(--white); }
.trademark { color: #94a3b8; font-size: .82rem !important; }

@media (max-width: 1000px) {
  .nav-bar { align-items: flex-start; }
  .nav-links { justify-content: flex-start; }
  .track-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .track-card { min-height: 220px; }
}
@media (max-width: 760px) {
  .hero-grid, .study-loop, .companion-grid, .assurance-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-note { max-width: 570px; }
  .scope-items, .workflow-grid { grid-template-columns: 1fr; }
  .scope-items li + li { border-top: 1px solid var(--line); border-left: 0; }
  .footer-links { justify-content: flex-start; }
}
@media (max-width: 580px) {
  body { font-size: 17px; }
  .container { width: min(100% - 2rem, 1160px); }
  .site-header { position: static; }
  .nav-bar { width: min(100% - 2rem, 1240px); flex-direction: column; align-items: stretch; gap: .4rem; padding: .5rem 0 .7rem; }
  .brand { width: 100%; }
  .nav-links { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .15rem; }
  .nav-links a { justify-content: flex-start; padding-inline: .45rem; font-size: .87rem; }
  .nav-links .nav-preview { grid-column: 1 / -1; justify-content: center; margin: .25rem 0 0; }
  .hero { padding-top: 3.5rem; }
  h1 { font-size: clamp(2.55rem, 13vw, 3.5rem); }
  .hero-note { padding: 1.3rem 1.15rem; box-shadow: 9px 9px 0 rgba(8, 58, 54, .15); }
  .track-grid { grid-template-columns: 1fr; }
  .track-card { min-height: 0; }
  .workflow-card { padding: 1.25rem 1.1rem; }
  .companion-card, .assurance-card { padding: 1.35rem 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
