/* audit.css — Styles for the free listing audit tool at /audit */

/* === AUDIT PAGE LAYOUT === */
.audit-page {
  min-height: 100vh;
}

/* === HERO === */
.audit-hero {
  background: var(--slate);
  padding: clamp(48px, 8vw, 96px) var(--pad-x) clamp(40px, 6vw, 72px);
}
.audit-hero-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.audit-hero-inner .section-headline {
  color: var(--white);
  margin-bottom: 20px;
}
.audit-hero-inner .accent {
  color: var(--amber);
}
.audit-hero-sub {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Proof strip */
.audit-proof-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.proof-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 400;
}

/* === FORM SECTION === */
.audit-form-section {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.audit-form-card {
  background: var(--white);
  border-radius: 24px;
  padding: 40px 36px;
  box-shadow: 0 4px 40px rgba(30, 41, 59, 0.08);
  border: 1px solid rgba(30, 41, 59, 0.06);
}

.audit-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.88rem;
  color: #DC2626;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* Form elements */
.form-group {
  margin-bottom: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate);
  margin-bottom: 8px;
}
.label-optional {
  font-weight: 300;
  color: var(--slate-light);
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--slate);
  background: var(--offwhite);
  border: 1.5px solid rgba(30, 41, 59, 0.12);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
  background: var(--white);
}
.form-hint {
  font-size: 0.78rem;
  color: var(--slate-light);
  margin-top: 6px;
  font-weight: 300;
}

/* Submit button */
.audit-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  background: var(--amber);
  color: var(--slate);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  margin-top: 8px;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
  text-decoration: none;
}
.audit-submit-btn:hover {
  background: var(--amber-dim);
  transform: translateY(-1px);
}
.audit-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}
.btn-text, .btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.form-privacy {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--slate-light);
  margin-top: 12px;
  justify-content: center;
  font-weight: 300;
}

/* What we audit */
.audit-categories {
  padding-top: 8px;
}
.audit-cat-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--slate);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.audit-cat-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.audit-cat-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid rgba(30, 41, 59, 0.07);
}
.cat-icon {
  font-size: 1.4rem;
  width: 36px;
  text-align: center;
  flex-shrink: 0;
}
.cat-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate);
  margin: 0 0 2px;
}
.cat-desc {
  font-size: 0.78rem;
  color: var(--slate-light);
  margin: 0;
  font-weight: 300;
}

/* === RESULTS PAGE === */
.audit-result-page {
  min-height: 100vh;
  background: var(--cream);
}

/* Processing state */
.result-processing {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: var(--pad-x);
}
.processing-inner {
  text-align: center;
  max-width: 480px;
}
.processing-spinner {
  margin-bottom: 24px;
}
.processing-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--slate);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.processing-sub {
  font-size: 1rem;
  color: var(--slate-mid);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 16px;
}
.processing-note {
  font-size: 0.8rem;
  color: var(--slate-light);
}

/* Fallback / error */
.result-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: var(--pad-x);
}
.fallback-inner {
  text-align: center;
  max-width: 520px;
}
.fallback-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}
.fallback-sub {
  font-size: 1rem;
  color: var(--slate-mid);
  line-height: 1.7;
  margin-bottom: 16px;
}
.fallback-reason {
  font-size: 0.88rem;
  color: var(--slate-light);
  line-height: 1.65;
  margin-bottom: 28px;
}

/* Score hero */
.result-hero {
  padding: clamp(40px, 5vw, 64px) var(--pad-x);
}
.result-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 36px;
}
.result-score-circle {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
}
.result-score-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}
.result-score-denom {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 2px;
}
.result-hero-text {
  flex: 1;
}
.result-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.result-headline {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--slate);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.result-url {
  font-size: 0.82rem;
  color: var(--slate-light);
  margin-bottom: 8px;
  word-break: break-all;
}
.result-url a {
  color: var(--slate-light);
  text-decoration: underline;
}
.result-email-note {
  font-size: 0.85rem;
  color: var(--slate-mid);
  font-weight: 400;
}

/* Body content */
.result-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--pad-x) clamp(48px, 6vw, 80px);
}
.result-section {
  margin-bottom: 48px;
}
.result-section-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--slate);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.result-section-sub {
  font-size: 0.9rem;
  color: var(--slate-light);
  margin-bottom: 20px;
  font-weight: 300;
}

/* Sub-score grid */
.subscore-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.subscore-card {
  background: var(--white);
  border-radius: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(30, 41, 59, 0.07);
}
.subscore-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.subscore-icon { font-size: 1.1rem; flex-shrink: 0; }
.subscore-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate);
  flex: 1;
}
.subscore-num {
  font-size: 0.9rem;
  font-weight: 700;
}
.subscore-bar-bg {
  height: 6px;
  background: rgba(30, 41, 59, 0.08);
  border-radius: 4px;
  overflow: hidden;
}
.subscore-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}

/* Recommendations */
.rec-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rec-card {
  display: flex;
  gap: 16px;
  background: var(--white);
  border-radius: 16px;
  padding: 22px 24px;
  border: 1px solid rgba(30, 41, 59, 0.07);
  border-left: 4px solid var(--amber);
}
.rec-priority {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: rgba(30, 41, 59, 0.15);
  flex-shrink: 0;
  line-height: 1;
  padding-top: 2px;
}
.rec-category {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-dim);
  margin-bottom: 4px;
}
.rec-headline {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--slate);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.rec-detail {
  font-size: 0.9rem;
  color: var(--slate-mid);
  line-height: 1.65;
  font-weight: 300;
}

/* CTA */
.result-cta {
  background: var(--slate);
  border-radius: 24px;
  padding: 48px 40px;
  margin-top: 48px;
  text-align: center;
}
.result-cta-headline {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.result-cta-sub {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.result-cta .audit-submit-btn {
  width: auto;
  display: inline-flex;
}
.result-cta-note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 14px;
}

/* Footer links */
.result-footer-links {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(30, 41, 59, 0.08);
}
.audit-back-link {
  font-size: 0.88rem;
  color: var(--slate-light);
  text-decoration: none;
  transition: color 0.15s;
}
.audit-back-link:hover { color: var(--amber); }

/* Spinner animation */
.spin {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .audit-form-section {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .subscore-grid {
    grid-template-columns: 1fr;
  }
  .result-hero-inner {
    flex-direction: column;
    text-align: center;
  }
}
@media (max-width: 640px) {
  .audit-form-card { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .audit-proof-strip { gap: 12px; flex-direction: column; align-items: flex-start; }
  .result-cta { padding: 32px 24px; }
  .rec-card { padding: 18px; }
  .result-footer-links { flex-direction: column; gap: 12px; }
}
