/* ── Audit&Fix Free Website Scanner Styles ─────────────────────────────── */

.scan-intro {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  max-width: 560px;
  margin: 0 auto 1.5rem;
  text-align: center;
  line-height: 1.5;
}

.scan-h1-sub {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.15rem;
  margin: 0.4rem 0 1.5rem;
  text-align: center;
}

/* ── Page base ───────────────────────────────────────────────────────────── */

.scanner-page {
  background: #f7fafc;
  min-height: 100vh;
}

/* ── Hero banner overrides ───────────────────────────────────────────────── */
/* The scanner uses .hero from style.css (background image + gradient).
   We only extend/override here — no background duplication. */

.scan-hero-banner {
  /* .hero already has the background and padding-bottom:60px */
}

/* hero-body already flex; scanner sets max-width via .hero-body in style.css */
/* Limit content column width so right half shows background image */
.scan-hero-banner .hero-content {
  max-width: 520px;
}

/* Input form — inside .hero-content (white on dark) */
.scan-form {
  margin-bottom: 0;
}

.scan-input-row {
  display: flex;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  margin-bottom: 14px;
}

.scan-url-input {
  flex: 1;
  padding: 17px 20px;
  font-size: 1.05rem;
  border: none;
  background: #fff;
  color: #2d3748;
  min-width: 0;
}

.scan-url-input::placeholder {
  color: #a0aec0;
}

.scan-url-input:focus {
  background: #fffdf9;
  outline: 3px solid var(--color-blue-focus, #3182ce);
  outline-offset: 2px;
}

.scan-btn {
  padding: 17px 26px;
  font-size: 1rem;
  font-weight: 700;
  background: #e05d26;
  color: #fff;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
  flex-shrink: 0;
}

.scan-btn:hover:not(:disabled) {
  background: #c94e1f;
}

.scan-btn:disabled {
  background: #a0aec0;
  cursor: not-allowed;
}

.scan-form-note {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 10px;
}

.scan-error {
  background: #fff5f5;
  color: #c53030;
  border: 1px solid #feb2b2;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.9rem;
  margin-top: 12px;
}

.hero-scan-trust {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 16px;
}

/* ── Stage 2: Scanning progress ──────────────────────────────────────────── */

.scan-progress-inner {
  padding: 8px 0;
}

.scan-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: #e05d26;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 20px;
}

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

.scan-progress-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.scan-progress-steps {
  text-align: left;
  display: inline-block;
}

.progress-step {
  padding: 5px 0 5px 26px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  position: relative;
  transition: color 0.3s;
}

.progress-step::before {
  content: '○';
  position: absolute;
  left: 0;
}

.progress-step.active {
  color: #fff;
  font-weight: 600;
}

.progress-step.active::before {
  content: '◌';
  color: #e05d26;
}

.progress-step.done {
  color: #68d391;
}

.progress-step.done::before {
  content: '✓';
  color: #68d391;
}

.scan-progress-domain {
  margin-top: 14px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ── Stage 3: Score reveal ───────────────────────────────────────────────── */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.score-reveal {
  margin-bottom: 20px;
  animation: fadeIn 0.5s ease;
}

/* Centre score + domain against the issue-teaser box when results are showing */
.hero-content--results .score-reveal {
  text-align: center;
}
.hero-content--results .score-gauge-wrap {
  margin-left: auto;
  margin-right: auto;
}
.hero-content--results .score-domain-label,
.hero-content--results .score-context {
  text-align: center;
}

.score-gauge-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 10px;
}

.score-gauge {
  width: 220px;
  height: 132px;
}

.score-grade-wrap {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.score-grade {
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 800;
  padding: 2px 14px;
  border-radius: 6px;
  background: #1a365d;
  color: #fff;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.score-number-wrap {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.score-number {
  font-size: 3.2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.score-denom {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}

.score-domain-label {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 4px;
}

.score-context {
  margin-top: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

/* ── Issue teaser (on dark hero bg) ─────────────────────────────────────── */

.issue-teaser {
  margin-bottom: 16px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.07);
  animation: fadeIn 0.4s ease;
  max-width: 520px;
}

.teaser-free-peek {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.teaser-peek-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fc8181;
  margin-bottom: 4px;
}

.teaser-peek-factor {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.teaser-peek-score {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fc8181;
  background: rgba(252, 129, 129, 0.12);
  border: 1px solid rgba(252, 129, 129, 0.3);
  border-radius: 4px;
  padding: 1px 8px;
  margin-bottom: 6px;
}

.teaser-peek-reasoning {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  margin: 0;
}

.teaser-blur-wrap {
  position: relative;
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.15);
}

.teaser-blur-rows {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
}

.teaser-blur-row {
  height: 12px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  margin-bottom: 8px;
  width: 100%;
}

.teaser-blur-row--short {
  width: 55%;
  margin-bottom: 0;
}

.teaser-blur-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
}

.teaser-blur-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 5px 14px;
}

/* ── Email gate (on dark hero bg) ────────────────────────────────────────── */

.email-gate {
  max-width: 520px;
}

.email-gate-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.email-gate-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 14px;
  line-height: 1.5;
}

.email-input-row {
  display: flex;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #3182ce;
  max-width: 480px;
}

.email-input {
  flex: 1;
  padding: 13px 16px;
  font-size: 0.95rem;
  border: none;
  min-width: 0;
  background: #fff;
  color: #2d3748;
}

.email-input:focus {
  outline: 3px solid var(--color-blue-focus, #3182ce);
  outline-offset: 2px;
}

.email-btn {
  padding: 13px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  background: #3182ce;
  color: #fff;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
  flex-shrink: 0;
}

.email-btn:hover:not(:disabled) {
  background: #2c5282;
}

.email-btn:disabled {
  background: #a0aec0;
  cursor: not-allowed;
}

.email-optin-row {
  margin-top: 10px;
  margin-bottom: 2px;
}

.email-optin-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}

.email-optin-checkbox {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--color-orange);
}

.email-note {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 8px;
}

/* ── Results section (below fold) ────────────────────────────────────────── */

.scan-results-section {
  padding: 48px 20px 60px;
  background: #f7fafc;
}

.scan-results-inner {
  max-width: 860px;
  margin: 0 auto;
}

.factor-breakdown {
  animation: fadeIn 0.4s ease;
}

.factors-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a365d;
  margin-bottom: 16px;
}

.factor-list {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  margin-bottom: 28px;
}

.factor-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid #f7fafc;
}

.factor-row:last-child {
  border-bottom: none;
}

.factor-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.factor-dot.good {
  background: #48bb78;
}
.factor-dot.fair {
  background: #ed8936;
}
.factor-dot.needs_work {
  background: #fc8181;
}

.factor-name {
  flex: 1;
  font-size: 0.95rem;
  color: #2d3748;
}

.factor-status {
  font-size: 0.82rem;
  font-weight: 600;
  flex-shrink: 0;
}

.factor-status.good {
  color: #276749;
}
.factor-status.fair {
  color: #975a16;
}
.factor-status.needs_work {
  color: #c53030;
}

/* Free peek */
.free-peek {
  background: #fffbeb;
  border: 2px solid #f6e05e;
  border-radius: 12px;
  padding: 24px 24px 20px;
  margin-bottom: 32px;
  animation: fadeIn 0.5s ease;
}

.free-peek-badge {
  display: inline-block;
  background: #f6e05e;
  color: #744210;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.free-peek-factor {
  font-size: 1.05rem;
  font-weight: 700;
  color: #744210;
  margin-bottom: 10px;
}

.free-peek-score-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.free-peek-score {
  font-size: 1.4rem;
  font-weight: 800;
  color: #c53030;
  min-width: 48px;
}

.free-peek-bar-wrap {
  flex: 1;
  height: 8px;
  background: #fef9c3;
  border-radius: 4px;
  overflow: hidden;
}

.free-peek-bar {
  height: 100%;
  background: #c53030;
  border-radius: 4px;
  transition: width 0.8s ease;
  width: 0;
}

.free-peek-reasoning {
  font-size: 0.92rem;
  color: #744210;
  line-height: 1.6;
}

.js-heavy-note {
  background: #ebf8ff;
  border: 1px solid #bee3f8;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 0.88rem;
  color: #2c5282;
  line-height: 1.5;
}

/* ── Pricing hero card (single primary CTA) ───────────────────────────── */

.pricing-hero {
  margin-bottom: 16px;
}

.pricing-hero-card {
  background: #fff;
  border: 2px solid #e05d26;
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: 0 4px 24px rgba(224, 93, 38, 0.12);
  text-align: center;
}

.pricing-hero-header {
  margin-bottom: 16px;
}

.pricing-hero-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a365d;
  margin: 0 0 6px;
}

.pricing-hero-subtitle {
  font-size: 0.9rem;
  color: #4a5568;
  line-height: 1.5;
  margin: 0;
}

.pricing-hero-price {
  font-size: 2.4rem;
  font-weight: 900;
  color: #1a365d;
  margin-bottom: 16px;
  line-height: 1;
}

.pricing-hero-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  text-align: left;
  display: inline-block;
}

.pricing-hero-features li {
  font-size: 0.88rem;
  color: #4a5568;
  padding: 4px 0 4px 22px;
  position: relative;
  line-height: 1.4;
}

.pricing-hero-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: #48bb78;
  font-weight: 700;
}

/* ── Upgrade strip (implementation add-on) ─────────────────────────────── */

.pricing-upgrade-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #f7fafc;
  border: 2px dashed #cbd5e0;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 16px;
}

.pricing-upgrade-text {
  font-size: 0.88rem;
  color: #2d3748;
  line-height: 1.4;
}

.pricing-upgrade-text strong {
  display: block;
  margin-bottom: 2px;
}

.pricing-upgrade-text span {
  color: #4a5568;
  font-size: 0.84rem;
}

.pricing-upgrade-action {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.pricing-upgrade-price {
  font-size: 1rem;
  font-weight: 700;
  color: #1a365d;
  white-space: nowrap;
}

.pricing-upgrade-strip .pricing-cta-secondary {
  padding: 10px 16px;
  font-size: 0.85rem;
  white-space: nowrap;
}

.pricing-currency {
  font-size: 1.3rem;
  font-weight: 700;
  vertical-align: top;
  position: relative;
  top: 0.15em;
}
.cta-button .pricing-currency {
  font-size: inherit;
  vertical-align: baseline;
  position: static;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  flex: 1;
}

.pricing-features li {
  font-size: 0.86rem;
  color: #4a5568;
  padding: 4px 0 4px 20px;
  position: relative;
  line-height: 1.4;
}

.pricing-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: #48bb78;
  font-weight: 700;
}

.pricing-cta {
  display: block;
  text-align: center;
  padding: 13px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.15s,
    transform 0.1s;
  cursor: pointer;
  margin-top: auto;
}

.pricing-cta:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.pricing-cta-primary {
  background: #e05d26;
  color: #fff;
}

.pricing-cta-primary:hover {
  background: #c94e1f;
  color: #fff;
}

.pricing-cta-secondary {
  background: #1a365d;
  color: #fff;
}

.pricing-cta-secondary:hover {
  background: #2d5fa3;
  color: #fff;
}

/* ── Pricing footer notes ──────────────────────────────────────────────── */

.pricing-guarantee {
  text-align: center;
  font-size: 0.82rem;
  color: #718096;
  margin: 12px 0 0;
}

/* ── Exit-intent modal ──────────────────────────────────────────────────── */

.exit-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.exit-modal {
  background: #fff;
  border-radius: 14px;
  padding: 32px 28px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.exit-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #a0aec0;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.exit-modal-close:hover {
  color: #4a5568;
}

.exit-modal h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a365d;
  margin: 0 0 12px;
}

.exit-modal-body {
  font-size: 1.1rem;
  color: #2d3748;
  margin-bottom: 8px;
}

.exit-modal-body .exit-modal-amount {
  font-size: 1.3rem;
  font-weight: 900;
  color: #1a365d;
}

.exit-modal-desc {
  font-size: 0.86rem;
  color: #4a5568;
  line-height: 1.5;
  margin-bottom: 20px;
}

.exit-modal-cta {
  display: inline-block;
  background: #e05d26;
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}

.exit-modal-cta:hover {
  background: #c94e1f;
  color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
}

.exit-modal-guarantee {
  font-size: 0.78rem;
  color: #718096;
  margin: 12px 0 0;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .scan-hero-banner .hero-body {
    flex-direction: column;
    max-width: 100%;
    padding: 36px 24px 0;
  }

  .scan-hero-banner .hero-content {
    max-width: 100%;
  }

  .pricing-upgrade-strip {
    flex-direction: column;
    text-align: center;
  }

  .pricing-upgrade-action {
    flex-direction: column;
    width: 100%;
  }

  .pricing-upgrade-strip .pricing-cta-secondary {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .scan-hero-banner .hero-body {
    padding: 24px 16px 0;
  }

  .scan-input-row {
    flex-direction: column;
    border-radius: 10px;
  }

  .scan-url-input,
  .scan-btn {
    border-radius: 0;
    width: 100%;
  }

  .scan-btn {
    text-align: center;
  }

  .email-input-row {
    flex-direction: column;
  }

  .email-input,
  .email-btn {
    border-radius: 0;
  }

  .score-gauge {
    width: 180px;
    height: 108px;
  }

  .score-number {
    font-size: 2.6rem;
  }
}
