:root {
  --bg: #ffffff;
  --bg-card: #f8f8fa;
  --bg-card-hover: #f0f0f5;
  --border: #e5e5ed;
  --text: #1a1a2e;
  --text-muted: #6b6b80;
  --primary: #E51F5C;
  --primary-glow: rgba(229, 31, 92, 0.12);
  --accent: #4d65ff;
  --success: #1a9a6b;
  --success-bg: rgba(26, 154, 107, 0.08);
  --warn: #d97706;
  --warn-bg: rgba(217, 119, 6, 0.08);
  --fail: #dc2626;
  --fail-bg: rgba(220, 38, 38, 0.08);
  --radius: 10px;
  --radius-sm: 6px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: cubic-bezier(0.625, 0.05, 0, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  text-align: center;
  padding: 60px 0 40px;
}

.header-logo {
  display: inline-block;
  margin-bottom: 16px;
  transition: opacity 0.3s var(--transition);
}

.header-logo:hover {
  opacity: 0.8;
}

.niice-logo {
  height: 40px;
  width: auto;
}

header h1 {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

header p {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-top: 8px;
}

/* Scanner input */
.scanner {
  display: flex;
  gap: 12px;
  margin: 0 auto 48px;
  max-width: 600px;
}

.scanner input {
  flex: 1;
  padding: 14px 20px;
  font-size: 1rem;
  font-family: var(--font);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.3s var(--transition), box-shadow 0.3s var(--transition);
}

.scanner input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.scanner input::placeholder {
  color: var(--text-muted);
}

.scanner button,
button.cta-button,
.cta-button {
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font);
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.6s var(--transition), opacity 0.6s var(--transition);
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.scanner button:hover,
button.cta-button:hover,
.cta-button:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.scanner button:active,
button.cta-button:active,
.cta-button:active {
  transform: scale(0.98);
}

.scanner button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Scanned state header */
.scanned-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 auto 48px;
  max-width: 600px;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.scanned-site {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.scanned-favicon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  flex-shrink: 0;
}

.scanned-domain {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scanned-new-btn {
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font);
  background: var(--bg);
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s var(--transition), color 0.3s var(--transition);
}

.scanned-new-btn:hover {
  background: var(--primary);
  color: #fff;
}

@media (max-width: 640px) {
  .scanned-header {
    flex-direction: column;
    gap: 12px;
  }
  .scanned-new-btn {
    width: 100%;
  }
}

/* Turnstile widget */
.turnstile-container {
  display: flex;
  justify-content: center;
  margin: -20px auto 32px;
}

/* Loading */
.loading {
  display: none;
  text-align: center;
  padding: 60px 0;
}

.loading.active { display: block; }

.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

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

.loading p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.loading .scan-step {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Error */
.error {
  display: none;
  text-align: center;
  padding: 24px;
  margin-bottom: 32px;
  background: var(--fail-bg);
  border: 1px solid rgba(220, 38, 38, 0.15);
  border-radius: var(--radius);
  color: var(--fail);
}

.error.active { display: block; }

/* Results */
.results {
  display: none;
  padding-bottom: 80px;
}

.results.active { display: block; }

/* Score Circle */
.score-section {
  text-align: center;
  margin-bottom: 48px;
  position: relative;
}

.score-ring {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
}

.score-ring svg {
  transform: rotate(-90deg);
  width: 180px;
  height: 180px;
}

.score-ring .bg {
  fill: none;
  stroke: var(--border);
  stroke-width: 8;
}

.score-ring .progress {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease, stroke 0.5s;
}

.score-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.score-label {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.score-url {
  color: var(--text-muted);
  font-size: 0.9rem;
  word-break: break-all;
}

.celebration {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.celebration-img {
  max-width: 330px;
  border-radius: var(--radius);
}

@media (max-width: 768px) {
  .celebration {
    position: static;
    transform: none;
    margin-top: 16px;
  }
  .celebration-img {
    max-width: 140px;
  }
}

/* Technology Detection */
.tech-detection {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

.tech-detection h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
}

.tech-type {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* Check Grid */
.checks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 48px;
}

.checks-grid > .tech-detection {
  grid-column: 1 / -1;
}

.check-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: background 0.3s var(--transition), border-color 0.3s var(--transition);
}

.check-card:hover {
  background: var(--bg-card-hover);
  border-color: #d0d0dd;
}

.check-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.check-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.check-icon.pass { background: var(--success-bg); color: var(--success); }
.check-icon.warn { background: var(--warn-bg); color: var(--warn); }
.check-icon.fail { background: var(--fail-bg); color: var(--fail); }

.check-name {
  font-weight: 600;
  font-size: 0.95rem;
  flex: 1;
  color: var(--text);
}

.check-score {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--border);
  color: var(--text);
}

.check-message {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.check-details {
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  word-break: break-all;
}

.check-card.expanded .check-details {
  display: block;
}

.check-recommendation {
  margin-top: 12px;
  padding: 12px 14px;
  background: rgba(77, 101, 255, 0.05);
  border: 1px solid rgba(77, 101, 255, 0.12);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text);
  word-break: normal;
}

.check-recommendation strong {
  color: var(--accent);
}

.check-content {
  display: none;
  margin-top: 12px;
  padding: 14px;
  background: #f4f4f8;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-family: "SF Mono", Monaco, "Cascadia Mono", monospace;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 320px;
  overflow-y: auto;
}

.check-card.expanded .check-content {
  display: block;
}

.check-content::-webkit-scrollbar {
  width: 6px;
}

.check-content::-webkit-scrollbar-track {
  background: transparent;
}

.check-content::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.check-expand-hint {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.5;
}

.check-card.expanded .check-expand-hint {
  display: none;
}

/* Crawler Table */
.crawler-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 0.82rem;
  word-break: normal;
}

.crawler-table th {
  text-align: left;
  padding: 8px 12px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 2px solid var(--border);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.crawler-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}

.crawler-bot {
  font-family: "SF Mono", Monaco, "Cascadia Mono", monospace;
  font-weight: 600;
}

.crawler-allowed {
  color: var(--success);
  font-weight: 600;
}

.crawler-disallowed {
  color: var(--fail);
  font-weight: 600;
}

.crawler-unknown {
  color: var(--text-muted);
}

.signal-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  margin: 1px 2px;
}

.signal-yes {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
}

.signal-no {
  background: rgba(239, 68, 68, 0.12);
  color: var(--fail);
}

.content-signal-summary {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.content-signal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.content-signal-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.content-signal-icon.signal-configured {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.content-signal-icon.signal-restricted {
  background: rgba(234, 179, 8, 0.15);
  color: var(--warn);
}

.content-signal-icon.signal-missing {
  background: rgba(239, 68, 68, 0.1);
  color: var(--fail);
}

.content-signal-message {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: 30px;
}

.content-signal-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  margin-left: 30px;
  opacity: 0.8;
}

.content-signal-sources {
  display: flex;
  gap: 4px;
}

.signal-source-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* AI Bot View */
.ai-bot-view {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
}

.ai-bot-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.ai-bot-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.ai-bot-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.ai-bot-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.ai-bot-badge {
  margin-left: auto;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

.ai-bot-badge-pass {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(26, 154, 107, 0.15);
}

.ai-bot-badge-warn {
  background: var(--warn-bg);
  color: var(--warn);
  border: 1px solid rgba(217, 119, 6, 0.15);
}

.ai-bot-badge-fail {
  background: var(--fail-bg);
  color: var(--fail);
  border: 1px solid rgba(220, 38, 38, 0.15);
}

.ai-bot-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.ai-bot-pre {
  background: #f4f4f8;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 0.78rem;
  font-family: "SF Mono", Monaco, "Cascadia Mono", monospace;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 400px;
  overflow-y: auto;
  color: var(--text-muted);
  margin: 0;
}

.ai-bot-pre::-webkit-scrollbar {
  width: 6px;
}

.ai-bot-pre::-webkit-scrollbar-track {
  background: transparent;
}

.ai-bot-pre::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.ai-bot-markdown {
  color: var(--text);
  border-color: rgba(26, 154, 107, 0.2);
  background: rgba(26, 154, 107, 0.03);
}

.ai-bot-message {
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
  background: var(--fail-bg);
  border: 1px solid rgba(220, 38, 38, 0.1);
}

@media (max-width: 640px) {
  .ai-bot-header { flex-wrap: wrap; }
  .ai-bot-badge { margin-left: 0; }
}

/* Full Scan CTA */
.fullscan-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  margin-bottom: 32px;
  background: var(--bg-card);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s var(--transition);
}

.fullscan-cta:hover {
  border-color: var(--primary);
}

.fullscan-icon {
  font-size: 1.5rem;
  color: var(--primary);
  flex-shrink: 0;
}

.fullscan-text {
  flex: 1;
}

.fullscan-text h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--text);
}

.fullscan-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.fullscan-btn {
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font);
  background: var(--bg);
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s var(--transition), color 0.3s var(--transition);
}

.fullscan-btn:hover {
  background: var(--primary);
  color: #fff;
}

@media (max-width: 640px) {
  .fullscan-cta { flex-direction: column; text-align: center; }
  .fullscan-btn { width: 100%; }
}

/* Traffic Stat */
.traffic-stat {
  text-align: center;
  padding: 32px 24px;
  margin-bottom: 32px;
  background: linear-gradient(135deg, rgba(229, 31, 92, 0.04), rgba(77, 101, 255, 0.04));
  border: 1px solid rgba(229, 31, 92, 0.1);
  border-radius: var(--radius);
}

.traffic-stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin-bottom: 4px;
}

.traffic-stat-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto;
}

.traffic-stat-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 12px auto 0;
  line-height: 1.6;
  opacity: 0.75;
}

/* CTA / Contact Form */
.cta {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  overflow: hidden;
}

.cta-header {
  text-align: center;
  margin-bottom: 32px;
}

.cta-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.cta-header p {
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
}

.cta-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Carousel — stacked cards */
.cta-carousel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cta-carousel-track {
  position: relative;
  width: 100%;
  height: 300px;
}

.cta-carousel-track .cta-person {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s;
  cursor: pointer;
}

.cta-carousel-track .cta-person[data-pos="0"] {
  transform: translateY(0) scale(1);
  opacity: 1;
  z-index: 3;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.cta-carousel-track .cta-person[data-pos="1"] {
  transform: translateY(12px) scale(0.95);
  opacity: 0.6;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  pointer-events: none;
}

.cta-carousel-track .cta-person[data-pos="2"] {
  transform: translateY(24px) scale(0.9);
  opacity: 0.3;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  pointer-events: none;
}

.cta-carousel-dots {
  display: flex;
  gap: 8px;
}

.cta-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.3s, transform 0.3s;
  cursor: pointer;
}

.cta-dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

/* Person card */
.cta-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.cta-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
  margin-bottom: 16px;
}

.cta-person-info {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.cta-person-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.cta-person-role {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.cta-person-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.cta-contact-link {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s;
}

.cta-contact-link:hover {
  color: var(--primary);
}

.cta-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #0A66C2;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(10, 102, 194, 0.08);
  transition: background 0.2s;
}

.cta-linkedin:hover {
  background: rgba(10, 102, 194, 0.15);
}

.cta-linkedin svg {
  flex-shrink: 0;
}

.cta-person-quote {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-style: italic;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* Form wrapper */
.cta-form-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form input {
  padding: 14px 20px;
  font-size: 1rem;
  font-family: var(--font);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.3s var(--transition), box-shadow 0.3s var(--transition);
}

.contact-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.contact-form input::placeholder {
  color: var(--text-muted);
}

.contact-form .cta-button {
  margin-top: 4px;
}

.cta-reassurance {
  display: block;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  opacity: 0.8;
}

.contact-success {
  display: none;
  padding: 20px;
  background: var(--success-bg);
  border: 1px solid rgba(26, 154, 107, 0.15);
  border-radius: var(--radius);
  color: var(--success);
  font-weight: 600;
}

.contact-error {
  display: none;
  padding: 16px;
  background: var(--fail-bg);
  border: 1px solid rgba(220, 38, 38, 0.15);
  border-radius: var(--radius);
  color: var(--fail);
}

/* Mobile: stack person + form */
@media (max-width: 768px) {
  .cta-body {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .cta {
    padding: 28px 20px;
  }
}

/* Footer */
footer {
  text-align: center;
  padding: 40px 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
  margin-top: 60px;
}

.footer-photo {
  margin-bottom: 20px;
}

.footer-team-img {
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius);
  opacity: 0.85;
  transition: opacity 0.3s var(--transition);
}

.footer-team-img:hover {
  opacity: 1;
}

.footer-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s var(--transition);
}

.footer-link:hover {
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 640px) {
  header { padding: 40px 0 28px; }
  header h1 { font-size: 2rem; }
  .scanner { flex-direction: column; }
  .scanner button { width: 100%; }
  .checks-grid { grid-template-columns: 1fr; }
  .cta { padding: 28px 20px; }
  .score-ring { width: 140px; height: 140px; }
  .score-ring svg { width: 140px; height: 140px; }
  .score-value { font-size: 2.4rem; }
  .traffic-stat-number { font-size: 1.8rem; }
}
