/* Expert Human marketing site. No build step, no dependencies. */

:root {
  --bg: #F9FAFB;
  --panel: #FFFFFF;
  --text: #111827;
  --muted: #4B5563;
  --accent: #0F766E;
  --accent-hover: #115E59;
  --accent-tint: #F0FDFA;
  --accent-fill: #14B8A6;
  --accent-fill-hover: #2DD4BF;
  --data: #4F46E5;
  --green: #0F766E;
  --green-tint: #F0FDFA;
  --line: #E5E7EB;
  --line-strong: #D1D5DB;
  --error: #B42318;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1120px;
  --gutter: 24px;
  --radius: 10px;
  --section-y: 112px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }

h1, h2, h3 {
  font-weight: 700;
  color: var(--text);
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--text);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

.nowrap { white-space: nowrap; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(249, 250, 251, 0.96);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.wordmark:hover { color: var(--text); }
.wordmark-mark { width: 26px; height: 26px; flex: none; }

.nav-list {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-list a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
  padding: 6px 0;
}
.nav-list a:hover { color: var(--text); }

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.button-primary {
  background: var(--accent-fill);
  color: var(--text);
}
.button-primary:hover { background: var(--accent-fill-hover); color: var(--text); }

.button-secondary {
  background: var(--panel);
  color: var(--text);
  border-color: var(--line-strong);
}
.button-secondary:hover { border-color: var(--text); color: var(--text); }

.button-block { width: 100%; }

.button[disabled] { opacity: 0.65; cursor: progress; }

/* Shared */

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

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

.section h2 {
  font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 22ch;
}

.section-intro {
  margin-top: 16px;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.125rem;
}

/* Hero */

.hero { padding: 104px 0 112px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 1.4rem + 4.2vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.lede {
  margin-top: 24px;
  max-width: 34em;
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.5;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-note {
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.record { padding: 24px 24px 20px; }

.record-title {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.9375rem;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.record-list div {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.record-list dt { color: var(--muted); }
.record-list dd { color: var(--text); }

.verified-inline {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--green-tint);
  color: var(--green);
  font-size: 0.8125rem;
  font-weight: 600;
  vertical-align: 1px;
}

.record-note {
  margin-top: 14px;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Problem */

.stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 48px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stat {
  padding: 28px 28px 30px;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; }

.stat-figure {
  font-size: clamp(2.25rem, 1.8rem + 1.4vw, 3rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.stat-vs {
  font-size: 0.45em;
  letter-spacing: -0.01em;
  color: var(--muted);
  font-weight: 600;
}

.stat-text {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.ref {
  display: inline-block;
  margin-left: 3px;
  font-size: 0.75rem;
  line-height: 1;
  vertical-align: super;
  text-decoration: none;
  font-weight: 600;
}

/* How it works */

.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

.steps {
  list-style: none;
  counter-reset: step;
  margin-top: 40px;
}

.step {
  counter-increment: step;
  position: relative;
  padding: 0 0 32px 56px;
}

.step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--panel);
  font-weight: 600;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 40px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
}

.step:last-child { padding-bottom: 0; }

.step h3 {
  font-size: 1.1875rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.step p {
  margin-top: 6px;
  color: var(--muted);
  max-width: 46ch;
}

/* Example chat */

.example { position: relative; }

.example-label {
  display: inline-block;
  font-family: var(--mono);
  margin-bottom: 12px;
  padding: 3px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--panel);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}

.chat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.chat-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
}

.chat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
}

.chat-body {
  padding: 22px 20px 24px;
  display: grid;
  gap: 18px;
}

.msg { font-size: 0.9375rem; line-height: 1.55; }

.msg-user {
  justify-self: end;
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px 14px 4px 14px;
  background: #F3F4F6;
}

.msg-assistant > p { margin-bottom: 12px; }

.verdict {
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: 8px;
  padding: 16px 18px 14px;
  background: var(--panel);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
}
.badge svg { width: 14px; height: 14px; flex: none; }

.verdict-expert {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--muted);
}
.verdict-expert strong { color: var(--text); font-weight: 600; }

.verdict-quote {
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
}
.verdict-quote strong { font-weight: 600; }

.verdict-meta {
  font-family: var(--mono);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.verdict-meta span:not(:last-child)::after {
  content: "·";
  padding: 0 8px;
}

.verdict-attribution {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--muted);
}

.example-note {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Audiences */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.audiences .panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 40px;
  scroll-margin-top: 96px;
}

.audiences .panel h2 { max-width: none; }

.panel-lede {
  margin-top: 12px;
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 34ch;
}

.checklist {
  list-style: none;
  margin: 28px 0 32px;
  display: grid;
  gap: 14px;
  flex: 1;
}

.checklist li {
  position: relative;
  padding-left: 30px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-tint)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-4.9' fill='none' stroke='%230F766E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 14px 14px no-repeat;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 72px;
  align-items: start;
}

.contact-copy p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 40ch;
}

.contact-copy .contact-direct { font-size: 1rem; }

.form-panel { padding: 36px; }

.field {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
  min-width: 0;
}

.label {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  font-weight: 600;
  font-size: 0.9375rem;
}

.optional { font-weight: 400; color: var(--muted); }

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea { resize: vertical; min-height: 112px; }

input[type="text"]:hover,
input[type="email"]:hover,
textarea:hover { border-color: #9CA3AF; }

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.28);
}

[aria-invalid="true"] { border-color: var(--error) !important; }

.choice-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.choice:hover { border-color: #9CA3AF; }

.choice input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
  flex: none;
}

.choice:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-tint);
}

.choice:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.choice input:focus-visible { outline: none; }

.choice-group.is-invalid .choice { border-color: var(--error); }

.field-hint {
  margin-top: 6px;
  font-size: 0.875rem;
  color: var(--muted);
}

.field-error {
  margin-top: 6px;
  font-size: 0.875rem;
  color: var(--error);
  font-weight: 600;
}

.form-status:empty { display: none; }

.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.form-status:focus { outline: none; }

.form-status.is-error {
  background: #FDF1F0;
  border: 1px solid #F1C6C2;
  color: #7A1A12;
}
.form-status.is-error a { color: #7A1A12; font-weight: 600; }

.form-status.is-pending {
  background: #F3F4F6;
  color: var(--muted);
}

.form-success { text-align: left; }
.form-success:focus { outline: none; }
.success-mark { width: 40px; height: 40px; }
.form-success h3 { margin-top: 16px; font-size: 1.375rem; letter-spacing: -0.01em; }
.form-success p { margin-top: 8px; color: var(--muted); }

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 56px;
  background: var(--panel);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 40px;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-line a { color: var(--muted); }
.footer-line a:hover { color: var(--text); }

.sources-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.sources ol {
  padding-left: 1.25em;
  display: grid;
  gap: 4px;
}

.sources li:target {
  color: var(--text);
  background: var(--accent-tint);
  border-radius: 4px;
}

/* Responsive */

@media (max-width: 1024px) {
  :root { --section-y: 88px; }

  .hero-grid,
  .how-grid,
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }

  .hero { padding: 80px 0 88px; }
  .record { max-width: 560px; }
  .example { max-width: 600px; }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 900px) {
  .audience-grid { grid-template-columns: minmax(0, 1fr); }
  .audiences .panel-lede { max-width: 48ch; }
}

@media (max-width: 760px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 600px) {
  :root { --gutter: 20px; --section-y: 64px; }

  html { scroll-padding-top: 112px; }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding-top: 12px;
    padding-bottom: 6px;
    min-height: 0;
  }

  .nav-list { gap: 20px; }
  .nav-list a { display: inline-block; padding: 8px 0; font-size: 0.9375rem; }

  .hero { padding: 48px 0 64px; }
  .br-wide { display: none; }
  .hero-actions .button { width: 100%; }

  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat { border-left: 0; padding: 24px; }
  .stat + .stat { border-top: 1px solid var(--line); }

  .record { padding: 20px 18px 16px; }
  .record-list div { grid-template-columns: 92px minmax(0, 1fr); gap: 10px; }

  .chat-body { padding: 18px 14px 20px; }
  .verdict { padding: 14px 14px 12px; }

  .audiences .panel { padding: 28px 22px; }
  .audiences .panel .button { width: 100%; }

  .form-panel { padding: 24px 20px; }
}

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