/* ============================================
   Ascendus — Website Audit
   Matches editorial landing: photo hero + paper body
   ============================================ */

.audit-page {
  background: var(--paper);
}

/* ---------- Compact photo hero ---------- */

.audit-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  padding: 130px 0 64px;
  color: #fff;
  overflow: hidden;
}

.audit-intro {
  position: relative;
  z-index: 1;
  max-width: 36rem;
}

.audit-eyebrow-light {
  color: #9bb59f;
}

.audit-intro h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: #fff;
}

.audit-lede {
  margin: 0;
  max-width: 40ch;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}

/* ---------- Paper body ---------- */

.audit-body {
  padding: 56px 0 100px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.audit-panel {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(16, 20, 18, 0.06);
  border-radius: 0;
}

.audit-form {
  position: relative;
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.25rem;
}

.audit-form .form-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.75rem;
}

.audit-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.audit-input {
  flex: 1 1 240px;
  min-height: 52px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 0;
  padding: 0.85rem 1rem;
  box-shadow: none;
}

.audit-input::placeholder {
  color: var(--ink-faint);
}

.audit-input:focus {
  background: var(--white);
  border-color: var(--sage);
  color: var(--ink);
  box-shadow: 0 0 0 3px rgba(62, 97, 70, 0.18);
}

.audit-submit {
  min-height: 52px;
  white-space: nowrap;
}

.audit-submit:disabled {
  opacity: 0.65;
  transform: none;
  cursor: wait;
}

.audit-hint {
  margin: 0.85rem 0 0;
  font-size: 0.875rem;
  color: var(--ink-faint);
}

/* Invisible honeypot — bots fill it, humans never see it */
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.audit-alert {
  margin-bottom: 1.25rem;
  padding: 1rem 1.15rem;
  background: #f8ecec;
  border: 1px solid rgba(160, 60, 60, 0.22);
  color: #7a3030;
}

.audit-loading {
  text-align: center;
  padding: 3rem 1.5rem;
  margin-bottom: 1.25rem;
}

.audit-loading h2 {
  margin: 1.25rem 0 0.5rem;
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.audit-loading p {
  margin: 0 auto;
  max-width: 36ch;
  color: var(--ink-soft);
}

.loading-url {
  margin-top: 1rem !important;
  color: var(--sage) !important;
  word-break: break-all;
  font-size: 0.9rem;
  font-weight: 500;
}

.loading-orbit {
  width: 52px;
  height: 52px;
  margin: 0 auto;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--sage);
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.results-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: end;
  justify-content: space-between;
  padding: 1.75rem 1.5rem;
  margin-bottom: 1rem;
}

.results-header h2 {
  margin: 0.35rem 0 0.5rem;
  font-family: var(--font-display);
  color: var(--ink);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.results-url {
  color: var(--ink-soft);
  font-size: 0.95rem;
  word-break: break-all;
  transition: color var(--t) var(--ease);
}

.results-url:hover {
  color: var(--sage);
}

.score-grid {
  margin-bottom: 1rem;
}

.score-card {
  padding: 1.35rem 1.1rem;
  height: 100%;
  text-align: center;
}

.score-label {
  margin: 0 0 0.7rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.score-value {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}

.score-value.score-good { color: #3f9a58; }
.score-value.score-ok { color: #e0a01a; }
.score-value.score-poor { color: #e05645; }

.cwv-section,
.recs-section,
.results-cta {
  padding: 1.75rem 1.5rem;
  margin-bottom: 1rem;
}

.cwv-section h3,
.recs-section h3,
.results-cta h3 {
  margin: 0.35rem 0 1.15rem;
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.cwv-card {
  padding: 1rem 1.1rem;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  height: 100%;
}

.cwv-card .cwv-title {
  margin: 0 0 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.cwv-card .cwv-value {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.cwv-card .cwv-value.score-good { color: #3f9a58; }
.cwv-card .cwv-value.score-ok { color: #e0a01a; }
.cwv-card .cwv-value.score-poor { color: #e05645; }

.recs-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.recs-list li {
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}

.recs-list li:last-child {
  padding-bottom: 0;
}

.recs-list strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-weight: 600;
}

.recs-list p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.recs-empty {
  margin: 0;
  color: var(--ink-soft);
}

.results-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(
    135deg,
    rgba(62, 97, 70, 0.1),
    rgba(255, 255, 255, 0.75) 50%,
    rgba(168, 191, 174, 0.18)
  );
}

.results-cta p {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  max-width: 40ch;
}

@media (max-width: 991.98px) {
  .audit-hero {
    min-height: 44vh;
    align-items: center;
    text-align: center;
    padding: 120px 0 56px;
  }

  .audit-intro {
    margin-inline: auto;
  }

  .audit-lede {
    margin-inline: auto;
  }

  .audit-hero .hero-veil {
    background:
      linear-gradient(180deg, rgba(10, 14, 12, 0.45) 0%, rgba(10, 14, 12, 0.55) 45%, rgba(10, 14, 12, 0.72) 100%);
  }
}

@media (max-width: 575.98px) {
  .audit-body {
    padding: 40px 0 72px;
  }

  .audit-submit {
    width: 100%;
  }

  .results-header,
  .results-cta {
    align-items: stretch;
  }

  .results-header .audit-again,
  .results-cta .btn-solid {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading-orbit {
    animation: none;
    border-top-color: var(--sage);
  }
}
