/* ========== VARIABLES ========== */
:root {
  --dark: #1a1a1a;
  --pink: #E8336A;
  --pink-hover: #d42a5e;
  --beige: #F5F0EB;
  --white: #ffffff;
  --gray-100: #f7f7f7;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-500: #737373;
  --gray-700: #404040;
  --green: #22c55e;
  --orange: #f59e0b;
  --red: #ef4444;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 24px rgba(0,0,0,0.08), 0 12px 48px rgba(0,0,0,0.04);
}

/* ========== RESET ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--beige);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
}

a {
  color: var(--pink);
  text-decoration: none;
}

img {
  max-width: 100%;
}

.hidden {
  display: none !important;
}

/* ========== LAYOUT ========== */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
}

.section.results {
  min-height: auto;
  align-items: flex-start;
  padding-top: 60px;
  padding-bottom: 100px;
}

.section.lead-capture {
  min-height: auto;
  padding: 80px 0;
}

/* ========== HERO ========== */
.hero .container {
  width: 100%;
}

.hero-badge {
  display: inline-block;
  background: var(--dark);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 16px;
  color: var(--dark);
}

.accent {
  color: var(--pink);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--gray-500);
  margin-bottom: 40px;
  max-width: 520px;
}

/* ========== STEP INDICATOR ========== */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-200);
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-300);
  white-space: nowrap;
}

.step.active {
  color: var(--pink);
  font-weight: 600;
}

.step.done {
  color: var(--green);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  border: 2px solid var(--gray-300);
  color: var(--gray-300);
}

.step.active .step-number {
  border-color: var(--pink);
  background: var(--pink);
  color: var(--white);
}

.step.done .step-number {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}

.step-line {
  width: 32px;
  height: 2px;
  background: var(--gray-200);
  margin: 0 8px;
  flex-shrink: 0;
}

.step-line.filled {
  background: var(--green);
}

/* Form hints */
.form-hint {
  display: block;
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 4px;
}

/* Lead capture step indicator on dark bg */
.lead-capture-card .step-indicator {
  border-bottom-color: var(--gray-200);
}

/* ========== FORMS ========== */
.audit-form, .lead-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark);
  font-family: 'Inter', sans-serif;
}

.form-group input[type="url"],
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
  background: var(--white);
  color: var(--dark);
}

.form-group input:focus {
  outline: none;
  border-color: var(--pink);
}

.input-with-prefix {
  position: relative;
}

.input-prefix {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
  font-size: 16px;
  font-weight: 500;
}

.input-with-prefix input {
  padding-left: 36px !important;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-section-title {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  margin-top: 8px;
  margin-bottom: 16px;
  color: var(--gray-700);
}

/* Checkboxes */
.checkbox-group {
  margin-bottom: 24px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s;
  font-size: 15px;
  line-height: 1.4;
}

.checkbox-label:hover {
  background: var(--gray-100);
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border: 2px solid var(--gray-300);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  margin-top: 1px;
}

.checkbox-label input:checked + .checkmark {
  background: var(--pink);
  border-color: var(--pink);
}

.checkbox-label input:checked + .checkmark::after {
  content: '';
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 32px;
  background: var(--pink);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover {
  background: var(--pink-hover);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  display: block;
  margin: 40px auto 0;
  padding: 14px 32px;
  background: transparent;
  color: var(--gray-500);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: var(--dark);
  color: var(--dark);
}

/* ========== LOADING ========== */
.loading {
  background: var(--dark);
  color: var(--white);
}

.loading-content {
  text-align: center;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: var(--pink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 24px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading h2 {
  margin-bottom: 8px;
}

.loading-status {
  color: var(--gray-300);
  margin-bottom: 40px;
}

.loading-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 300px;
  margin: 0 auto;
  text-align: left;
}

.loading-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--gray-300);
}

.step-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.step-icon.pending {
  border: 2px solid var(--gray-500);
}

.step-icon.active {
  border: 2px solid var(--pink);
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}

.step-icon.done {
  background: var(--green);
  border: none;
}

.step-icon.done::after {
  content: '✓';
  color: white;
  font-weight: bold;
}

.loading-step.current span {
  color: var(--white);
  font-weight: 500;
}

/* ========== LEAD CAPTURE ========== */
.lead-capture {
  background: var(--dark);
  color: var(--white);
}

.lead-capture-card {
  background: var(--white);
  color: var(--dark);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.lead-capture-card h2 {
  margin-bottom: 8px;
  font-size: 1.8rem;
}

.lead-capture-card > p {
  color: var(--gray-500);
  margin-bottom: 28px;
}

.lead-form {
  background: transparent;
  padding: 0;
  box-shadow: none;
  text-align: left;
}

.score-teaser {
  margin-bottom: 24px;
}

.score-circle-mini {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 12px;
}

.score-circle-mini svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-circle-mini .score-bg {
  fill: none;
  stroke: var(--gray-200);
  stroke-width: 8;
}

.score-circle-mini .score-fill {
  fill: none;
  stroke: var(--pink);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 339.292;
  stroke-dashoffset: 339.292;
  transition: stroke-dashoffset 1s ease;
}

.score-value-mini {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
}

.score-teaser-text {
  font-weight: 600;
  color: var(--green);
  font-size: 15px;
}

.privacy-note {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 16px;
}

/* ========== RESULTS ========== */
.results .container {
  width: 100%;
}

.results-header {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 40px;
  padding: 40px;
  background: var(--dark);
  border-radius: var(--radius-lg);
  color: var(--white);
}

.score-circle {
  position: relative;
  width: 160px;
  height: 160px;
  min-width: 160px;
}

.score-circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-circle .score-bg {
  fill: none;
  stroke: rgba(255,255,255,0.1);
  stroke-width: 10;
}

.score-circle .score-fill {
  fill: none;
  stroke: var(--pink);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 565.486;
  stroke-dashoffset: 565.486;
  transition: stroke-dashoffset 1.5s ease;
}

.score-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.score-value {
  font-size: 48px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  line-height: 1;
}

.score-label {
  font-size: 16px;
  color: var(--gray-300);
}

.score-meta h2 {
  margin-bottom: 4px;
}

.score-url {
  color: var(--gray-300);
  font-size: 14px;
  word-break: break-all;
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

/* Diagnostic Express */
.diagnostic-express h3 {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.diagnostic-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.5;
}

.diagnostic-icon {
  font-size: 16px;
  min-width: 24px;
  text-align: center;
}

/* Categories */
.categories-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.category-icon {
  font-size: 28px;
  min-width: 40px;
  text-align: center;
}

.category-info {
  flex: 1;
}

.category-info h3 {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.category-score-bar {
  height: 8px;
  background: var(--gray-200);
  border-radius: 100px;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 1s ease, background-color 0.3s;
  width: 0%;
}

.category-score {
  font-size: 18px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}

/* Criteria items */
.criteria-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--gray-100);
  font-size: 14px;
}

.criteria-status {
  font-size: 14px;
  min-width: 20px;
  text-align: center;
  margin-top: 1px;
}

.criteria-label {
  flex: 1;
  color: var(--gray-700);
}

.criteria-points {
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  padding: 2px 8px;
  border-radius: 100px;
  background: var(--gray-100);
}

.criteria-points.earned {
  background: #dcfce7;
  color: #166534;
}

.criteria-points.missed {
  background: #fef2f2;
  color: #991b1b;
}

/* Benchmark */
.benchmark-card {
  display: flex;
  gap: 20px;
  align-items: center;
}

.benchmark-icon {
  font-size: 36px;
}

.benchmark-content h3 {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.benchmark-content p {
  font-size: 15px;
  color: var(--gray-700);
}

/* CTA Card */
.cta-card {
  text-align: center;
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  margin-top: 20px;
}

.cta-card h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 12px;
}

.cta-card > p {
  color: var(--gray-300);
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.btn-cta {
  max-width: 420px;
  margin: 0 auto;
}

.cta-subtitle {
  margin-top: 12px;
  font-size: 13px;
  color: var(--gray-500);
}

/* ========== FOOTER ========== */
.footer {
  text-align: center;
  padding: 24px 20px;
  font-size: 14px;
  color: var(--gray-500);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: fadeInUp 0.5s ease backwards;
}

.categories-grid .card:nth-child(1) { animation-delay: 0.1s; }
.categories-grid .card:nth-child(2) { animation-delay: 0.2s; }
.categories-grid .card:nth-child(3) { animation-delay: 0.3s; }
.categories-grid .card:nth-child(4) { animation-delay: 0.4s; }

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
  .section {
    padding: 40px 0;
  }

  .audit-form, .lead-capture-card {
    padding: 24px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .results-header {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
    gap: 20px;
  }

  .score-circle {
    width: 140px;
    height: 140px;
    min-width: 140px;
  }

  .score-value {
    font-size: 40px;
  }

  .category-header {
    flex-wrap: wrap;
  }

  .benchmark-card {
    flex-direction: column;
    text-align: center;
  }

  .cta-card {
    padding: 32px 20px;
  }
}
