/* ==========================================================
   tools.quickcareer.in — Design System v4
   Professional, clean, ilovepdf-inspired
   ========================================================== */

/* ── TOKENS ─────────────────────────────────────────── */
:root {
  --red:        #e8342a;
  --red-dk:     #c52920;
  --red-lt:     #fff3f2;
  --red-bd:     #ffd6d4;

  --bg:         #f5f6fa;
  --surface:    #ffffff;
  --surface2:   #f9fafb;
  --border:     #e5e7eb;
  --border2:    #d1d5db;

  --text:       #111827;
  --text2:      #374151;
  --muted:      #6b7280;
  --muted2:     #9ca3af;

  --green:      #059669;
  --green-lt:   #ecfdf5;
  --green-bd:   #a7f3d0;
  --blue:       #2563eb;
  --blue-lt:    #eff6ff;

  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  20px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,.09);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.11);

  --font:       'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── RESET ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font); }
input, select, textarea { font-family: var(--font); }

/* ── NAVIGATION ──────────────────────────────────────── */
.site-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--shadow-sm);
}
.site-nav__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--red);
  letter-spacing: -.025em;
  flex-shrink: 0;
}
.site-nav__brand-icon {
  width: 32px; height: 32px;
  background: var(--red);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.site-nav__brand-icon svg { fill: #fff; }
.site-nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: flex-end;
}
.site-nav__link {
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 500;
  color: var(--muted);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.site-nav__link:hover { background: var(--surface2); color: var(--text); }
.site-nav__back {
  background: var(--red-lt);
  border: 1.5px solid var(--red-bd);
  color: var(--red);
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-size: .84rem;
  font-weight: 600;
  transition: background .15s, transform .15s;
  white-space: nowrap;
}
.site-nav__back:hover { background: #ffe0de; transform: translateX(-1px); }

/* ── BREADCRUMB ──────────────────────────────────────── */
.breadcrumb {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 24px;
  font-size: .78rem;
  color: var(--muted);
}
.breadcrumb__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); font-weight: 500; transition: color .15s; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb__sep { color: var(--border2); font-size: .7rem; }
.breadcrumb__cur { color: var(--text); font-weight: 600; }

/* ── PAGE SHELL ──────────────────────────────────────── */
.page-main { flex: 1; padding: 40px 24px 80px; }
.page-wrap  { max-width: 720px; margin: 0 auto; }
.page-wrap--wide { max-width: 1080px; }

/* ── TOOL HEADER ─────────────────────────────────────── */
.tool-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 28px;
}
.tool-header__icon {
  width: 60px; height: 60px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  flex-shrink: 0;
  background: var(--red-lt);
  border: 1.5px solid var(--red-bd);
}
.tool-header__title {
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 8px;
}
.tool-header__desc {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 540px;
}
.tool-header__badges {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.badge {
  font-size: .71rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  color: var(--muted);
  letter-spacing: .02em;
}
.badge--green { background: var(--green-lt); border-color: var(--green-bd); color: var(--green); }
.badge--red   { background: var(--red-lt);   border-color: var(--red-bd);   color: var(--red); }

/* ── CARD ────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.card:focus-within { box-shadow: var(--shadow-md); }
.card__label {
  font-size: .7rem;
  font-weight: 700;
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card__label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.card__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ── FORM ELEMENTS ───────────────────────────────────── */
.field-label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 7px;
}
.field-hint {
  font-size: .75rem;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.5;
}
.input, .select {
  width: 100%;
  background: var(--surface2);
  border: 1.5px solid var(--border2);
  color: var(--text);
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: .93rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  -webkit-appearance: none;
}
.input:focus, .select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(232,52,42,.1);
  background: var(--surface);
}
.select { cursor: pointer; }
.select:disabled { background: var(--surface2); color: var(--muted2); cursor: not-allowed; }

.input-group {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.input-group .input { flex: 1; }
.input-addon {
  background: var(--surface2);
  border: 1.5px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text2);
  white-space: nowrap;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ── DROP ZONE ───────────────────────────────────────── */
.drop-zone {
  border: 2px dashed var(--border2);
  border-radius: var(--radius-md);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  background: var(--surface2);
  transition: border-color .2s, background .2s, transform .2s;
  position: relative;
}
.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--red);
  background: var(--red-lt);
  transform: translateY(-2px);
}
.drop-zone__icon {
  font-size: 2.6rem;
  margin-bottom: 12px;
  display: block;
  line-height: 1;
}
.drop-zone__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text2);
  margin-bottom: 5px;
}
.drop-zone__hint { font-size: .82rem; color: var(--muted); }
.drop-zone__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--red);
  color: #fff;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: .87rem;
  font-weight: 600;
  margin-top: 14px;
  transition: background .15s;
}
.drop-zone__btn:hover { background: var(--red-dk); }
.drop-zone input[type="file"] { display: none; }

/* ── FILE CHIP ───────────────────────────────────────── */
.file-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--green-lt);
  border: 1.5px solid var(--green-bd);
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  margin-top: 12px;
  display: none;
}
.file-chip__icon { font-size: 1.2rem; flex-shrink: 0; }
.file-chip__name { font-weight: 600; color: var(--green); font-size: .85rem; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip__size { font-size: .8rem; color: var(--green); font-weight: 700; white-space: nowrap; }

/* ── PRESET PILLS ────────────────────────────────────── */
.presets { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.preset-pill {
  padding: 7px 15px;
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--border2);
  background: var(--surface2);
  color: var(--text2);
  transition: all .15s;
}
.preset-pill:hover, .preset-pill.active {
  background: var(--red-lt);
  border-color: var(--red-bd);
  color: var(--red);
}

/* ── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font);
  font-weight: 700;
  font-size: .95rem;
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px 24px;
  cursor: pointer;
  transition: all .18s;
  text-decoration: none;
  white-space: nowrap;
}
.btn--full { width: 100%; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

.btn--primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 14px rgba(232,52,42,.28);
}
.btn--primary:hover:not(:disabled) {
  background: var(--red-dk);
  transform: translateY(-1px);
  box-shadow: 0 7px 20px rgba(232,52,42,.32);
}

.btn--success {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 14px rgba(5,150,105,.22);
}
.btn--success:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-1px); }

.btn--ghost {
  background: var(--surface);
  border: 1.5px solid var(--border2);
  color: var(--text2);
}
.btn--ghost:hover:not(:disabled) { background: var(--surface2); border-color: var(--border); }

.btn--outline-red {
  background: var(--red-lt);
  border: 1.5px solid var(--red-bd);
  color: var(--red);
}
.btn--outline-red:hover:not(:disabled) { background: #ffe0de; }

/* ── PROGRESS ────────────────────────────────────────── */
.progress-block { display: none; margin-top: 16px; }
.progress-block.show { display: block; }
.progress-block__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.progress-block__label { font-size: .84rem; font-weight: 500; color: var(--text2); }
.progress-block__pct   { font-size: .84rem; font-weight: 700; color: var(--red); }
.progress-bar { height: 7px; background: var(--border); border-radius: 100px; overflow: hidden; }
.progress-bar__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--red-dk), var(--red));
  border-radius: 100px;
  transition: width .4s ease;
}
.progress-steps { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.pstep { font-size: .73rem; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.pstep__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border2); flex-shrink: 0; transition: background .3s; }
.pstep.done .pstep__dot  { background: var(--green); }
.pstep.active .pstep__dot { background: var(--red); animation: pulseDot 1s infinite; }
@keyframes pulseDot { 0%,100%{opacity:1} 50%{opacity:.25} }

/* ── STATUS MESSAGE ──────────────────────────────────── */
.status-msg { display: none; margin-top: 12px; padding: 12px 16px; border-radius: var(--radius-sm); font-size: .86rem; line-height: 1.55; border: 1.5px solid; }
.status-msg.show { display: block; }
.status-msg--ok   { background: var(--green-lt); border-color: var(--green-bd); color: #065f46; }
.status-msg--err  { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.status-msg--info { background: var(--blue-lt); border-color: #bfdbfe; color: #1e3a8a; }
.status-msg--warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }

/* ── RESULT CARD ─────────────────────────────────────── */
.result-block {
  background: var(--green-lt);
  border: 1.5px solid var(--green-bd);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 16px;
  display: none;
}
.result-block.show { display: block; }
.result-block__title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 18px; }
.stat-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 14px; text-align: center; }
.stat-card__n { font-size: 1.2rem; font-weight: 800; margin-bottom: 3px; line-height: 1.2; }
.stat-card__l { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.stat-card__n--green { color: var(--green); }
.stat-card__n--red   { color: var(--red); }
.stat-card__n--blue  { color: var(--blue); }
.stat-card__n--muted { color: var(--muted); }

/* ── COMPARISON ──────────────────────────────────────── */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; display: none; }
.compare-box { background: var(--surface2); border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; text-align: center; }
.compare-box img { width: 100%; height: 150px; object-fit: contain; background: #fff; padding: 10px; display: block; }
.compare-box__meta { padding: 9px; }
.compare-box__label { font-size: .67rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 3px; }
.compare-box__size  { font-size: .85rem; font-weight: 700; color: var(--text2); }

/* ── TIP BOX ─────────────────────────────────────────── */
.tip {
  background: var(--blue-lt);
  border: 1.5px solid #bfdbfe;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: .81rem;
  color: #1e40af;
  line-height: 1.6;
  margin-top: 12px;
}
.tip strong { color: #1d4ed8; }

/* ── FORMAT TABS ─────────────────────────────────────── */
.fmt-tabs { display: flex; gap: 7px; flex-wrap: wrap; }
.fmt-tab {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--border2);
  background: var(--surface2);
  color: var(--muted);
  transition: all .15s;
}
.fmt-tab.active {
  background: var(--red-lt);
  border-color: var(--red-bd);
  color: var(--red);
}
.fmt-tab:hover:not(.active) { background: var(--surface); color: var(--text2); }

/* ── SEO CONTENT SECTION ─────────────────────────────── */
.seo-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 60px 24px;
}
.seo-inner {
  max-width: 800px;
  margin: 0 auto;
}
.seo-inner h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: -.025em;
}
.seo-inner h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 9px;
}
.seo-inner p {
  font-size: .92rem;
  color: var(--text2);
  line-height: 1.78;
  margin-bottom: 14px;
}
.seo-inner strong { color: var(--text); }
.seo-inner a { color: var(--red); font-weight: 600; }
.faq { margin-top: 8px; }
.faq-item { border-top: 1px solid var(--border); padding: 20px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q { font-weight: 700; font-size: .95rem; color: var(--text); margin-bottom: 7px; display: flex; gap: 10px; }
.faq-q::before { content: 'Q'; background: var(--red); color: #fff; font-size: .65rem; font-weight: 800; padding: 2px 6px; border-radius: 4px; flex-shrink: 0; margin-top: 1px; }
.faq-a { font-size: .88rem; color: var(--text2); line-height: 1.72; padding-left: 28px; }

/* ── HOW IT WORKS ────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 20px; }
.step-card { background: var(--surface2); border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 20px; }
.step-num { font-size: .7rem; font-weight: 800; color: var(--red); background: var(--red-lt); border: 1.5px solid var(--red-bd); width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.step-title { font-weight: 700; font-size: .9rem; color: var(--text); margin-bottom: 6px; }
.step-desc { font-size: .8rem; color: var(--muted); line-height: 1.6; }

/* ── SPINNER ─────────────────────────────────────────── */
.spinner {
  width: 17px; height: 17px;
  border: 2.5px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .65s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}
.spinner--dark {
  border-color: rgba(0,0,0,.1);
  border-top-color: var(--red);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── FOOTER ──────────────────────────────────────────── */
.site-footer {
  background: #111827;
  color: #9ca3af;
  padding: 52px 24px 28px;
  margin-top: auto;
}
.site-footer__inner {
  max-width: 1080px;
  margin: 0 auto;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #1f2937;
  margin-bottom: 24px;
}
.site-footer__brand { font-size: 1rem; font-weight: 800; color: var(--red); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.site-footer__tagline { font-size: .82rem; line-height: 1.7; max-width: 230px; }
.site-footer__col-title { font-size: .7rem; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.site-footer__links { display: flex; flex-direction: column; gap: 9px; }
.site-footer__links a { font-size: .84rem; color: #6b7280; transition: color .15s; }
.site-footer__links a:hover { color: #fff; }
.site-footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: .77rem; }
.site-footer__bottom a { color: #6b7280; transition: color .15s; }
.site-footer__bottom a:hover { color: var(--red); }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 768px) {
  .site-nav__links .site-nav__link { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .tool-header { flex-direction: column; }
}
@media (max-width: 480px) {
  .page-main { padding: 24px 16px 60px; }
  .card { padding: 18px; }
  .compare-grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* ── ANIMATION ───────────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.fade-up.in { opacity: 1; transform: none; }
