/* scan.css — AngleHawk Scan page styles */

/* ─── Scan Page Layout ─── */
.scan-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 32px 80px;
}

/* ─── Payment Success Banner ─── */
.payment-success-banner {
  display: none;
  background: rgba(80, 200, 120, 0.08);
  border: 1px solid rgba(80, 200, 120, 0.25);
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 0.88rem;
  color: #6ee89a;
  margin-bottom: 32px;
  text-align: center;
  animation: fadeSlideIn 0.4s ease;
}
.payment-success-banner.active { display: block; }
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Scan Header ─── */
.scan-header { text-align: center; margin-bottom: 48px; }
.scan-header h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 12px;
  line-height: 1.15;
}
.scan-header p { font-size: 1rem; color: var(--fg-2); max-width: 520px; margin: 0 auto; line-height: 1.65; }

/* ─── Form Card ─── */
.scan-form-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 40px;
  margin-bottom: 24px;
}
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.form-sublabel {
  display: block;
  font-size: 0.78rem;
  color: var(--fg-3);
  margin-bottom: 16px;
}
.scan-input-wrap { display: flex; gap: 12px; margin-bottom: 0; }
.scan-input {
  flex: 1;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.95rem;
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.scan-input::placeholder { color: var(--fg-3); }
.scan-input:focus {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.scan-submit {
  background: var(--accent);
  color: #0f0c07;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 24px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: 'DM Sans', system-ui, sans-serif;
  white-space: nowrap;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.scan-submit:hover { opacity: 0.85; }
.scan-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.sample-urls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.sample-chip {
  font-size: 0.75rem;
  color: var(--fg-2);
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 12px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  font-family: 'DM Sans', system-ui, sans-serif;
}
.sample-chip:hover { border-color: var(--accent-border); color: var(--fg); }

/* ─── Loading State ─── */
.scan-loading { display: none; text-align: center; padding: 64px 0; }
.scan-loading.active { display: block; }
.loading-spinner {
  width: 48px; height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.scan-loading p { font-size: 0.95rem; color: var(--fg-2); margin-top: 8px; }
.scan-loading small { font-size: 0.78rem; color: var(--fg-3); }

/* ─── Error ─── */
.scan-error {
  display: none;
  background: rgba(220, 80, 80, 0.1);
  border: 1px solid rgba(220, 80, 80, 0.3);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.85rem;
  color: #e06060;
  margin-bottom: 24px;
}
.scan-error.active { display: block; }

/* ─── Report Section ─── */
.report-section { display: none; }
.report-section.active { display: block; animation: fadeSlideIn 0.5s ease; }

.report-url-display {
  font-size: 0.75rem;
  color: var(--fg-3);
  font-family: 'Courier New', monospace;
  padding: 6px 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 28px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 580px;
}

/* ─── Demand Section ─── */
.demand-section { margin-bottom: 40px; }
.demand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid;
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.demand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.demand-reason { font-size: 0.9rem; color: var(--fg-2); max-width: 560px; line-height: 1.6; }

/* ─── Section Titles ─── */
.report-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  margin-top: 48px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}
.report-section-title:first-child { margin-top: 0; }

/* ─── Buyer Angles Grid ─── */
.angles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.angle-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}
.angle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.angle-num {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.3rem;
  color: var(--accent);
  opacity: 0.6;
  line-height: 1;
}
.angle-channel {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fg-3);
  text-transform: uppercase;
}
.angle-headline {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.35;
  margin-bottom: 14px;
}
.angle-ad-hook {
  background: var(--bg-3);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
}
.ad-hook-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.angle-ad-hook p { font-size: 0.8rem; color: var(--fg-2); line-height: 1.4; }
.proof-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 8px;
}
.angle-proof-points ul { list-style: none; }
.angle-proof-points li {
  font-size: 0.8rem;
  color: var(--fg-2);
  padding: 4px 0;
  border-bottom: 1px solid var(--border-light);
  line-height: 1.4;
}
.angle-proof-points li:last-child { border-bottom: none; }
.angle-objections { margin-top: 12px; }
.obj-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 8px;
}
.obj-chip {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--fg-2);
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px;
  margin-right: 4px;
  margin-bottom: 4px;
}

/* ─── Weaknesses & Next Steps ─── */
.weaknesses-card, .nextsteps-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
}
.weaknesses-card ul { list-style: none; }
.weaknesses-card li {
  font-size: 0.88rem;
  color: var(--fg-2);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.weaknesses-card li:last-child { border-bottom: none; }
.weaknesses-card li::before { content: '⚠'; color: var(--accent); flex-shrink: 0; }
.nextsteps-card ol {
  padding-left: 0;
  list-style: none;
  counter-reset: steps;
}
.nextsteps-card li {
  font-size: 0.88rem;
  color: var(--fg-2);
  padding: 10px 0 10px 36px;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  line-height: 1.5;
  counter-increment: steps;
}
.nextsteps-card li:last-child { border-bottom: none; }
.nextsteps-card li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 10px;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1rem;
  color: var(--accent);
  width: 24px;
  text-align: right;
  opacity: 0.7;
}

/* ─── CTA Card ─── */
.cta-card {
  background: var(--bg-2);
  border: 1px solid var(--accent-border);
  border-radius: 16px;
  padding: 28px 32px;
  margin-top: 40px;
  text-align: center;
  background: linear-gradient(180deg, rgba(232,150,46,0.05) 0%, var(--bg-2) 100%);
}
.cta-card h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.3rem;
  color: var(--fg);
  margin-bottom: 8px;
}
.cta-card p { font-size: 0.88rem; color: var(--fg-2); margin-bottom: 20px; }
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #0f0c07;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 28px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: 'DM Sans', system-ui, sans-serif;
  transition: opacity 0.2s;
}
.cta-btn:hover { opacity: 0.85; }
.cta-price { font-size: 0.78rem; color: var(--fg-3); margin-top: 12px; }

/* ─── Footer ─── */
.scan-footer {
  padding: 32px;
  border-top: 1px solid var(--border);
}
.scan-footer-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-logo {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1rem;
  color: var(--accent);
  display: block;
}
.footer-compliance p {
  font-size: 0.72rem;
  color: var(--fg-3);
  line-height: 1.6;
}

/* ─── Responsive ─── */
@media (max-width: 680px) {
  .scan-page { padding: 40px 20px 64px; }
  .scan-form-card { padding: 24px 20px; }
  .angles-grid { grid-template-columns: 1fr; }
  .scan-input-wrap { flex-direction: column; }
  .scan-submit { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .scan-header h1 { font-size: 1.8rem; }
}