/* ScopeShield - Shared Styles */
/* Dark theme, amber accents, Inter font */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg:      #0f1117;
  --bg-alt:  #0a0c10;
  --sf:      #1a1d27;
  --sf-2:    #22252f;
  --bd:      rgba(255,255,255,0.08);
  --bd-2:    rgba(255,255,255,0.12);
  --tx:      #e2e8f0;
  --tx-2:    #cbd5e1;
  --dm:      #64748b;
  --ac:      #f59e0b;
  --ac-h:    #fbbf24;
  --ac-d:    #d97706;
  --ac-bg:   rgba(245,158,11,0.08);
  --er:      #f87171;
  --er-bg:   rgba(248,113,113,0.08);
  --ok:      #4ade80;
  --ok-bg:   rgba(74,222,128,0.08);
  --ft:      'Inter', system-ui, -apple-system, sans-serif;
  --rd:      12px;
  --rd-sm:   8px;
  --tr:      0.2s ease;
  --shadow:  0 4px 24px rgba(0,0,0,0.3);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--ft);
  background: var(--bg);
  color: var(--tx);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--ac);
  text-decoration: none;
  transition: color var(--tr);
}
a:hover {
  color: var(--ac-h);
}

/* Layout */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Header */
.header {
  padding: 20px 0;
  border-bottom: 1px solid var(--bd);
  background: var(--bg-alt);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--tx);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo .shield {
  color: var(--ac);
  font-size: 1.5rem;
}
.header-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.header-nav a {
  color: var(--dm);
  font-size: 0.875rem;
  font-weight: 500;
}
.header-nav a:hover {
  color: var(--tx);
}

/* Cards */
.card {
  background: var(--sf);
  border: 1px solid var(--bd);
  border-radius: var(--rd);
  padding: 24px;
  margin-bottom: 16px;
  transition: border-color var(--tr);
}
.card:hover {
  border-color: var(--bd-2);
}
.card-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dm);
  margin-bottom: 8px;
}

/* Forms */
label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--tx-2);
  margin-bottom: 6px;
}

textarea, input[type="text"], input[type="number"], input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--bd);
  border-radius: var(--rd-sm);
  color: var(--tx);
  font-family: var(--ft);
  font-size: 0.9375rem;
  line-height: 1.5;
  transition: border-color var(--tr), box-shadow var(--tr);
  resize: vertical;
}
textarea:focus, input[type="text"]:focus, input[type="number"]:focus, input[type="email"]:focus {
  outline: none;
  border-color: var(--ac);
  box-shadow: 0 0 0 3px var(--ac-bg);
}
textarea::placeholder, input::placeholder {
  color: var(--dm);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--rd-sm);
  font-family: var(--ft);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--tr);
  text-decoration: none;
}
.btn-primary {
  background: var(--ac);
  color: #0f1117;
  width: 100%;
  padding: 16px;
  font-size: 1.0625rem;
}
.btn-primary:hover {
  background: var(--ac-h);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245,158,11,0.3);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn-secondary {
  background: var(--sf-2);
  color: var(--tx);
  border: 1px solid var(--bd);
}
.btn-secondary:hover {
  background: var(--sf);
  border-color: var(--bd-2);
}
.btn-outline {
  background: transparent;
  color: var(--ac);
  border: 1px solid var(--ac);
}
.btn-outline:hover {
  background: var(--ac-bg);
}

/* Result section */
.result-card {
  background: var(--sf);
  border: 1px solid var(--ok);
  border-radius: var(--rd);
  padding: 24px;
  margin-top: 24px;
}
.result-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ok);
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 20px;
}
.result-section {
  margin-bottom: 16px;
}
.result-section h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dm);
  margin-bottom: 8px;
}
.result-section p, .result-section li {
  color: var(--tx-2);
  line-height: 1.7;
}
.result-section ul {
  list-style: none;
  padding: 0;
}
.result-section ul li {
  padding: 6px 0 6px 20px;
  position: relative;
}
.result-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ac);
}

/* In-scope items have green dots */
.in-scope-list li::before {
  background: var(--ok);
}

/* Out of scope items */
.scope-item {
  background: var(--bg);
  border: 1px solid var(--bd);
  border-radius: var(--rd-sm);
  padding: 12px 16px;
  margin-bottom: 8px;
}
.scope-item .item-name {
  font-weight: 600;
  color: var(--tx);
  margin-bottom: 4px;
}
.scope-item .item-detail {
  font-size: 0.875rem;
  color: var(--dm);
}
.scope-item .item-cost {
  font-weight: 600;
  color: var(--ac);
}

/* Stats row */
.stats-row {
  display: flex;
  gap: 16px;
  margin: 16px 0;
}
.stat-box {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--bd);
  border-radius: var(--rd-sm);
  padding: 16px;
  text-align: center;
}
.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ac);
}
.stat-label {
  font-size: 0.75rem;
  color: var(--dm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* Action buttons row */
.action-row {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

/* Error display */
.error-box {
  background: var(--er-bg);
  border: 1px solid var(--er);
  border-radius: var(--rd-sm);
  padding: 12px 16px;
  color: var(--er);
  font-size: 0.9375rem;
  margin-top: 16px;
}

/* Loading state */
.loading-text {
  color: var(--dm);
  font-size: 0.875rem;
  margin-top: 8px;
  text-align: center;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.btn-loading {
  animation: pulse 2s ease-in-out infinite;
}

/* Hidden utility */
.hidden { display: none !important; }

/* Landing page styles */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}
.hero h1 {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--tx);
  max-width: 600px;
  margin: 0 auto 16px;
}
.hero h1 .highlight {
  color: var(--ac);
}
.hero .subtitle {
  font-size: 1.125rem;
  color: var(--dm);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.hero .btn {
  font-size: 1.125rem;
  padding: 16px 40px;
}

/* How it works section */
.section {
  padding: 60px 0;
}
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--tx);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  text-align: center;
  padding: 24px;
}
.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ac-bg);
  border: 2px solid var(--ac);
  color: var(--ac);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.step p {
  font-size: 0.875rem;
  color: var(--dm);
  line-height: 1.6;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 640px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--sf);
  border: 1px solid var(--bd);
  border-radius: var(--rd);
  padding: 32px 24px;
  text-align: center;
}
.pricing-card.featured {
  border-color: var(--ac);
  position: relative;
}
.pricing-card.featured::before {
  content: 'COMING SOON';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ac);
  color: #0f1117;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}
.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--tx);
  margin: 12px 0 4px;
}
.pricing-card .price-sub {
  font-size: 0.875rem;
  color: var(--dm);
  margin-bottom: 20px;
}
.pricing-card .plan-name {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ac);
}
.pricing-features {
  list-style: none;
  text-align: left;
  margin: 20px 0;
}
.pricing-features li {
  padding: 8px 0;
  font-size: 0.875rem;
  color: var(--tx-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-features li::before {
  content: '\2713';
  color: var(--ok);
  font-weight: 700;
}
.pricing-card.featured .pricing-features li.disabled {
  color: var(--dm);
}

/* Footer */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--bd);
  text-align: center;
  color: var(--dm);
  font-size: 0.8125rem;
}

/* Auth banner */
.auth-banner {
  background: var(--sf);
  border-bottom: 1px solid var(--bd);
  padding: 10px 0;
  font-size: 0.8125rem;
  color: var(--dm);
  text-align: center;
}
.auth-banner .email {
  color: var(--tx);
  font-weight: 500;
}
.auth-banner a {
  margin-left: 12px;
}

/* Usage counter */
.usage-counter {
  font-size: 0.8125rem;
  color: var(--dm);
  text-align: center;
  margin-top: 8px;
}
.usage-counter .count {
  color: var(--ac);
  font-weight: 600;
}

/* Auth modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  backdrop-filter: blur(4px);
}
.modal {
  background: var(--sf);
  border: 1px solid var(--bd);
  border-radius: var(--rd);
  padding: 32px;
  max-width: 400px;
  width: 90%;
  box-shadow: var(--shadow);
}
.modal h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.modal p {
  font-size: 0.9375rem;
  color: var(--dm);
  margin-bottom: 20px;
  line-height: 1.5;
}
.modal input {
  margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 640px) {
  .hero h1 {
    font-size: 1.75rem;
  }
  .hero .subtitle {
    font-size: 1rem;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  textarea, input[type="text"], input[type="number"], input[type="email"] {
    font-size: 16px;
  }
  .stats-row {
    flex-direction: column;
  }
  .action-row {
    flex-direction: column;
  }
  .container {
    padding: 0 16px;
  }
}
