/* Audit funnel — landing page and quiz.
   Depends on theme.css for tokens, buttons, header, footer and the modal.
   Class names here match what quiz.js renders; renaming them means changing that file. */

/* ================================================ AUDIT LANDING ======== */

.audit-landing { padding-bottom: 0; }

.audit-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--lw-hairline); }
.audit-hero__mark {
  position: absolute;
  right: -70px;
  top: 40px;
  width: clamp(280px, 32vw, 500px);
  opacity: 0.07;
  user-select: none;
  pointer-events: none;
}
.audit-hero__inner { position: relative; padding-block: 96px 80px; }

.audit-hero h1 {
  margin-top: 20px;
  font-weight: 800;
  /* The floor drives whether the CTA clears the fold on a 375x667 screen:
     at 38px this headline ran 8 lines and pushed the button 92px under it. */
  font-size: clamp(30px, 5.2vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 940px;
  text-wrap: balance;
}
.audit-hero .sub {
  margin-top: 22px;
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.5;
  color: var(--lw-ink-65);
  max-width: 640px;
  text-wrap: pretty;
}

.cta-block { margin-top: 32px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }

/* The secondary path sits under the primary CTA. Keep it findable but quieter,
   so it doesn't split intent at the point of decision. */
.cta-note { font-size: 14.5px; color: var(--lw-ink-45); }
.cta-note a { font-weight: 600; color: var(--lw-ink-55); text-decoration: underline; text-underline-offset: 2px; }
.cta-note a:hover { color: var(--lw-blue); }

/* ---- what you get ---- */

.get-card {
  margin-top: 0;
  padding: 44px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--lw-blue), #3D2FB8 55%, #5B3FD4);
  color: var(--lw-white);
}
.get-card h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: -0.025em; }
.get-card ul {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 16.5px;
  line-height: 1.5;
}
.get-card li { position: relative; padding-left: 20px; }
.get-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lw-cyan);
}
.get-card .rule { margin: 28px 0 18px; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.24); }
.get-card .foot { color: rgba(255, 255, 255, 0.82); font-size: 15px; }

.audit-section { padding-block: 80px; }
.audit-section--tight { padding-block: 64px; }

/* ---- who it's for / when it isn't ---- */

.two-col { display: grid; gap: 32px; }
@media (min-width: 40rem) { .two-col { grid-template-columns: 1fr 1fr; gap: 56px; } }

.two-col h3 { font-size: 19px; font-weight: 700; margin-bottom: 16px; letter-spacing: -0.015em; }
.two-col ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.two-col li {
  position: relative;
  padding-left: 18px;
  color: var(--lw-ink-72);
  font-size: 15.5px;
  line-height: 1.55;
  text-wrap: pretty;
}
.two-col li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lw-rule);
}

/* ---- proof + privacy ---- */

.proof-bar {
  padding-top: 40px;
  border-top: 1px solid var(--lw-hairline);
  text-align: center;
  font-family: var(--lw-mono);
  font-size: 12.5px;
  color: var(--lw-ink-45);
}
.privacy-line {
  margin: 14px auto 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--lw-ink-45);
  max-width: 38rem;
}
.privacy-line a { color: var(--lw-ink-55); text-decoration: underline; text-underline-offset: 2px; }

/* ---- staffing landing ---- */

/* This hero's headline is two sentences where the AI audit's is one, and the
   subhead runs to a second paragraph. At the 30px floor that pushed "Start the
   audit" below the fold on a 375x667 screen — the same failure documented in
   README under Sizing decisions. Scoped to this page so /ai-audit is untouched.
   If you edit the hero copy here, re-measure the button at 375x667. */
.staffing-landing .audit-hero h1 { font-size: clamp(27px, 5.2vw, 64px); }
.staffing-landing .audit-hero .sub + .sub { margin-top: 12px; }

/* ======================================================= QUIZ ========== */

.quiz-main { padding: 40px 0 9rem; }
@media (min-width: 48rem) { .quiz-main { padding-bottom: 4rem; } }

.progress-wrap { display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px; }
.progress-label {
  font-family: var(--lw-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--lw-ink-45);
}
.progress-track { height: 4px; border-radius: 2px; background: rgba(11, 21, 51, 0.1); overflow: hidden; }
.progress-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--lw-blue);
  transition: width 0.3s ease;
}

.step { display: flex; flex-direction: column; gap: 22px; max-width: 52rem; }
.step h1 {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.12;
  outline: none;
  text-wrap: balance;
}
.step-helper { color: var(--lw-ink-55); font-size: 16px; line-height: 1.55; max-width: 42rem; text-wrap: pretty; }

/* One line marking a change of subject, above the progress bar. Set apart from
   the question so it reads as the quiz talking, not as part of the item. */
.step-bridge {
  margin-bottom: 28px;
  padding-left: 14px;
  border-left: 2px solid var(--lw-blue);
  color: var(--lw-ink-55);
  font-size: 15.5px;
  line-height: 1.5;
  max-width: 42rem;
  text-wrap: pretty;
}
.step-group { display: flex; flex-direction: column; gap: 14px; }

/* ---- chips ---- */

.chip-row { display: flex; flex-wrap: wrap; gap: 11px; }

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 3.125rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--lw-border);
  background: var(--lw-white);
  color: var(--lw-ink);
  font-family: var(--lw-sans);
  font-size: 16px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.chip:hover:not(:disabled) { border-color: var(--lw-blue); }
.chip[aria-pressed='true'] {
  background: var(--lw-blue);
  border-color: var(--lw-blue);
  color: var(--lw-white);
}
.chip:disabled { opacity: 0.38; cursor: not-allowed; }
.chip:focus-visible { outline: 2px solid var(--lw-cyan); outline-offset: 2px; }

/* ---- fields ---- */

.field { display: flex; flex-direction: column; gap: 8px; }
.field-label { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.field-helper { font-size: 13.5px; color: var(--lw-ink-55); }

.field input[type='text'],
.field input[type='email'],
.field input[type='number'],
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--lw-border);
  border-radius: var(--lw-radius);
  background: var(--lw-white);
  font-family: var(--lw-sans);
  font-size: 15.5px;
  color: var(--lw-ink);
  outline: none;
}
.field input:focus,
.field textarea:focus { border-color: var(--lw-blue); }
.field textarea { min-height: 8.5rem; resize: vertical; line-height: 1.55; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(11, 21, 51, 0.38); }

.field-narrow { max-width: 20rem; }
.field-medium { max-width: 28rem; }

/* The custom-activity control is an input followed by an Add button. In a column
   flex the button stretches the full field width, which reads as a second CTA. */
.field-medium > input + .btn { align-self: flex-start; padding: 11px 22px; font-size: 15px; }

/* ---- hours sliders ---- */

.sliders {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px;
  border: 1px solid var(--lw-hairline);
  border-radius: var(--lw-radius);
  background: var(--lw-white);
}

.slider-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 6px; }
.slider-name { font-size: 15px; font-weight: 500; }
.slider-value {
  font-family: var(--lw-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 500;
  color: var(--lw-blue);
  white-space: nowrap;
}

input[type='range'] {
  width: 100%;
  height: 1.5rem;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
input[type='range']::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: rgba(11, 21, 51, 0.12);
}
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--lw-blue);
  border: 3px solid var(--lw-white);
  box-shadow: 0 1px 4px rgba(11, 21, 51, 0.28);
}
input[type='range']::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(11, 21, 51, 0.12); }
input[type='range']::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--lw-blue);
  border: 3px solid var(--lw-white);
  box-shadow: 0 1px 4px rgba(11, 21, 51, 0.28);
}
input[type='range']:focus-visible { outline: 2px solid var(--lw-cyan); outline-offset: 4px; }

/* ---- errors ---- */

.error-banner {
  padding: 0.8rem 1rem;
  border-radius: var(--lw-radius);
  background: rgba(217, 58, 43, 0.07);
  border: 1px solid rgba(217, 58, 43, 0.25);
  color: var(--lw-danger);
  font-size: 14.5px;
}

/* ---- sticky nav ---- */

.quiz-nav {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 20;
  padding: 0.875rem 0;
  background: rgba(245, 247, 251, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--lw-hairline);
}
@media (min-width: 48rem) {
  .quiz-nav {
    position: static;
    padding: 0;
    margin-top: 44px;
    background: none;
    backdrop-filter: none;
    border-top: 0;
  }
}
.quiz-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* Continue is the action that advances the funnel; Back is an escape hatch.
   Weight them accordingly rather than making them look like a matched pair. */
.quiz-nav-inner .btn-primary { font-size: 17px; font-weight: 700; min-height: 56px; padding: 15px 40px; }
.quiz-nav-inner .btn-secondary { font-size: 15.5px; padding: 13px 24px; min-height: 48px; }

/* ---- completion ---- */

.done { padding: 72px 0; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; max-width: 38rem; }
.done-mark {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(76, 199, 244, 0.16);
  color: var(--lw-blue);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 800;
}
.done h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -0.03em; outline: none; }
.done p { color: var(--lw-ink-72); font-size: 17px; line-height: 1.55; text-wrap: pretty; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 640px) {
  .audit-hero__inner { padding-block: 44px 48px; }
  .audit-section { padding-block: 56px; }
  .audit-section--tight { padding-block: 44px; }
  .get-card { padding: 28px 24px; border-radius: var(--lw-radius); }
  .quiz-main { padding-top: 24px; }
  .step { gap: 18px; }
  .sliders { padding: 18px; }

  /* Give Continue the room; Back only needs to be reachable. */
  .quiz-nav-inner .btn-primary { flex: 1; padding-inline: 20px; }
  .quiz-nav-inner .btn-secondary { flex: 0 0 auto; }

  /* The audit CTA goes full width like every other primary action on a phone. */
  .cta-block { align-self: stretch; width: 100%; }
  .cta-block .lw-btn--lg { width: 100%; }
}
