:root {
  --paper: #f5f1e8;
  --card: #fffdf8;
  --ink: #172019;
  --ink-soft: #5d665f;
  --forest: #075a38;
  --forest-dark: #04452b;
  --mint: #dceee3;
  --line: #d9d6cd;
  --error: #8c3027;
  --error-bg: #fff1ed;
  --shadow: 0 22px 60px rgba(35, 47, 39, 0.11);
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid #51b77d;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  width: min(1180px, calc(100% - 48px));
  min-height: 76px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(23, 32, 25, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  color: var(--forest-dark);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-decoration: none;
}
.header-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
}
.header-meta a { text-underline-offset: 4px; }

.environment-notice {
  width: min(760px, calc(100% - 32px));
  margin: 14px auto 0;
  padding: 9px 14px;
  border: 1px solid #e2cb7b;
  border-radius: 8px;
  background: #fff8db;
  color: #5e4c14;
  font-size: 13px;
  text-align: center;
}

.hero {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 66px 0 58px;
}
.hero-copy { text-align: center; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--forest);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.hero-copy h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(46px, 6.4vw, 72px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.02;
}
.hero-copy > p:last-child {
  max-width: 640px;
  margin: 20px auto 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.journey-card {
  margin-top: 34px;
  padding: 28px;
  border: 1px solid rgba(23, 32, 25, 0.14);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.company-label-row > label {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 800;
}
.company-form { margin-top: 0; }
.company-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}
.company-input-shell {
  min-height: 68px;
  padding: 8px 10px 8px 16px;
  border: 1px solid #8c978f;
  border-radius: 12px;
  background: white;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.company-input-shell:focus-within {
  border-color: var(--forest);
  box-shadow: 0 0 0 4px rgba(7, 90, 56, 0.12);
}
.company-input-shell svg {
  width: 24px;
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-width: 1.8;
}
.company-input-shell input {
  width: 100%;
  min-width: 0;
  height: 46px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 19px;
  letter-spacing: 0.02em;
}
.company-input-shell input::placeholder { color: #909790; }
.auto-status {
  padding: 7px 10px;
  border-radius: 999px;
  background: #edf3ef;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}
.primary-button,
.secondary-button,
.handoff-button {
  border-radius: 9px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}
.primary-button,
.handoff-button {
  border: 1px solid var(--forest);
  background: var(--forest);
  color: white;
}
.primary-button {
  min-height: 48px;
  padding: 0 20px;
}
.primary-button:hover,
.handoff-button:hover { background: var(--forest-dark); }
.secondary-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  background: white;
  color: var(--ink);
}
.company-hint,
.form-feedback {
  min-height: 20px;
  margin: 7px 4px 0;
  font-size: 12px;
}
.company-hint { color: var(--ink-soft); }
.form-feedback { color: var(--error); }

.journey-result {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 300ms ease, opacity 220ms ease, margin 220ms ease;
}
.journey-result.has-content {
  max-height: 1200px;
  margin-top: 22px;
  overflow: visible;
  opacity: 1;
}
.lookup-state {
  min-height: 92px;
  padding: 18px;
  border-radius: 12px;
  background: #f1f4f1;
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 2px 13px;
}
.lookup-state small { grid-column: 2; color: var(--ink-soft); }
.spinner {
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  border: 3px solid #cfe3d6;
  border-top-color: var(--forest);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
.company-result,
.candidate-panel {
  padding-top: 22px;
  border-top: 1px solid var(--line);
  animation: reveal 220ms ease-out both;
}
.result-kicker {
  margin: 0 0 6px;
  color: var(--forest);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.company-result-heading h2,
.candidate-panel h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
}
.company-result-heading > p:last-child,
.candidate-panel > p:last-of-type {
  margin: 9px 0 0;
  color: var(--ink-soft);
}
.company-facts {
  margin: 20px 0;
  border-top: 1px solid var(--line);
}
.company-facts > div {
  min-height: 46px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 18px;
}
.company-facts dt { font-size: 12px; font-weight: 800; }
.company-facts dd { margin: 0; color: var(--ink-soft); font-size: 14px; }
.handoff-panel {
  padding: 18px;
  border-radius: 14px;
  background: #edf6f0;
}
.handoff-button {
  width: 100%;
  min-height: 58px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.handoff-summary {
  margin: 10px 2px 0;
  color: var(--ink-soft);
  font-size: 12px;
  text-align: center;
}
.provider-disclosure {
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid #c8ddd0;
  color: var(--ink-soft);
  font-size: 12px;
}
.provider-disclosure summary {
  color: var(--forest-dark);
  cursor: pointer;
  font-weight: 800;
}
.provider-disclosure p { margin: 8px 0 0; }
.stop-panel {
  padding: 18px;
  border: 1px solid #e4bbb5;
  border-radius: 12px;
  background: var(--error-bg);
  color: #6e2d27;
}
.stop-panel p { margin: 5px 0 0; }
.stop-panel .secondary-button { margin-top: 14px; }
.candidate-list {
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
  list-style: none;
}
.candidate-button {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 2px;
  text-align: left;
}
.candidate-button:hover { border-color: var(--forest); background: #f4faf6; }
.candidate-button span,
.candidate-button small { color: var(--ink-soft); }
.candidate-button span { font-size: 13px; }
.candidate-button small { font-size: 12px; }
.privacy-row {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 22px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}
.privacy-row span::before { content: "✓"; margin-right: 5px; color: var(--forest); }

.source-section,
.how-it-works,
.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}
.source-section {
  padding: 34px 40px;
  border-radius: 18px;
  background: var(--ink);
  color: white;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 36px;
}
.source-section .eyebrow { color: #83d8a6; }
.source-section h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.025em;
}
.source-section p:last-child { max-width: 720px; margin: 8px 0 0; color: #cbd2cd; }
.source-section > a {
  color: #a9e7c2;
  font-size: 13px;
  font-weight: 750;
  text-underline-offset: 4px;
}
.how-it-works { padding: 66px 0 72px; text-align: center; }
.how-it-works h2 {
  max-width: 680px;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.08;
}
.how-it-works ol {
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  list-style: none;
}
.how-it-works li {
  padding: 22px;
  border-top: 1px solid rgba(23, 32, 25, 0.22);
  display: grid;
  gap: 6px;
}
.how-it-works li > span {
  width: 30px;
  height: 30px;
  margin: 0 auto 5px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--forest);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.how-it-works small { color: var(--ink-soft); }
.site-footer {
  padding: 22px 0 30px;
  border-top: 1px solid rgba(23, 32, 25, 0.2);
  display: flex;
  justify-content: space-between;
  gap: 30px;
  color: var(--ink-soft);
  font-size: 11px;
}
.site-footer p { max-width: 540px; margin: 0; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes reveal {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 720px) {
  .site-header,
  .source-section,
  .how-it-works,
  .site-footer { width: calc(100% - 28px); }
  .site-header { min-height: 68px; }
  .brand { font-size: 24px; }
  .header-meta span { display: none; }
  .header-meta { font-size: 11px; }
  .hero { width: calc(100% - 24px); padding: 42px 0; }
  .hero-copy h1 { font-size: 45px; }
  .hero-copy > p:last-child { font-size: 16px; }
  .journey-card { margin-top: 26px; padding: 18px; border-radius: 16px; }
  .company-label-row { align-items: flex-start; }
  .company-input-shell { grid-template-columns: 25px minmax(0, 1fr); }
  .company-input-shell .primary-button { grid-column: 1 / -1; width: 100%; }
  .auto-status { display: none; }
  .company-facts > div { grid-template-columns: 1fr; gap: 1px; padding: 9px 0; }
  .privacy-row { flex-wrap: wrap; gap: 7px 16px; }
  .source-section { padding: 26px 22px; grid-template-columns: 1fr; gap: 18px; }
  .how-it-works { padding: 52px 0; }
  .how-it-works ol { grid-template-columns: 1fr; gap: 4px; }
  .site-footer { flex-direction: column; gap: 10px; }
}
