/* AEO Scanner – Frontend Styles */
.aeo-scanner-wrap {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: 720px;
  margin: 40px auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,.1);
  padding: 40px;
  box-sizing: border-box;
}
.aeo-scanner-wrap h1 {
  font-size: 28px;
  color: #1e293b;
  margin: 12px 0 14px;
  font-weight: 700;
}

/* Hero */
.aeo-hero { text-align: center; margin-bottom: 28px; }
.aeo-icon { font-size: 48px; display: block; margin-bottom: 12px; }
.aeo-hero h2 { font-size: 26px; color: #1e293b; margin: 0 0 8px; }
.aeo-hero p  { color: #64748b; font-size: 15px; margin: 0; }

/* Form rows */
.aeo-form-row {
  display: flex;
  gap: 10px;
  margin: 16px 0;
}
.aeo-form-row input {
  flex: 1;
  padding: 13px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: border-color .2s;
}
.aeo-form-row input:focus { border-color: #3b82f6; }

/* Buttons */
.aeo-btn {
  padding: 13px 22px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .1s;
  white-space: nowrap;
}
.aeo-btn:active { transform: scale(.98); }
.aeo-btn-primary  { background: #3b82f6; color: #fff; }
.aeo-btn-primary:hover  { background: #2563eb; }
.aeo-btn-secondary { background: #f1f5f9; color: #475569; }
.aeo-btn-secondary:hover { background: #e2e8f0; }
.aeo-btn:disabled { opacity: .6; cursor: not-allowed; }

.aeo-hint    { font-size: 12px; color: #94a3b8; text-align: center; margin: 0; }

/* Captcha */
.aeo-captcha-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 12px;
}
.aeo-captcha-label { font-size: 14px; color: #374151; flex: 1; }
.aeo-captcha-row input {
  width: 70px;
  padding: 8px 10px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 15px;
  text-align: center;
  outline: none;
}
.aeo-captcha-row input:focus { border-color: #3b82f6; }
.aeo-privacy { font-size: 12px; color: #94a3b8; text-align: center; margin: 8px 0 0; }

/* Error */
.aeo-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #dc2626;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-top: 8px;
}

/* Score ring */
.aeo-score-header {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #f8fafc;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
}
.aeo-score-ring {
  position: relative;
  width: 90px;
  height: 90px;
  flex-shrink: 0;
}
.aeo-score-ring svg { width: 90px; height: 90px; }
.aeo-arc { stroke: #3b82f6; transition: stroke-dashoffset 1s ease; }
.aeo-score-ring span {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 22px;
  font-weight: 700;
  color: #1e293b;
}
.aeo-score-meta h3 { margin: 0 0 4px; font-size: 18px; color: #1e293b; }
.aeo-url-display { font-size: 13px; color: #64748b; margin: 0; word-break: break-all; }

/* Preview label */
.aeo-preview-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  color: #374151;
}
.aeo-badge {
  background: #dcfce7;
  color: #16a34a;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
}

/* Results list */
.aeo-results-list { list-style: none; margin: 0 0 24px; padding: 0; }
.aeo-results-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
}
.aeo-results-list li:last-child { border-bottom: none; }
.aeo-status-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.aeo-check-label { font-weight: 600; color: #1e293b; font-size: 13px; margin-bottom: 2px; }
.aeo-check-short { color: #475569; }

/* Email gate */
.aeo-email-gate {
  background: linear-gradient(135deg, #f0f9ff, #eff6ff);
  border: 2px solid #bfdbfe;
  border-radius: 14px;
  padding: 28px;
  text-align: center;
}
.aeo-gate-lock { font-size: 36px; margin-bottom: 10px; }
.aeo-email-gate h4 { margin: 0 0 8px; font-size: 17px; color: #1e40af; }
.aeo-email-gate p  { font-size: 14px; color: #475569; margin: 0 0 16px; }

/* Success */
.aeo-success { text-align: center; padding: 20px 0; }
.aeo-success-icon { font-size: 60px; display: block; margin-bottom: 16px; }
.aeo-success h3 { font-size: 22px; color: #1e293b; margin: 0 0 10px; }
.aeo-success p  { color: #64748b; margin: 0 0 24px; }

/* Responsive */
@media (max-width: 520px) {
  .aeo-scanner-wrap { padding: 24px 16px; border-radius: 0; }
  .aeo-form-row { flex-direction: column; }
  .aeo-score-header { flex-direction: column; text-align: center; }
}

/* ── Introduction section ───────────────────────────────────────────────── */
.aeo-intro { margin-bottom: 0; }

.aeo-hero-sub {
  color: #475569;
  font-size: 15px;
  margin: 0 auto;
  max-width: 580px;
  line-height: 1.75;
  text-align: center;
}

.aeo-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.aeo-intro-card {
  border-radius: 10px;
  padding: 20px 22px;
  font-size: 14px;
  line-height: 1.65;
}

.aeo-intro-can {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.aeo-intro-cannot {
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.aeo-intro-card-title {
  font-weight: 700;
  font-size: 15px;
  color: #1e293b;
  margin: 0 0 12px;
  padding: 0;
  line-height: 1.3;
  border: none;
  background: none;
}

.aeo-intro-text {
  margin: 0 0 14px;
  font-size: 14px;
  color: #374151;
  line-height: 1.65;
}

.aeo-intro-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.aeo-intro-tags span {
  background: #fff;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

.aeo-intro-cannot .aeo-intro-tags span {
  border-color: #fde68a;
  color: #92400e;
}

.aeo-intro-note {
  margin-top: 14px;
  background: #fff;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #92400e;
  line-height: 1.6;
}

.aeo-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 24px 0;
}

.aeo-form-label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 10px;
}

/* Responsive */
@media (max-width: 560px) {
  .aeo-intro-grid { grid-template-columns: 1fr; }
}
