/* XRAY AI — Base Styles
   Colours: primary #1E3A5F, accent #00C2CB, bg #F8F9FA,
   text #2D2D2D, success #28A745, warning #FFC107, danger #DC3545
*/

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #F8F9FA;
  color: #2D2D2D;
  line-height: 1.6;
}

/* Layout */
.app-container { max-width: 900px; margin: 0 auto; padding: 20px; }
.page-header { background: #1E3A5F; color: #fff; padding: 20px 32px; text-align: center; }
.page-header h1 { font-size: 24px; font-weight: 700; }
.page-header .accent { color: #00C2CB; }

/* Cards */
.card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Score Cards */
.scores-row { display: flex; gap: 20px; margin-bottom: 20px; }
.score-card {
  flex: 1;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  padding: 28px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.score-value {
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
}
.score-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748B;
  margin-top: 8px;
}
.score-context {
  font-size: 13px;
  color: #64748B;
  margin-top: 8px;
}
.score-green { color: #28A745; }
.score-amber { color: #FFC107; }
.score-red { color: #DC3545; }

/* Revenue Impact */
.revenue-box {
  background: linear-gradient(135deg, #FFF5F5, #FFF);
  border-left: 4px solid #DC3545;
  border-radius: 0 12px 12px 0;
  padding: 24px;
  margin-bottom: 20px;
}
.revenue-headline {
  font-size: 32px;
  font-weight: 800;
  color: #DC3545;
}
.revenue-detail {
  font-size: 14px;
  color: #475569;
  margin-top: 4px;
}
.revenue-disclaimer {
  font-size: 11px;
  color: #94A3B8;
  margin-top: 12px;
}

/* Issues */
.issue-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  border-left: 4px solid #1E3A5F;
}
.issue-name { font-size: 16px; font-weight: 600; color: #1E3A5F; }
.issue-desc { font-size: 14px; color: #475569; margin-top: 4px; }
.issue-impact { font-size: 13px; color: #DC3545; font-weight: 600; margin-top: 6px; }

/* Quick Wins */
.quick-win {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #E2E8F0;
}
.quick-win:last-child { border-bottom: none; }
.quick-win-number {
  width: 28px; height: 28px;
  background: #00C2CB;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.quick-win-title { font-weight: 600; color: #1E3A5F; }
.quick-win-desc { font-size: 13px; color: #475569; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: opacity 0.2s;
}
.btn:hover { opacity: 0.9; }
.btn-primary { background: #1E3A5F; color: #fff; }
.btn-secondary { background: #00C2CB; color: #fff; }
.btn-danger { background: #DC3545; color: #fff; }
.btn-outline { background: transparent; border: 2px solid #1E3A5F; color: #1E3A5F; }

.cta-section { text-align: center; padding: 32px 0; }
.cta-section .btn { margin: 8px; }
.cta-small { font-size: 12px; color: #94A3B8; margin-top: 12px; }

/* Section Headers */
.section-title {
  font-size: 20px;
  font-weight: 700;
  color: #1E3A5F;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #00C2CB;
}

/* Loading */
.loading-container {
  text-align: center;
  padding: 60px 20px;
}
.loading-spinner {
  width: 50px; height: 50px;
  border: 4px solid #E2E8F0;
  border-top-color: #00C2CB;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-message {
  font-size: 16px;
  color: #475569;
  margin-bottom: 12px;
}
.loading-sub {
  font-size: 13px;
  color: #94A3B8;
}

/* Progress bar */
.progress-bar-container {
  width: 100%;
  max-width: 400px;
  height: 6px;
  background: #E2E8F0;
  border-radius: 3px;
  margin: 20px auto;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #00C2CB, #1E3A5F);
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* Rate Limit */
.rate-limit-container {
  text-align: center;
  padding: 60px 20px;
  max-width: 500px;
  margin: 0 auto;
}
.rate-limit-icon { font-size: 48px; margin-bottom: 16px; }
.rate-limit-title { font-size: 22px; font-weight: 700; color: #1E3A5F; margin-bottom: 12px; }
.rate-limit-message { font-size: 15px; color: #475569; margin-bottom: 24px; }
.rate-limit-timer { font-size: 18px; font-weight: 600; color: #DC3545; margin-bottom: 24px; }

/* Error */
.error-container { text-align: center; padding: 60px 20px; }
.error-icon { font-size: 48px; margin-bottom: 16px; }
.error-title { font-size: 22px; font-weight: 700; color: #DC3545; margin-bottom: 12px; }
.error-message { font-size: 15px; color: #475569; margin-bottom: 24px; }

/* Navigation Bar */
.nav-bar {
  background: #1E3A5F;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.nav-logo {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
}
.nav-accent { color: #00C2CB; }
.nav-cta {
  padding: 8px 20px;
  font-size: 13px;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #1E3A5F 0%, #0F2A4A 100%);
  padding: 80px 24px 60px;
  text-align: center;
}
.hero-content {
  max-width: 680px;
  margin: 0 auto;
}
.hero-headline {
  font-size: 40px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero-subheading {
  font-size: 17px;
  color: #CBD5E1;
  line-height: 1.6;
  margin-bottom: 32px;
}
.hero-form {
  max-width: 440px;
  margin: 0 auto;
}
.hero-inputs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.hero-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  font-size: 15px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  outline: none;
  transition: border-color 0.2s;
}
.hero-input::placeholder { color: rgba(255,255,255,0.4); }
.hero-input:focus { border-color: #00C2CB; background: rgba(255,255,255,0.12); }
.hero-btn {
  width: 100%;
  padding: 16px;
  font-size: 17px;
  border-radius: 10px;
}
.hero-small {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-align: center;
  margin-top: 4px;
}

/* Section Headings */
.section-heading {
  font-size: 28px;
  font-weight: 700;
  color: #1E3A5F;
  text-align: center;
  margin-bottom: 16px;
}

/* How It Works */
.how-it-works {
  padding: 48px 0 32px;
}
.steps-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 24px;
}
.step-card {
  flex: 1;
  text-align: center;
  padding: 24px 16px;
  position: relative;
}
.step-number {
  width: 48px;
  height: 48px;
  background: #00C2CB;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  margin: 0 auto 14px;
}
.step-arrow {
  position: absolute;
  right: -14px;
  top: 36px;
  font-size: 24px;
  color: #CBD5E1;
}
.step-title {
  font-size: 16px;
  font-weight: 700;
  color: #1E3A5F;
  margin-bottom: 6px;
}
.step-desc {
  font-size: 14px;
  color: #64748B;
  line-height: 1.5;
}

/* Pricing Section */
.pricing-section {
  padding: 32px 0 48px;
}
.pricing-row {
  display: flex;
  gap: 20px;
  align-items: stretch;
}
.pricing-card {
  flex: 1;
  background: #fff;
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  position: relative;
  border: 2px solid transparent;
}
.pricing-highlight {
  border-color: #00C2CB;
  box-shadow: 0 4px 20px rgba(0,194,203,0.15);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #00C2CB;
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pricing-name {
  font-size: 18px;
  font-weight: 700;
  color: #1E3A5F;
  margin-bottom: 8px;
  text-align: center;
}
.pricing-price {
  text-align: center;
  margin-bottom: 8px;
}
.pricing-amount {
  font-size: 36px;
  font-weight: 800;
  color: #1E3A5F;
}
.pricing-period {
  font-size: 15px;
  color: #64748B;
}
.pricing-desc {
  font-size: 14px;
  color: #64748B;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.4;
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  flex-grow: 1;
}
.pricing-features li {
  padding: 5px 0;
  font-size: 14px;
  color: #334155;
}

/* Home Footer */
.home-footer {
  text-align: center;
  padding: 32px 0 24px;
  border-top: 1px solid #E2E8F0;
  font-size: 14px;
  color: #64748B;
}

/* Utility Pages (unsubscribe, cancel, 404) */
.utility-container {
  text-align: center;
  padding: 60px 20px;
  max-width: 500px;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 640px) {
  .scores-row { flex-direction: column; }
  .score-value { font-size: 42px; }
  .revenue-headline { font-size: 24px; }
  .cta-section .btn { display: block; margin: 8px 0; }

  .hero-headline { font-size: 28px; }
  .hero-subheading { font-size: 15px; }
  .hero-section { padding: 48px 16px 40px; }

  .steps-row { flex-direction: column; gap: 16px; }
  .step-arrow { display: none; }

  .pricing-row { flex-direction: column; }
  .pricing-card { margin-bottom: 12px; }

  .nav-cta { padding: 6px 14px; font-size: 12px; }
}
