/* Audience pages: /, /business, /candidates. One family on sites.css tokens.
   Archivo for headings, Outfit for body. One solid primary per screen. */

:root {
  --danger: #b3261e;
  --au-tint: #f2f2ef;
}

@media (prefers-color-scheme: dark) {
  :root {
    --danger: #ff8a80;
    --au-tint: #121214;
  }
}

.au-hero {
  padding: 56px 0 72px;
}

.au-hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.au-h1,
.au-h2,
.au-card h3,
.ev-job,
.pk-title,
.wl-done-title {
  font-family: Archivo, Outfit, "Avenir Next", sans-serif;
  text-wrap: balance;
}

.au-h1 {
  margin: 20px 0 0;
  font-size: clamp(34px, 9vw, 64px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
  overflow-wrap: break-word;
}

.au-sub {
  max-width: 34em;
  margin: 20px 0 32px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}

.au-section {
  padding: 88px 0;
}

.au-tinted {
  background: var(--au-tint);
}

.au-split {
  display: grid;
  gap: 32px;
  align-items: start;
}

.au-narrow > * {
  max-width: 760px;
}

.au-h2 {
  margin: 12px 0 0;
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.au-body,
.au-body p {
  margin: 16px 0 0;
  max-width: 38em;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
}

.text-link {
  display: flex;
  width: fit-content;
  margin-top: 8px;
  align-items: center;
  min-height: 48px;
  color: var(--accent-tint-text);
  font-weight: 600;
  text-underline-offset: 3px;
}

.au-levels {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.au-levels li {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  border-top: 1px solid var(--line);
  font-size: 16px;
}


/* Evidence card */
.ev,
.gap,
.pk {
  padding: 24px;
  border: 1px solid var(--line);
}

.ev-head,
.pk-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.ev-job,
.pk-title {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
}

.ev-who {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.ev-level {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-tint-text);
}

.ev-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.ev-row {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.ev-req {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
}

.mark {
  flex: none;
  font-size: 13px;
  font-weight: 600;
}

/* Point level words are neutral ink; weight carries emphasis. */
.mark { color: var(--ink); }
.mark-strong { font-weight: 700; }
.mark-some { font-weight: 500; }
.mark-none { font-weight: 400; color: var(--muted); }

.ev-quote {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.ev-quote-empty {
  font-style: italic;
}

.soon {
  font-weight: 600;
  color: var(--ink);
}

/* Packet */
.pk-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.pk-row .muted {
  font-size: 14px;
}

.pk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.pk-btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 15px;
  font-weight: 600;
}

.pk-on {
  border-color: var(--accent);
  color: var(--accent-tint-text);
}

/* Planned candidate preview */
.gap-band {
  margin: 20px 0 0;
  font-size: 17px;
}

.gap-label {
  margin-top: 20px;
}

.gap-list {
  margin: 8px 0 0;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

/* Fairness cards */
.au-cards {
  display: grid;
  gap: 16px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.au-card {
  padding: 24px;
  border: 1px solid var(--line);
}

.au-card h3 {
  margin: 0;
  font-size: 18px;
}

.au-card p {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

/* Plan */
.plan-block {
  margin-top: 32px;
}

.plan-head {
  margin: 8px 0 0;
  text-wrap: balance;
  font-size: 16px;
  font-weight: 600;
}

.plan > div > .muted {
  font-size: 14px;
  line-height: 20px;
  text-wrap: pretty;
}

.plan-more {
  margin: 16px 0 0;
  font-size: 14px;
  text-wrap: pretty;
  color: var(--muted);
}


.au-faq {
  margin-top: 32px;
}

.au-final {
  padding: 104px 0;
  text-align: center;
}

.au-final .au-narrow > * {
  margin-left: auto;
  margin-right: auto;
}

.au-final .au-body {
  margin-left: auto;
  margin-right: auto;
}

.au-center {
  justify-content: center;
  margin-top: 28px;
}

.au-final .fine {
  margin-top: 16px;
}

.demo-form .btn-link {
  min-height: 48px;
}

/* Waitlist form */
.wl-form {
  padding: 28px;
  border: 1px solid var(--line);
}

.wl-fields {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 14px;
  font-weight: 600;
}

.field input,
.field select {
  min-height: 48px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--ink) 28%, transparent);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: 400 16px Outfit, "Avenir Next", "Segoe UI", sans-serif;
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

.field input:focus-visible,
.field select:focus-visible,
.check input:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--highlight);
}

.field [aria-invalid="true"] {
  border-color: var(--danger);
  border-width: 2px;
}

/* Focus ring sits outside the field, offset, so it never reads as the
   red error border. */
.field input:focus-visible,
.field select:focus-visible,
.check input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  box-shadow: none;
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
  min-height: 48px;
}

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

.check a {
  color: var(--accent-tint-text);
}

.field-err {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--danger);
}

.wl-submit {
  width: 100%;
}

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

.wl-done-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.wl-done .muted {
  margin: 8px 0 0;
}

.ai-notice {
  max-width: 60em;
}

.footer-links a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}

/* Motion: a single soft rise. Off under reduced motion. */
.motion [data-rise] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

.motion [data-rise].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .motion [data-rise] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (min-width: 720px) {
  .au-cards { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .au-hero { padding: 96px 0 112px; }
  .au-hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 72px; }
  .au-split { grid-template-columns: 1fr 1fr; gap: 72px; }
  .au-section { padding: 120px 0; }
  .au-cards { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 380px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .ev, .gap, .pk, .wl-form { padding: 20px; }
}

/* The nav action is tinted, so the hero or section CTA stays the one solid
   primary on each screen. */
.nav .btn-primary.trial {
  background: var(--tint);
  color: var(--accent-tint-text);
}

/* Pass 2 */
.ev-level-row { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.ev-level { font-size: 14px; font-weight: 600; color: var(--ink); }
.meter { display: inline-flex; gap: 3px; }
.meter i { width: 20px; height: 8px; border-radius: 2px; background: var(--fill); }
.meter i.on { background: var(--accent); }

.hero-link {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 8px;
  color: var(--accent-tint-text); font-weight: 600; text-underline-offset: 3px;
}

.agree {
  display: grid; gap: 14px; margin: 6px 0 0; padding: 0;
  border: 0; background: none;
}
.agree-req { display: grid; gap: 4px; }
.agree .check { color: var(--ink); }
.check-opt { color: var(--muted); }
.agree-req .check input[aria-invalid="true"] { outline: 2px solid var(--danger); outline-offset: 2px; }
.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;
}

.au-fair { margin: 32px 0 0; padding: 0; list-style: none; max-width: 760px; }
.au-fair li { padding: 16px 0; border-top: 1px solid var(--line); font-size: 17px; line-height: 1.6; color: var(--muted); }
.au-fair strong { color: var(--ink); font-weight: 700; }

.next { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.next-label { margin: 0; font-size: 14px; font-weight: 600; }
.next-line { margin: 4px 0 0; font-size: 16px; color: var(--muted); }

.plan-more-list summary {
  display: flex; align-items: center; min-height: 48px; cursor: pointer;
  color: var(--accent-tint-text); font-weight: 600;
}
.au-lead { margin-bottom: 0; }

/* Shared hero scale: one size on all three pages. */
.au-h1 { font-size: clamp(34px, 4.4vw, 56px); }
@media (min-width: 960px) {
  .au-hero-grid { grid-template-columns: 1.25fr 1fr; gap: 64px; }
}

/* Approved subcopy: lead sentence, then a muted second line. */
.au-sub { color: var(--ink); }

/* Headline fit: 2 lines at 1280 on every page (longest line is
   "Screen every applicant on a req," at about 630px). */
.au-h1 { font-size: clamp(34px, 3.9vw, 50px); }
@media (min-width: 960px) {
  .au-hero-grid { grid-template-columns: 1.4fr 1fr; gap: 64px; }
}

/* Small screens: meter above the level words so they never wrap beside it;
   the secondary link aligns with the button edge when it wraps. */
.hero-link { padding: 0; margin-left: 8px; }
@media (max-width: 479px) {
  .ev-level-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-link { margin-left: 0; }
}
.plan-more-list summary::after { content: "+"; margin-left: 8px; font-weight: 500; }
.plan-more-list[open] summary::after { content: "\2212"; }

/* Pass 3 (DPL) */
/* 1) Invalid keeps a 1.5px danger border, focused or not. Focus is a 2px
   Lumen outline offset 3px. Errors sit 6px under their control. */
.field [aria-invalid="true"],
.field [aria-invalid="true"]:focus-visible {
  border: 1.5px solid var(--danger);
}
.field input:focus-visible,
.field select:focus-visible,
.check input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  box-shadow: none;
}
.field { gap: 0; }
.field label { margin-bottom: 8px; }
.field-err { margin-top: 6px; }
.agree-req { gap: 0; }
.agree-req .check input[aria-invalid="true"] { outline: 1.5px solid var(--danger); outline-offset: 2px; }
.agree-req .check input[aria-invalid="true"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; box-shadow: 0 0 0 1.5px var(--danger); }

/* 2) Consent text and links */
.check, .check span, .check a { font-size: 14px; line-height: 1.5; }
.check a { text-decoration: underline; text-underline-offset: 2px; }

/* 4) /business: lead under the headline, form top-aligned with it. */
.au-split-form { margin-top: 12px; }
.au-split-form .au-h2 { margin-top: 0; }
.au-lead-16 { margin: 12px 0 0; font-size: 16px; line-height: 1.55; color: var(--muted); max-width: 32em; }

/* 6) Wrapping */
h1, h2 { text-wrap: balance; }
.au-sub, .au-body, .au-lead-16, .au-lead { text-wrap: pretty; }
@media (max-width: 639px) {
  .au-sub, .au-body, .au-body p, .au-lead-16 { max-width: none; }
}

/* 3) 400px and below: compact nav pill. The visible pill is 36px; an
   invisible ::after extends the hit area to 48px tall and wide. */
@media (max-width: 400px) {
  .nav .btn.trial {
    position: relative;
    height: 36px;
    min-height: 36px;
    padding: 0 12px;
    font: 600 14px/1 Outfit, "Avenir Next", "Segoe UI", sans-serif;
  }
  .nav .btn.trial::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 48px;
    min-width: 48px;
    transform: translateY(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .field input, .field select { transition: none; }
}

/* Small screens: plain wrapping for leads; headings keep balance. */
@media (max-width: 639px) {
  .au-sub, .au-body, .au-body p, .au-lead-16, .au-lead { text-wrap: wrap; }
}

/* Pass 4 (DPL): plan checks. 16px check, 1.5px Lumen stroke, round caps,
   centred on the first 24px text line, 12px gap. */
.plan-list li {
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  line-height: 24px;
}
.check-icon {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 4px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.plan-more { margin-top: 20px; }

@media (max-width: 639px) {
  /* Closing CTA: link centred under the button, 16px gap, 48px tall. */
  .au-final .btn-row { flex-direction: column; align-items: center; gap: 16px; }
  .au-final .demo-form { justify-content: center; }
  .au-final .demo-form .btn-link { min-height: 48px; display: inline-flex; align-items: center; }

  /* Footer: two columns of 48px rows, email on its own row. */
  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
    width: 100%;
    margin-left: 0;
  }
  .footer-links a { min-height: 48px; justify-content: flex-start; }
  .footer-links a[href^="mailto:"] { grid-column: 1 / -1; }
}

/* p6 (Critiquito): calm plan card, levels meter, full-width primaries at 375 */
.plan-head { font-weight: 400; }
.plan .btn { margin-top: 40px; }
.plan-trial {
  display: block; width: fit-content; margin-top: 2px; padding: 14px 0; /* 48px tap target, text 16px below the button */
  font-size: 14px; line-height: 20px; color: var(--muted);
  text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px;
}
.plan-trial:hover { color: var(--ink); text-decoration-color: currentColor; }
.plan-trial:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
#levels .au-split > :last-child { max-width: 440px; }
.au-levels .meter { flex: none; }
@media (max-width: 639px) {
  .au-hero .btn-row .btn-primary, .plan .btn-primary, .wl-submit, .au-final .btn-primary { width: 100%; }
  .au-hero .btn-row { flex-direction: column; align-items: stretch; gap: 16px; }
  .au-hero .btn-row .hero-link { align-self: center; }
  .au-final .btn-row { align-items: stretch; }
}
#levels .au-body > p:first-child { margin-top: 0; }
#levels .au-split > :first-child > .eyebrow { margin-top: 0; }
#levels .au-split > .au-body { margin-top: 0; }
/* p9: pilot caps line, secondary, on the card's 8px rhythm. */
/* Brand neutrals (DESIGN_STANDARDS §3). Neutral 2-dk is secondary text on light;
   on dark it is 3.35:1 on the card surface (fails AA), so dark uses Neutral 2. */
:root { --neutral-2-dk: #6B6873; --neutral-2: #85828C; --plan-pilot-ink: var(--neutral-2-dk); }
@media (prefers-color-scheme: dark) { :root { --plan-pilot-ink: var(--neutral-2); } }
.plan .plan-pilot { margin: 8px 0 0; font-size: 14px; line-height: 20px; color: var(--plan-pilot-ink); text-wrap: pretty; }
/* p7 (DPL): at desktop the checks column starts level with the $49/mo figure. */
@media (min-width: 960px) {
  /* Symmetric card padding on the 8px grid: 48/48 desktop, 32/32 mobile (sides unchanged). */
  .plan { align-items: start; padding-top: 48px; padding-bottom: 48px; }
  /* Eyebrow line (19px) + price margin (16px): first check row starts level with $49/mo. */
  .plan-features { padding-top: 35px; }
}

/* /#wl lands below the sticky 64px nav (plus the iOS safe area). */
#wl { scroll-margin-top: calc(64px + env(safe-area-inset-top)); }
