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

/* ─── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:    #000000;
  --white:    #ffffff;
  --g100:     #f5f5f5;
  --g200:     #e8e8e8;
  --g300:     #d4d4d4;
  --g500:     #737373;
  --g700:     #404040;
  --g900:     #171717;
  --radius:   6px;
  --shadow:   0 4px 24px rgba(0,0,0,.10);
  --shadow-lg:0 8px 48px rgba(0,0,0,.16);
  --trans:    .18s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--white);
  color: var(--black);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Utility ───────────────────────────────────────────────────── */
.hidden { display: none !important; }
.text-gray { color: var(--g500); }
.text-sm   { font-size: .875rem; }
.text-xs   { font-size: .75rem; }
.mt-4  { margin-top: 1rem; }
.mt-8  { margin-top: 2rem; }
.mt-16 { margin-top: 4rem; }

/* ─── Buttons ───────────────────────────────────────────────────── */
button { cursor: pointer; font-family: inherit; border: none; outline: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-size: .9375rem; font-weight: 600; padding: 11px 22px;
  border-radius: var(--radius); transition: var(--trans); white-space: nowrap;
}
.btn-sm  { font-size: .8125rem; padding: 7px 14px; }
.btn-lg  { font-size: 1rem; padding: 15px 32px; }
.btn-xl  { font-size: 1.0625rem; padding: 18px 40px; }

.btn-primary {
  background: var(--black); color: var(--white);
}
.btn-primary:hover { background: var(--g900); transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-outline {
  background: transparent; color: var(--black);
  border: 1.5px solid var(--black);
}
.btn-outline:hover { background: var(--g100); }

.btn-ghost {
  background: transparent; color: var(--g700); font-weight: 500;
}
.btn-ghost:hover { color: var(--black); background: var(--g100); }

.btn-danger { background: #dc2626; color: var(--white); }
.btn-danger:hover { background: #b91c1c; }

/* ─── Navbar ────────────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--g200);
}

.logo {
  display: flex; align-items: center; gap: 0;
  text-decoration: none; cursor: pointer;
  user-select: none;
}
.logo svg { display: block; }

.nav-right {
  display: flex; align-items: center; gap: .5rem;
}

.nav-user {
  display: flex; align-items: center; gap: .5rem;
}

/* ─── Views ─────────────────────────────────────────────────────── */
.view { display: none; min-height: calc(100vh - 64px); }
.view.active { display: block; }

/* ─── Hero ──────────────────────────────────────────────────────── */
.hero {
  max-width: 720px; margin: 0 auto;
  padding: 96px 2rem 72px;
  text-align: center;
}

.badge {
  display: inline-block;
  font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  background: var(--g100); color: var(--g700);
  padding: 5px 14px; border-radius: 100px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--g200);
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 1.25rem;
}

.hero h1 .underline {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 3px;
}

.hero-sub {
  font-size: 1.125rem; color: var(--g700);
  max-width: 540px; margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* ─── How It Works ──────────────────────────────────────────────── */
.how-section {
  background: var(--g100);
  padding: 80px 2rem;
}

.how-section h2 {
  text-align: center;
  font-size: 1.875rem; font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 3rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2px;
  max-width: 900px; margin: 0 auto;
}

.step {
  background: var(--white);
  padding: 2.5rem 2rem;
  position: relative;
}

.step-num {
  font-size: 3.5rem; font-weight: 900;
  color: var(--g200);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -.04em;
}

.step h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: .5rem; }
.step p   { font-size: .9375rem; color: var(--g500); line-height: 1.6; }

/* ─── Bottom CTA ────────────────────────────────────────────────── */
.cta-band {
  text-align: center;
  padding: 72px 2rem;
}

.cta-band p {
  font-size: .9375rem; color: var(--g500);
  margin-top: 1rem;
}

.cta-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 0;
  border: 1.5px solid var(--black);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 640px; margin: 0 auto 2.5rem;
}

.cta-stat {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  padding: 1.25rem 1rem;
  gap: .25rem;
}

.cta-stat-num {
  font-size: 1.5rem; font-weight: 900;
  letter-spacing: -.03em; line-height: 1;
}

.cta-stat-label {
  font-size: .75rem; color: var(--g500);
  font-weight: 500;
}

.cta-stat-divider {
  width: 1.5px; align-self: stretch;
  background: var(--black);
  flex-shrink: 0;
}

@media (max-width: 500px) {
  .cta-stats { flex-direction: column; }
  .cta-stat-divider { width: 100%; height: 1.5px; }
}

/* ─── Section container ─────────────────────────────────────────── */
.section-container {
  max-width: 1080px; margin: 0 auto;
  padding: 72px 2rem;
}

.section-title {
  font-size: 2rem; font-weight: 800;
  letter-spacing: -.025em;
  margin-bottom: .5rem;
}
.section-sub {
  color: var(--g500); font-size: 1rem;
  margin-bottom: 3rem;
}

/* ─── Pricing ───────────────────────────────────────────────────── */
#pricingView { background: var(--white); }

.pricing-header { text-align: center; max-width: 540px; margin: 0 auto; }

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5px;
  border: 1.5px solid var(--black);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
}

.plan {
  background: var(--white);
  padding: 2.5rem 2rem;
  position: relative;
  display: flex; flex-direction: column;
}

.plan + .plan { border-left: 1.5px solid var(--black); }

.plan.popular {
  background: var(--black); color: var(--white);
}

.plan-badge {
  display: inline-block;
  font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  background: var(--white); color: var(--black);
  padding: 3px 10px; border-radius: 100px;
  margin-bottom: 1rem;
  width: fit-content;
}

.plan-name { font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .75rem; }
.plan.popular .plan-name { color: var(--g300); }

.plan-price {
  font-size: 2.75rem; font-weight: 900; letter-spacing: -.04em; line-height: 1;
  margin-bottom: .25rem;
}

.plan-price sup { font-size: 1.25rem; font-weight: 700; vertical-align: top; margin-top: .4rem; }

.plan-period { font-size: .875rem; color: var(--g500); margin-bottom: 1.5rem; }
.plan.popular .plan-period { color: var(--g300); }

.plan-features {
  list-style: none; margin-bottom: 2rem; flex: 1;
}
.plan-features li {
  display: flex; align-items: flex-start; gap: .625rem;
  font-size: .9375rem; padding: .4rem 0;
  border-bottom: 1px solid var(--g200);
}
.plan.popular .plan-features li { border-color: var(--g700); }
.plan-features li:last-child { border-bottom: none; }

.plan-features li::before {
  content: '✓';
  font-weight: 700; font-size: .75rem;
  flex-shrink: 0; margin-top: .15rem;
  background: var(--black); color: var(--white);
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.plan.popular .plan-features li::before { background: var(--white); color: var(--black); }

.plan .btn-primary { width: 100%; }
.plan.popular .btn-primary {
  background: var(--white); color: var(--black);
}
.plan.popular .btn-primary:hover { background: var(--g200); }

.security-note {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  font-size: .875rem; color: var(--g500);
  padding: 1rem;
  border: 1px solid var(--g200);
  border-radius: var(--radius);
  background: var(--g100);
  max-width: 480px; margin: 0 auto;
}

/* ─── Payment ───────────────────────────────────────────────────── */
.payment-wrap {
  max-width: 480px; margin: 0 auto;
  padding: 64px 2rem;
}

.payment-summary {
  border: 1.5px solid var(--black);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
}

.payment-summary-header {
  background: var(--black); color: var(--white);
  padding: 1rem 1.5rem;
  font-weight: 700;
}

.payment-summary-body { padding: 1.5rem; }

.payment-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .5rem 0;
  font-size: .9375rem;
}

.payment-row.total {
  border-top: 1.5px solid var(--black);
  margin-top: .5rem; padding-top: 1rem;
  font-weight: 700; font-size: 1.125rem;
}

.payment-form { display: flex; flex-direction: column; gap: 1.25rem; }

.field-group { display: flex; flex-direction: column; gap: .375rem; }
.field-label { font-size: .8125rem; font-weight: 600; }

.field-input {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--g300); border-radius: var(--radius);
  font-family: inherit; font-size: .9375rem;
  transition: border-color var(--trans);
  outline: none;
}
.field-input:focus { border-color: var(--black); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.razorpay-note {
  font-size: .75rem; color: var(--g500);
  padding: .75rem; background: var(--g100);
  border-radius: var(--radius); text-align: center;
}

/* ─── Upload ────────────────────────────────────────────────────── */
.upload-wrap {
  max-width: 640px; margin: 0 auto;
  padding: 64px 2rem;
}

.upload-slots {
  display: flex; flex-direction: column; gap: 1rem;
  margin-bottom: 2rem;
}

.upload-slot {
  border: 1.5px dashed var(--g300);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  transition: border-color var(--trans), background var(--trans);
}
.upload-slot:hover { border-color: var(--black); }
.upload-slot.filled { border-style: solid; border-color: var(--black); background: var(--g100); }

.slot-info { flex: 1; }
.slot-label { font-weight: 600; font-size: .9375rem; }
.slot-name  { font-size: .8125rem; color: var(--g500); margin-top: .2rem; }

.slot-actions { display: flex; gap: .5rem; flex-shrink: 0; }

/* ─── Customize ─────────────────────────────────────────────────── */
.customize-wrap {
  max-width: 680px; margin: 0 auto;
  padding: 64px 2rem;
}

.resume-selector {
  display: flex; flex-direction: column; gap: .625rem;
  margin-bottom: 2rem;
}

.resume-option {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1.5px solid var(--g200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--trans);
}
.resume-option:hover { border-color: var(--g500); }
.resume-option.selected { border-color: var(--black); background: var(--g100); }

.resume-option input[type="radio"] { accent-color: var(--black); width: 16px; height: 16px; }
.resume-option-name { font-weight: 600; }
.resume-option-meta { font-size: .8125rem; color: var(--g500); }

.jd-textarea {
  width: 100%;
  min-height: 260px;
  padding: 14px;
  border: 1.5px solid var(--g300);
  border-radius: var(--radius);
  font-family: inherit; font-size: .9375rem;
  line-height: 1.6; resize: vertical;
  outline: none;
  transition: border-color var(--trans);
}
.jd-textarea:focus { border-color: var(--black); }

.submit-success {
  text-align: center; padding: 3rem;
  border: 1.5px solid var(--black);
  border-radius: var(--radius);
}

.success-icon {
  width: 56px; height: 56px;
  background: var(--black); color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

/* ─── Account ───────────────────────────────────────────────────── */
.account-wrap {
  max-width: 800px; margin: 0 auto;
  padding: 64px 2rem;
}

.account-header {
  display: flex; align-items: center; gap: 1.5rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1.5px solid var(--g200);
}

.account-avatar {
  width: 64px; height: 64px;
  background: var(--black); color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 700;
  flex-shrink: 0;
}

.account-info h2 { font-size: 1.25rem; font-weight: 700; }
.account-info p  { font-size: .875rem; color: var(--g500); }

.account-section { margin-bottom: 3rem; }
.account-section-title {
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--g500);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--g200);
}

.plan-chip {
  display: inline-flex; align-items: center; gap: .375rem;
  background: var(--black); color: var(--white);
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: 4px 12px; border-radius: 100px;
}

.resume-list { display: flex; flex-direction: column; gap: .75rem; }

.resume-item {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1.5px solid var(--g200);
  border-radius: var(--radius);
}
.resume-item-info { flex: 1; }
.resume-item-name { font-weight: 600; font-size: .9375rem; }
.resume-item-meta { font-size: .8125rem; color: var(--g500); }
.resume-item-actions { display: flex; gap: .5rem; flex-shrink: 0; }

.add-resume-btn {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 1rem;
  border: 1.5px dashed var(--g300);
  border-radius: var(--radius);
  background: transparent; color: var(--g500);
  font-family: inherit; font-size: .9375rem; font-weight: 500;
  cursor: pointer; width: 100%;
  transition: border-color var(--trans), color var(--trans);
}
.add-resume-btn:hover { border-color: var(--black); color: var(--black); }

/* ─── Modal ─────────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--white);
  border-radius: var(--radius);
  width: 100%; max-width: 420px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-header {
  padding: 1.5rem 1.5rem 0;
  display: flex; align-items: flex-start; justify-content: space-between;
}

.modal-header h2 { font-size: 1.25rem; font-weight: 800; }
.modal-close {
  background: none; border: none; cursor: pointer;
  font-size: 1.25rem; color: var(--g500); line-height: 1;
  padding: 2px; margin-top: 2px;
}
.modal-close:hover { color: var(--black); }

.modal-body { padding: 1.5rem; }

.modal-form { display: flex; flex-direction: column; gap: 1rem; }
.modal-toggle {
  text-align: center; font-size: .875rem; color: var(--g500);
  margin-top: .75rem;
}

.btn-google {
  display: flex; align-items: center; justify-content: center; gap: .625rem;
  width: 100%; padding: 11px 16px;
  background: var(--white); color: var(--g900);
  border: 1.5px solid var(--g300); border-radius: var(--radius);
  font-family: inherit; font-size: .9375rem; font-weight: 500;
  cursor: pointer; transition: border-color var(--trans), box-shadow var(--trans);
}
.btn-google:hover { border-color: var(--g500); box-shadow: 0 1px 6px rgba(0,0,0,.1); }

.or-divider {
  display: flex; align-items: center; gap: .75rem;
  margin: 1rem 0; color: var(--g500); font-size: .8125rem;
}
.or-divider::before, .or-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--g200);
}

.input-wrap {
  position: relative; display: flex; align-items: center;
}
.input-wrap .field-input { padding-right: 2.75rem; width: 100%; }

.show-password-btn {
  position: absolute; right: 10px;
  background: none; border: none; cursor: pointer;
  color: var(--g500); padding: 4px;
  display: flex; align-items: center;
  transition: color var(--trans);
}
.show-password-btn:hover { color: var(--black); }
.modal-toggle a { color: var(--black); font-weight: 600; text-decoration: underline; cursor: pointer; }

/* ─── Toast ─────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%);
  background: var(--black); color: var(--white);
  padding: .875rem 1.5rem;
  border-radius: var(--radius);
  font-size: .9375rem; font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 300;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  transform: translateX(-50%) translateY(8px);
  white-space: nowrap;
}
.toast.show {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.toast.error { background: #dc2626; }
.toast.ok    { background: var(--black); }

/* ─── Divider ───────────────────────────────────────────────────── */
.divider {
  border: none; border-top: 1px solid var(--g200);
  margin: 1.5rem 0;
}

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .navbar { padding: 0 1rem; }
  .plans { grid-template-columns: 1fr; }
  .plan + .plan { border-left: none; border-top: 1.5px solid var(--black); }
  .hero { padding: 64px 1.25rem 48px; }
  .steps { grid-template-columns: 1fr; gap: 2px; }
  .field-row { grid-template-columns: 1fr; }
}
