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

/* ═══════════════════════════════════════════════
   CV BOOSTER — Design System v2
   Theme: AI Document Scanner / Ultra Modern Light
   ═══════════════════════════════════════════════ */

:root {
  /* Core palette */
  --blue:        #2563EB;
  --blue-light:  #EFF6FF;
  --blue-mid:    #BFDBFE;
  --green:       #059669;
  --green-light: #ECFDF5;
  --green-mid:   #A7F3D0;
  --amber:       #D97706;
  --red:         #DC2626;

  /* Surface */
  --bg:          #F1F5F9;
  --paper:       #FFFFFF;
  --ink:         #0F172A;
  --ink-soft:    #64748B;
  --ink-muted:   #94A3B8;
  --line:        #E2E8F0;
  --line-strong: #CBD5E1;

  /* Stripe texture color (diagonal lines on bg) */
  --stripe-color: rgba(37, 99, 235, 0.045);

  --font: 'Manrope', system-ui, -apple-system, sans-serif;
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --max-width: 900px;

  /* Scanner accent gradient */
  --gradient-scan: linear-gradient(90deg, var(--blue) 0%, var(--green) 100%);
  --gradient-scan-r: linear-gradient(90deg, var(--green) 0%, var(--blue) 100%);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  /* Diagonal stripe texture — the "document being processed" feel */
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 28px,
    var(--stripe-color) 28px,
    var(--stripe-color) 29px
  );
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ── Layout ────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Topbar ────────────────────────────────────── */
.topbar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  /* Thin scanner-line on the very bottom edge */
  box-shadow: 0 1px 0 0 var(--line), 0 2px 8px -4px rgba(15,23,42,0.08);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 32px; height: 32px;
  background: var(--gradient-scan);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.brand-name {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-tld {
  color: var(--blue);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.nav-links a:hover { background: var(--bg); color: var(--ink); }

/* ── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.12s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn-primary:hover { background: #1D4ED8; border-color: #1D4ED8; text-decoration: none; color: #fff; }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-secondary:hover { border-color: var(--ink); background: var(--bg); color: var(--ink); text-decoration: none; }
.btn-green {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn-green:hover { background: #047857; text-decoration: none; color: #fff; }
.btn-block { display: flex; width: 100%; justify-content: center; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

/* ── Cards ──────────────────────────────────────── */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 20px;
  position: relative;
  /* Subtle drop shadow to lift off the stripe background */
  box-shadow: 0 1px 3px rgba(15,23,42,0.04), 0 4px 16px -6px rgba(15,23,42,0.08);
}

/* Scanner top-line accent — colored bar on top of cards */
.card-scan::before {
  content: '';
  position: absolute;
  top: -1px; left: 24px; right: 24px;
  height: 2px;
  background: var(--gradient-scan);
  border-radius: 2px;
}

/* Corner bracket decorations (document-processing feel) */
.card-bracketed::after {
  content: '';
  position: absolute;
  bottom: 12px; right: 12px;
  width: 20px; height: 20px;
  border-right: 2px solid var(--blue-mid);
  border-bottom: 2px solid var(--blue-mid);
  border-radius: 0 0 4px 0;
  pointer-events: none;
}
.card-bracketed::before {
  content: '';
  position: absolute;
  top: 12px; left: 12px;
  width: 20px; height: 20px;
  border-left: 2px solid var(--green-mid);
  border-top: 2px solid var(--green-mid);
  border-radius: 4px 0 0 0;
  pointer-events: none;
  z-index: 1;
}

.card-narrow { max-width: 440px; margin-left: auto; margin-right: auto; }

/* ── Status / eyebrow labels ──────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  border: 1px solid var(--blue-mid);
  border-radius: 100px;
  padding: 3px 10px;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--blue);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
.eyebrow-green {
  color: var(--green);
  background: var(--green-light);
  border-color: var(--green-mid);
}
.eyebrow-green::before { background: var(--green); }

/* ── Typography ─────────────────────────────────── */
h1 { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
h2 { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25;
     border-bottom: 1px solid var(--line); padding-bottom: 12px; margin: 2rem 0 1rem; }
h3 { font-size: 1.05rem; font-weight: 700; margin: 1.2rem 0 0.5rem; }
p  { margin-bottom: 0.9em; }
.lede { font-size: 1.1rem; color: var(--ink-soft); font-weight: 400; line-height: 1.6; }
.meta-line {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}

/* ── Forms ──────────────────────────────────────── */
label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
input[type=text],
input[type=email],
input[type=date],
textarea,
select {
  width: 100%;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  padding: 11px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  margin-bottom: 18px;
  transition: border-color 0.12s, box-shadow 0.12s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
textarea { resize: vertical; min-height: 150px; }
.field-hint { font-size: 12px; color: var(--ink-muted); margin: -12px 0 16px; }

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  background: var(--bg);
  margin-bottom: 18px;
  transition: border-color 0.12s;
}
.upload-zone:hover { border-color: var(--blue); }
.upload-zone input[type=file] { margin-bottom: 0; border: none; background: transparent; padding: 0; }

/* Tabs */
.tabs { display: flex; gap: 0; margin-bottom: 20px; border-bottom: 2px solid var(--line); }
.tab-btn {
  font-family: var(--font);
  font-size: 13px; font-weight: 600;
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.12s, border-color 0.12s;
}
.tab-btn.active { color: var(--blue); border-bottom-color: var(--blue); }
.tab-btn:hover:not(.active) { color: var(--ink); }

/* Checkbox row */
.checkbox-row {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 14px 0;
}
.checkbox-row input[type=checkbox] { margin-top: 3px; accent-color: var(--blue); }
.checkbox-row label {
  text-transform: none; letter-spacing: 0; font-size: 14px;
  font-weight: 400; color: var(--ink); margin: 0;
}

/* ── Alerts ──────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500;
  margin-bottom: 18px;
  border: 1.5px solid;
}
.alert-success { background: var(--green-light); border-color: var(--green-mid); color: #065F46; }
.alert-error   { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.alert-info    { background: var(--blue-light); border-color: var(--blue-mid); color: #1E40AF; }

/* ── Score stamps (modernized) ───────────────────── */
.stamp-row {
  display: flex; flex-wrap: wrap; gap: 16px;
  margin: 24px 0 32px; justify-content: center;
}
.stamp {
  width: 110px; height: 110px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--paper);
  box-shadow: 0 1px 4px rgba(15,23,42,0.06);
  position: relative;
  overflow: hidden;
}
/* Colored top accent on each stamp */
.stamp::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
}
.stamp:nth-child(1)::before { background: var(--blue); }
.stamp:nth-child(2)::before { background: var(--green); }
.stamp:nth-child(3)::before { background: #7C3AED; }
.stamp:nth-child(4)::before { background: var(--amber); }
.stamp:nth-child(5)::before { background: #0891B2; }

.stamp .stamp-score {
  font-size: 28px; font-weight: 800;
  line-height: 1; color: var(--ink);
  letter-spacing: -0.02em;
}
.stamp .stamp-max { font-size: 11px; color: var(--ink-muted); font-weight: 600; }
.stamp .stamp-label {
  font-size: 9px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; text-align: center;
  color: var(--ink-soft); margin-top: 6px; padding: 0 8px;
}

/* ── Result document rendering ───────────────────── */
.result-doc { font-size: 15px; line-height: 1.7; }
.result-doc h2:first-of-type { margin-top: 0; }
.result-doc ul, .result-doc ol { padding-left: 1.4em; }
.result-doc li { margin-bottom: 0.45em; }
.result-doc strong { font-weight: 700; color: var(--ink); }
.result-doc em { color: var(--ink-soft); }
.result-doc code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  background: var(--bg); border: 1px solid var(--line);
  padding: 1px 6px; border-radius: 4px; font-size: 0.88em;
}
.result-doc blockquote {
  border-left: 3px solid var(--blue);
  margin: 1.2em 0; padding: 12px 16px;
  background: var(--blue-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-soft);
}
.result-doc table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 14px; }
.result-doc th, .result-doc td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.result-doc th {
  background: var(--bg); font-weight: 700; font-size: 11px;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft);
}
.result-doc hr { border: none; border-top: 1px solid var(--line); margin: 1.5em 0; }

/* ── History list ────────────────────────────────── */
.history-list { list-style: none; }
.history-list li {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.history-list a { font-weight: 600; color: var(--ink); }
.history-list a:hover { color: var(--blue); }
.history-date { font-size: 12px; color: var(--ink-muted); font-weight: 500; white-space: nowrap; }

/* ── Tier badge ──────────────────────────────────── */
.tier-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 100px;
}
.tier-free { background: var(--bg); color: var(--ink-soft); border: 1px solid var(--line-strong); }
.tier-full { background: var(--green-light); color: var(--green); border: 1px solid var(--green-mid); }

/* ── Paywall blur overlay ────────────────────────── */
.locked-section { position: relative; overflow: hidden; border-radius: var(--radius); margin-top: -4px; }
.locked-section .section-content { filter: blur(5px); user-select: none; pointer-events: none; }
.paywall-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  padding-bottom: 32px;
  background: linear-gradient(to bottom,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.6) 30%,
    rgba(255,255,255,0.96) 65%,
    rgba(255,255,255,1) 100%
  );
  text-align: center;
}
.paywall-overlay .lock-icon { font-size: 1.6rem; margin-bottom: 6px; }
.paywall-overlay h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.01em; }
.paywall-overlay p { font-size: 13px; color: var(--ink-soft); margin-bottom: 16px; max-width: 320px; }

/* ── Hero (index) ────────────────────────────────── */
.hero { padding: 72px 0 48px; }
.hero h1 { max-width: 680px; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

.feature-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px; margin: 36px 0;
}
.feature-card {
  background: var(--paper); border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px;
  position: relative; overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.feature-card:hover { border-color: var(--blue); box-shadow: 0 4px 16px -4px rgba(37,99,235,0.12); }
.feature-card-icon {
  font-size: 1.4rem; margin-bottom: 10px; display: block;
}
.feature-card h3 { font-size: 0.95rem; margin-bottom: 6px; }
.feature-card p { font-size: 13px; color: var(--ink-soft); margin: 0; line-height: 1.55; }

/* Scanner animation on the analyzing page */
@keyframes scan-line {
  0%   { top: 0; opacity: 1; }
  90%  { top: 100%; opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
.scan-container {
  position: relative;
  border: 1.5px solid var(--blue);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--blue-mid), 0 0 24px -6px rgba(37,99,235,0.15);
}
.scan-container::before {
  content: '';
  position: absolute;
  left: 0; right: 0; height: 2px;
  background: var(--gradient-scan);
  box-shadow: 0 0 12px 2px rgba(37,99,235,0.4);
  animation: scan-line 2.8s ease-in-out infinite;
  z-index: 10;
}
/* Corner brackets on scan container */
.scan-container::after {
  content: '';
  position: absolute;
  bottom: 10px; right: 10px;
  width: 16px; height: 16px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  border-radius: 0 0 3px 0;
}

/* Status dot */
.status-dot {
  display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; background: var(--green);
  margin-right: 6px;
  animation: pulse-dot 1.4s infinite;
}
.status-dot.blue { background: var(--blue); }

/* ── Footer ──────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 64px; padding: 28px 0 40px;
  font-size: 13px; color: var(--ink-muted); font-weight: 500;
}
.site-footer .container { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--ink-muted); }
.site-footer a:hover { color: var(--ink); text-decoration: none; }

/* ── Pricing cards ───────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 36px 0; }
.pricing-card {
  background: var(--paper); border: 1.5px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px 24px;
  position: relative; overflow: hidden;
}
.pricing-card.featured {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue), 0 8px 32px -8px rgba(37,99,235,0.2);
}
.pricing-card.featured::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient-scan);
}
.price-amount { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; }
.price-period { font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.price-sub { font-size: 13px; color: var(--ink-muted); margin: 4px 0 20px; font-weight: 500; }
.feature-list { list-style: none; margin: 0 0 24px; }
.feature-list li {
  font-size: 13px; padding: 6px 0;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: flex-start; gap: 8px; color: var(--ink-soft);
  font-weight: 500;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before { content: '✓'; color: var(--green); font-weight: 800; flex-shrink: 0; }
.feature-list li.locked { color: var(--ink-muted); }
.feature-list li.locked::before { content: '—'; color: var(--ink-muted); font-weight: 400; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
  h1 { font-size: 1.9rem; }
  .feature-grid, .pricing-grid { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .stamp { width: 90px; height: 90px; }
  .stamp .stamp-score { font-size: 22px; }
  .hero { padding: 48px 0 32px; }
  .nav-links a span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
