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

:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --green: #16a34a;
  --red: #dc2626;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.10), 0 2px 4px -1px rgba(0,0,0,.06);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--gray-50);
  color: var(--gray-900);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
}

/* NAV */
nav {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo { font-weight: 700; font-size: 17px; color: var(--blue); letter-spacing: -.3px; }
.nav-right { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--gray-600); }
.nav-right button { background: none; border: none; cursor: pointer; color: var(--gray-600); font-size: 13px; padding: 4px 8px; border-radius: 6px; }
.nav-right button:hover { background: var(--gray-100); }

/* LAYOUT */
.container { max-width: 640px; margin: 0 auto; padding: 40px 20px 80px; }
.screen { display: none; }
.screen.active { display: block; }

/* CARDS */
.card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

/* TYPOGRAPHY */
h1 { font-size: 28px; font-weight: 700; line-height: 1.25; letter-spacing: -.4px; }
h2 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.subtitle { color: var(--gray-600); margin-top: 8px; font-size: 15px; }
.label { font-size: 13px; font-weight: 500; color: var(--gray-800); margin-bottom: 6px; display: block; }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background .15s, opacity .15s;
  text-decoration: none;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.btn-secondary { background: var(--gray-100); color: var(--gray-800); }
.btn-secondary:hover { background: var(--gray-200); }
.btn-full { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* INPUTS */
input[type="text"], input[type="email"], textarea, select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 14px;
  color: var(--gray-900);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
textarea { resize: vertical; min-height: 200px; line-height: 1.5; }

/* OTP INPUT */
.otp-input {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 12px;
  text-align: center;
  font-family: monospace;
  max-width: 220px;
}

/* FORM GROUPS */
.form-group { margin-bottom: 20px; }
.form-hint { font-size: 12px; color: var(--gray-400); margin-top: 5px; }

/* HERO */
.hero { text-align: center; padding: 60px 20px 40px; }
.hero h1 { font-size: 36px; max-width: 480px; margin: 0 auto; }
.hero .subtitle { font-size: 17px; max-width: 400px; margin: 12px auto 0; }
.hero .cta-group { margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.badge { display: inline-flex; align-items: center; gap: 6px; background: #eff6ff; color: var(--blue); font-size: 13px; font-weight: 500; padding: 5px 12px; border-radius: 99px; border: 1px solid #bfdbfe; }
.features { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-top: 48px; }
.feature { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 20px; text-align: left; }
.feature-icon { font-size: 22px; margin-bottom: 8px; }
.feature h3 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.feature p { font-size: 13px; color: var(--gray-600); line-height: 1.5; }

/* DROP ZONE */
.drop-zone {
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.drop-zone:hover, .drop-zone.drag-over { border-color: var(--blue); background: #eff6ff; }
.drop-zone-icon { font-size: 32px; margin-bottom: 8px; }
.drop-zone p { color: var(--gray-600); font-size: 14px; }
.drop-zone .hint { font-size: 12px; color: var(--gray-400); margin-top: 4px; }
.drop-zone input[type="file"] { display: none; }

/* DIVIDER */
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--gray-400); font-size: 13px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--gray-200); }

/* PREVIOUS CVS */
.cv-select-group { display: flex; gap: 8px; align-items: center; }
.cv-select-group select { flex: 1; }

/* SCORE */
.score-ring-wrap { text-align: center; padding: 20px 0; }
.score-number { font-size: 72px; font-weight: 800; letter-spacing: -3px; line-height: 1; }
.score-label { font-size: 14px; color: var(--gray-600); margin-top: 4px; }
.verdict-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 99px;
  margin-top: 12px;
}
.verdict-pass { background: #dcfce7; color: var(--green); }
.verdict-fail { background: #fee2e2; color: var(--red); }
.verdict-potential { background: #fef9c3; color: #a16207; }
.score-pass { color: var(--green); }
.score-fail { color: var(--red); }
.score-potential { color: #d97706; }
.skills-block { padding: 12px; background: var(--gray-50); border-radius: 8px; }

/* REASON BOX */
.reason-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 16px;
  font-size: 14px;
  color: var(--gray-600);
  margin-top: 20px;
  line-height: 1.6;
}

/* USAGE BANNER */
.usage-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: #92400e;
  margin-bottom: 20px;
}
.usage-banner.danger { background: #fef2f2; border-color: #fca5a5; color: #991b1b; }

/* HISTORY */
.review-list { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.review-item {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.review-score { font-size: 22px; font-weight: 700; min-width: 52px; text-align: center; }
.review-meta { flex: 1; }
.review-title { font-weight: 500; font-size: 14px; }
.review-sub { font-size: 12px; color: var(--gray-400); margin-top: 2px; }

/* SPINNER */
.spinner-wrap { text-align: center; padding: 40px 20px; }
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.spinner-text { color: var(--gray-600); font-size: 14px; }

/* TOAST */
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--gray-900);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 999;
  opacity: 0;
  transition: transform .25s, opacity .25s;
  white-space: nowrap;
}
#toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
#toast.error { background: var(--red); }

/* LIMIT REACHED */
.limit-box {
  text-align: center;
  padding: 32px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-top: 24px;
}
.limit-box h3 { font-size: 16px; margin-bottom: 8px; }
.limit-box p { font-size: 14px; color: var(--gray-600); }

/* STEPS */
.steps { display: flex; gap: 0; margin-bottom: 32px; }
.step { flex: 1; text-align: center; position: relative; }
.step-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--gray-200);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: var(--gray-400);
  margin: 0 auto 6px;
  position: relative; z-index: 1;
}
.step.done .step-dot { background: var(--blue); border-color: var(--blue); color: #fff; }
.step.active .step-dot { border-color: var(--blue); color: var(--blue); }
.step-label { font-size: 11px; color: var(--gray-400); }
.step.active .step-label, .step.done .step-label { color: var(--blue); }
.step::before {
  content: '';
  position: absolute;
  top: 14px; left: calc(-50% + 14px); right: calc(50% + 14px);
  height: 2px; background: var(--gray-200);
}
.step:first-child::before { display: none; }
.step.done::before { background: var(--blue); }

/* SECTION HEADER */
.section-header { margin-bottom: 24px; }
.section-header h2 { font-size: 22px; }
.section-header p { color: var(--gray-600); font-size: 14px; margin-top: 4px; }

/* ACTION ROW */
.action-row { display: flex; gap: 10px; margin-top: 24px; }
.action-row .btn { flex: 1; }

/* PRICING */
.pricing-section { margin: 48px 0 32px; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  max-width: 560px;
  margin: 0 auto;
}
.pricing-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.pricing-card-featured {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(37,99,235,.15), var(--shadow-md);
}
.pricing-badge {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--gray-400);
  margin-bottom: 12px;
}
.pricing-badge-blue { color: var(--blue); }
.pricing-price {
  font-size: 36px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 4px;
}
.pricing-desc { font-size: 13px; color: var(--gray-400); margin-bottom: 20px; }
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pricing-features li {
  font-size: 14px;
  color: var(--gray-600);
  padding-left: 20px;
  position: relative;
}
.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* USE CASES */
.use-cases { margin: 48px 0; }
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.use-case-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.use-case-from { font-size: 13px; color: var(--gray-600); flex: 1; }
.use-case-arrow { font-size: 16px; color: var(--blue); font-weight: bold; }
.use-case-to { font-size: 13px; font-weight: 600; color: var(--gray-800); flex: 1; text-align: right; }

/* HOW IT WORKS */
.how-it-works { margin: 48px 0 32px; }
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.how-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.how-card h4 { font-size: 15px; margin: 10px 0 6px; }
.how-card p { font-size: 13px; color: var(--gray-600); line-height: 1.5; }
.how-score {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}
.how-strong { background: #dcfce7; color: var(--green); }
.how-potential { background: #fef9c3; color: #a16207; }
.how-needs { background: #fee2e2; color: var(--red); }

@media (max-width: 600px) {
  .features { grid-template-columns: 1fr; }
  .use-case-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .card { padding: 24px; }
  .score-number { font-size: 56px; }
}
