/* =========================================================================
   Diem Heros — public marketing surface (homepage + landers)
   -----------------------------------------------------------------------
   Register: Linear/Vercel premium SaaS. Warm off-white canvas, near-black
   text, single indigo accent. Geist + Geist Mono. Restraint as proof of
   scale — 4 sections max, generous whitespace, no editorial flourishes.
   National platform — no state names, no data-source name-drops, no
   regional copy.
   ----------------------------------------------------------------------- */

:root {
  --bg:           #FAFAF9;
  --surface:      #FFFFFF;
  --ink:          #0A0A0A;
  --ink-muted:    #6B6B6B;
  --hairline:     #E8E8E6;
  --hairline-soft:#F0EFEC;
  --accent:       #5E6AD2;
  --accent-hover: #4F5BC6;
  --accent-soft:  rgba(94, 106, 210, 0.10);
  --ink-on-dark:  #FAFAF9;
  --ink-dark-bg:  #0A0A0A;

  --container:    1200px;
  --gutter:       clamp(20px, 4vw, 32px);
  --section-y:    clamp(80px, 12vh, 140px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  font-feature-settings: "kern" 1, "liga" 1, "cv11" 1, "ss01" 1;
  text-rendering: optimizeLegibility;
}

body { min-height: 100vh; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

img, svg { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

::selection      { background: var(--accent); color: #FFF; }
::-moz-selection { background: var(--accent); color: #FFF; }

/* =========================================================================
   Container + section primitives
   ----------------------------------------------------------------------- */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section-y) 0; }
.section + .section { border-top: 1px solid var(--hairline); }

.eyebrow {
  display: inline-block;
  font-family: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 20px 0;
}
.eyebrow-num { color: var(--accent); margin-right: 8px; }

h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 600; }

/* =========================================================================
   Header
   ----------------------------------------------------------------------- */

.public-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 249, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--hairline-soft);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.015em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.wordmark-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.wordmark-mark svg { display: block; width: 24px; height: 24px; }
.footer-mark .wordmark-mark { width: 22px; height: 22px; }
.footer-mark .wordmark-mark svg { width: 22px; height: 22px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: -0.005em;
  transition: color 140ms ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: background 140ms ease;
}
.nav-cta:hover { background: #1A1A1A; color: var(--bg); }

/* =========================================================================
   Buttons (used across hero, CTA closer, lander forms)
   ----------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  height: 44px;
  border-radius: 8px;
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease,
              border-color 140ms ease, transform 140ms ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: #1A1A1A; color: var(--bg); transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline);
}
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-accent {
  background: var(--accent);
  color: #FFF;
}
.btn-accent:hover { background: var(--accent-hover); color: #FFF; transform: translateY(-1px); }
.btn-large { height: 48px; padding: 0 22px; font-size: 15px; }
.btn .arrow {
  display: inline-block;
  transition: transform 180ms cubic-bezier(.2,.7,.2,1);
}
.btn:hover .arrow { transform: translateX(3px); }

/* =========================================================================
   Hero
   ----------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(72px, 14vh, 144px) 0 clamp(60px, 12vh, 120px) 0;
  overflow: hidden;
}
.hero::before {
  /* Subtle radial wash behind the hero — the only "graphic" above fold. */
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  width: 90%;
  max-width: 900px;
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }

.hero-h1 {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: clamp(40px, 6.2vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  margin: 0 0 22px 0;
  max-width: 14ch;
  text-wrap: balance;
}
.hero-deck {
  font-family: 'Geist', sans-serif;
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.55;
  font-weight: 400;
  color: var(--ink-muted);
  max-width: 56ch;
  margin: 0 0 36px 0;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.hero-meta {
  margin-top: 32px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 13px;
  color: var(--ink-muted);
  font-feature-settings: "tnum" 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-meta-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #16A34A;
  box-shadow: 0 0 0 0 rgba(22,163,74, .5);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22,163,74,.5); }
  50%      { box-shadow: 0 0 0 6px rgba(22,163,74,0); }
}

/* =========================================================================
   Section: "How it works"
   ----------------------------------------------------------------------- */

.section-head {
  margin-bottom: clamp(40px, 6vw, 72px);
  max-width: 720px;
}
.section-h2 {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin: 0 0 12px 0;
  text-wrap: balance;
}
.section-deck {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-muted);
  margin: 0;
  max-width: 56ch;
  text-wrap: pretty;
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 40px);
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 880px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 48px; } }

.step {
  padding-top: 28px;
  border-top: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step-num {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}
.step-h3 {
  font-family: 'Geist', sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.step-body {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0;
  max-width: 36ch;
}

/* =========================================================================
   Section: Bento — "Built for serious staffing"
   ----------------------------------------------------------------------- */

.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) {
  .bento { grid-template-columns: 1fr 1fr; gap: 20px; }
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: clamp(24px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.bento-card:hover { border-color: #D4D4D2; box-shadow: 0 12px 32px -16px rgba(10,10,10,.08); }

.bento-h {
  font-family: 'Geist', sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.2;
}
.bento-body {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-muted);
  margin: 0;
  max-width: 38ch;
}
.bento-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.bento-tag-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

/* =========================================================================
   Section: CTA closer (dark band)
   ----------------------------------------------------------------------- */

.cta-closer {
  margin-top: 0;
  padding: 0;
  border-top: 0;
}
.cta-closer-inner {
  max-width: var(--container);
  margin: 0 var(--gutter);
  background: var(--ink-dark-bg);
  border-radius: 16px;
  padding: clamp(56px, 8vw, 96px) clamp(28px, 5vw, 64px);
  color: var(--ink-on-dark);
  text-align: center;
}
@media (min-width: 1264px) { .cta-closer-inner { margin: 0 auto; } }

.cta-closer-h2 {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.024em;
  color: #FFF;
  margin: 0 0 14px 0;
  text-wrap: balance;
}
.cta-closer-deck {
  font-size: 17px;
  line-height: 1.5;
  color: rgba(250, 250, 249, 0.7);
  margin: 0 auto 32px auto;
  max-width: 48ch;
}
.cta-closer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.cta-closer .btn-primary {
  background: var(--accent);
}
.cta-closer .btn-primary:hover { background: var(--accent-hover); }
.cta-closer .btn-secondary {
  background: transparent;
  color: var(--ink-on-dark);
  border-color: rgba(250,250,249,0.20);
}
.cta-closer .btn-secondary:hover {
  border-color: rgba(250,250,249,0.50);
  color: var(--ink-on-dark);
}

/* =========================================================================
   Footer
   ----------------------------------------------------------------------- */

.public-footer {
  border-top: 1px solid var(--hairline);
  padding: 40px 0 32px;
  margin-top: var(--section-y);
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 720px) { .footer-inner { grid-template-columns: 1fr auto; align-items: center; } }
.footer-mark { display: flex; align-items: center; gap: 10px; }
.footer-mark .footer-tag {
  font-size: 13px;
  color: var(--ink-muted);
  margin: 0;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links a {
  font-size: 13px;
  color: var(--ink-muted);
}
.footer-links a:hover { color: var(--ink); }
.footer-fine {
  font-size: 12px;
  color: var(--ink-muted);
  margin: 24px 0 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--hairline-soft);
}

/* =========================================================================
   LANDER pages (nurses + providers) — single-column form, premium
   ----------------------------------------------------------------------- */

.lander {
  padding: clamp(56px, 10vh, 96px) 0 clamp(72px, 12vh, 120px) 0;
}
.lander-head {
  max-width: 560px;
  margin: 0 auto clamp(36px, 6vw, 56px) auto;
  text-align: center;
}
.lander-h1 {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.024em;
  margin: 0 0 14px 0;
  text-wrap: balance;
}
.lander-deck {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

.form-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: clamp(24px, 3vw, 36px);
}

.form-card form { display: flex; flex-direction: column; gap: 18px; }

.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label {
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.003em;
}
.form-row .optional {
  margin-left: 4px;
  font-weight: 400;
  color: var(--ink-muted);
  font-size: 12px;
}
.form-row input,
.form-row select,
.form-row textarea {
  font-family: 'Geist', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  height: 44px;
  padding: 0 14px;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
  width: 100%;
}
.form-row textarea {
  height: auto;
  min-height: 96px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.5;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 0;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-row select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%236B6B6B' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
.form-hint {
  font-size: 12px;
  color: var(--ink-muted);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 540px) { .form-grid { grid-template-columns: 1fr 1fr; } }

.form-error {
  margin: 0 0 4px 0;
  padding: 10px 12px;
  font-size: 13px;
  color: #B91C1C;
  background: rgba(185, 28, 28, 0.06);
  border: 1px solid rgba(185, 28, 28, 0.16);
  border-radius: 8px;
}

.form-submit {
  width: 100%;
  margin-top: 6px;
}

.form-fine {
  font-size: 12px;
  color: var(--ink-muted);
  text-align: center;
  margin: 12px 0 0 0;
  line-height: 1.5;
}

/* =========================================================================
   Thanks page
   ----------------------------------------------------------------------- */

.thanks {
  padding: clamp(72px, 14vh, 144px) 0 clamp(48px, 10vh, 96px) 0;
  text-align: center;
}
.thanks-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px auto;
}
.thanks-h1 {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.024em;
  margin: 0 0 16px 0;
}
.thanks-deck {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 48ch;
  margin: 0 auto 32px auto;
}
.thanks-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--ink-muted);
}
.thanks-back:hover { color: var(--ink); }

/* =========================================================================
   Reduced motion
   ----------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* iOS form-field zoom prevention */
@media (max-width: 720px) {
  .form-row input,
  .form-row select,
  .form-row textarea { font-size: 16px; }
}
