/* ==========================================================================
   Free Website Check — form, loading state and report components.
   Loaded after services.css/landing.css and reuses their tokens; only adds
   what this tool genuinely needs beyond the shared component set.
   ========================================================================== */

.wc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  padding: clamp(56px, 8vw, 96px) clamp(28px, 8vw, 124px) clamp(48px, 6vw, 72px);
  border-bottom: 1px solid var(--services-line);
}
.wc-hero-copy { max-width: 640px; }
.wc-hero-copy h1 {
  margin: 18px 0 20px;
  font: 700 clamp(34px, 4.4vw, 58px)/1.04 var(--services-sans);
  letter-spacing: -.02em;
}
.wc-hero-copy h1 em { font-family: var(--services-serif); font-weight: 400; font-style: normal; }
.wc-hero-points {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wc-hero-points li {
  padding-left: 22px;
  position: relative;
  color: var(--services-muted);
  font-size: 14px;
  line-height: 1.6;
}
.wc-hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border: 1px solid var(--services-clay);
}

/* Form panel */
.wc-form-panel {
  background: var(--services-white);
  border: 1px solid var(--services-line);
  padding: clamp(26px, 3vw, 36px);
}
.wc-form { display: flex; flex-direction: column; gap: 16px; }
.wc-form-eyebrow {
  margin: 0 0 4px;
  color: var(--services-clay);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
}
.wc-field { display: flex; flex-direction: column; gap: 6px; }
.wc-field label { font: 500 13px/1.3 var(--services-sans); color: var(--services-ink); }
.wc-field input[type="text"],
.wc-field input[type="email"] {
  padding: 13px 14px;
  border: 1px solid var(--services-line);
  background: var(--services-paper);
  color: var(--services-ink);
  font: 400 15px/1.4 var(--services-sans);
}
.wc-field input:focus-visible { outline: 2px solid var(--services-sage-dark); outline-offset: 2px; }
.wc-field-check label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--services-muted);
  font-weight: 400;
  line-height: 1.5;
}
.wc-field-check input { margin-top: 3px; }
.wc-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wc-submit { width: 100%; justify-content: center; margin-top: 4px; }
.wc-form-note { margin: 0; color: var(--services-muted); font-size: 12px; line-height: 1.5; }
.wc-form-error {
  margin: 0;
  padding: 12px 14px;
  border-left: 2px solid #b3462c;
  background: rgba(179, 70, 44, .08);
  color: #7a2f1c;
  font-size: 13px;
  line-height: 1.5;
}

/* Loading state */
.wc-loading { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 20px 4px 4px; text-align: center; }
.wc-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid var(--services-line);
  border-top-color: var(--services-clay);
  border-radius: 50%;
  animation: wc-spin 1s linear infinite;
}
@keyframes wc-spin { to { transform: rotate(360deg); } }
.wc-loading p { margin: 0; color: var(--services-ink); font: 500 15px/1.4 var(--services-sans); }
.wc-loading-sub { color: var(--services-muted) !important; font-weight: 400 !important; font-size: 13px !important; }
.wc-form-panel--loading .wc-form { display: none; }

@media (max-width: 900px) {
  .wc-hero { grid-template-columns: 1fr; }
  .wc-hero-copy { max-width: none; }
}

/* Report */
.wc-report-section,
.wc-report {
  padding: clamp(40px, 5vw, 64px) clamp(28px, 8vw, 124px);
  border-bottom: 1px solid var(--services-line);
}
.wc-report-intro { max-width: 720px; margin-bottom: clamp(28px, 3.5vw, 44px); }
.wc-report-intro .services-hero-label { margin-bottom: 12px; }
.wc-report-intro h2 {
  margin: 0 0 12px;
  font: 700 clamp(28px, 3.2vw, 44px)/1.08 var(--services-sans);
  letter-spacing: -.02em;
}
.wc-report-intro-text { margin: 0; color: var(--services-muted); font-size: 15px; line-height: 1.7; }
.wc-report-failed h2 { color: var(--services-ink); }
.wc-report-failed p { max-width: 620px; color: var(--services-muted); font-size: 15px; line-height: 1.7; margin: 0 0 24px; }

.wc-group { margin-bottom: clamp(32px, 4vw, 48px); }
.wc-group h2 {
  margin: 0 0 6px;
  font: 700 20px/1.2 var(--services-sans);
  letter-spacing: -.01em;
  color: var(--services-ink);
}
.wc-group-intro { margin: 0 0 18px; color: var(--services-muted); font-size: 13px; line-height: 1.6; }
.wc-finding-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--services-line); }
.wc-finding { padding: 18px 0; border-bottom: 1px solid var(--services-line); }
.wc-finding-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.wc-finding-head h3 { margin: 0; font: 500 16px/1.3 var(--services-sans); letter-spacing: -.01em; color: var(--services-ink); }
.wc-finding p { margin: 8px 0 0; color: var(--services-muted); font-size: 14px; line-height: 1.65; }
.wc-finding-detail { margin-top: 6px !important; color: var(--services-clay) !important; font-size: 12px !important; font-family: monospace; }

.wc-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid var(--services-line);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--services-muted);
}
.wc-tag-high { border-color: #b3462c; color: #b3462c; }
.wc-tag-worth_improving { border-color: var(--services-clay); color: #8a6a4f; }
.wc-tag-nice_to_have { color: var(--services-muted); }

.wc-group-good .wc-finding-list { border-top-color: var(--services-line); }
.wc-group-good h2::before,
.wc-group-attention h2::before,
.wc-group-manual h2::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
}
.wc-group-good h2::before { background: #4c7a4a; }
.wc-group-attention h2::before { background: #b3462c; }
.wc-group-manual h2::before { background: var(--services-clay); }

/* .services-contact is a 2-column grid (text | auto-width actions). Its
   "auto" track sizes to the max-content (fully unwrapped) width of whatever
   sits in that column — fine for a single button, but a prose sentence
   (status message, save-note) unwrapped is very wide, which balloons the
   column and starves the heading. Two fixes: cap the column at a fixed
   width instead of "auto", and keep every column-2 element as ONE grid
   child (.wc-cta-side) so nothing auto-places into an implicit row/column
   and re-triggers the same max-content sizing. */
/* This CTA's side content (button + link + status + save-note) is bulkier
   than the single-button case .services-contact's 2-column grid was built
   for — even with correct track math, that much side content squeezes the
   heading column too tight at normal widths. Stack instead of forcing it
   into a side-by-side layout. */
.wc-cta { grid-template-columns: 1fr; row-gap: clamp(28px, 4vw, 40px); margin-top: clamp(8px, 2vw, 16px); }
.wc-cta-side { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.wc-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.wc-cta-status { margin: 0; min-height: 1.4em; color: var(--services-ink); font-size: 13px; }
.wc-save-note { margin: 0; color: var(--services-muted); font-size: 13px; }
.wc-save-note a { color: var(--services-ink); }

/* Sits between two same-background .services-introduction sections
   (transparency note, then this) — without a rule they'd read as one
   unbroken block instead of two distinct sections. */
.wc-next-step { border-top: 1px solid var(--services-line); }

@media (max-width: 640px) {
  .wc-finding-head { flex-direction: column; align-items: flex-start; gap: 6px; }
}
