/* ═══════════════════════════════════════════════
   CVBoostr — Dark Desk · White Paper Design System
   Font: Manrope · Theme: Dark bg + White card
   ═══════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Dark surface */
  --dark:        #111218;
  --dark2:       #181824;
  --dark3:       #1E1E2E;
  --dark-line:   rgba(255,255,255,0.08);
  --dark-line2:  rgba(255,255,255,0.13);

  /* Paper (white cards) */
  --paper:       #FFFFFF;
  --paper-bg:    #F8FAFC;
  --paper-line:  #E2E8F0;
  --paper-line2: #CBD5E1;
  --ink:         #0F172A;
  --ink-soft:    #475569;
  --ink-muted:   #94A3B8;

  /* Brand accents */
  --yellow:      #F5C518;
  --yellow-dim:  rgba(245,197,24,0.12);
  --yellow-dim2: rgba(245,197,24,0.22);
  --blue:        #2563EB;
  --blue-dark:   #1D4ED8;
  --blue-dim:    rgba(37,99,235,0.15);
  --green:       #22C55E;
  --green-dim:   rgba(34,197,94,0.12);
  --red:         #EF4444;
  --red-dim:     rgba(239,68,68,0.12);

  --font:        'Manrope', system-ui, -apple-system, sans-serif;
  --radius-sm:   8px;
  --radius:      14px;
  --radius-lg:   20px;
  --max-width:   860px;

  /* Paper shadow — makes cards look like real documents on a dark desk */
  --paper-shadow: 0 2px 8px rgba(0,0,0,0.35), 0 16px 48px -12px rgba(0,0,0,0.5);
  --paper-shadow-sm: 0 1px 4px rgba(0,0,0,0.25), 0 6px 20px -6px rgba(0,0,0,0.4);
}

*, *::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: #E2E8F0;
  background: var(--dark);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--yellow); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

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

/* ── Topbar ── */
.topbar {
  background: var(--dark2);
  border-bottom: 1px solid var(--dark-line);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 0 var(--dark-line), 0 4px 24px rgba(0,0,0,0.3);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 60px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, #2563EB, #06B6D4);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
}
.brand-name { font-weight: 800; font-size: 15px; letter-spacing: -0.02em; color: #fff; }
.brand-name span { color: var(--yellow); }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  font-size: 13px; font-weight: 600; color: #94A3B8;
  padding: 7px 13px; border-radius: var(--radius-sm);
  text-decoration: none; transition: background .12s, color .12s;
}
.nav-links a:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font); font-size: 13px; font-weight: 700;
  text-decoration: none; padding: 10px 20px;
  border-radius: var(--radius-sm); border: 1.5px solid transparent;
  cursor: pointer; transition: all .12s; white-space: nowrap; line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }

.btn-secondary {
  background: transparent; color: #CBD5E1;
  border-color: rgba(255,255,255,0.18);
}
.btn-secondary:hover { border-color: rgba(255,255,255,.4); color: #fff; background: rgba(255,255,255,.06); }

.btn-yellow { background: var(--yellow); color: var(--dark); border-color: var(--yellow); font-weight: 800; }
.btn-yellow:hover { background: #e6b800; color: var(--dark); }

.btn-danger { background: transparent; color: var(--red); border-color: rgba(239,68,68,.35); }
.btn-danger:hover { background: var(--red-dim); }

.btn-block { display: flex; width: 100%; justify-content: center; }
.btn-lg { font-size: 15px; padding: 13px 26px; border-radius: var(--radius); }
.btn[disabled] { opacity: .4; pointer-events: none; }

/* ── Paper card (the "document on a desk" element) ── */
.card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 20px;
  box-shadow: var(--paper-shadow);
  color: var(--ink);
  border: none;
}
.card-sm { box-shadow: var(--paper-shadow-sm); }
.card-narrow { max-width: 480px; margin-left: auto; margin-right: auto; }

/* Yellow accent strip on top of card */
.card-accent { border-top: 3px solid var(--yellow); }
.card-accent-blue { border-top: 3px solid var(--blue); }

/* Section number badge inside cards */
.section-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 6px;
  font-size: 10px; font-weight: 900; margin-right: 8px; flex-shrink: 0;
}
.sn-blue { background: #EFF6FF; color: var(--blue); }
.sn-yellow { background: #FEF9C3; color: #854D0E; }

/* ── Eyebrow pill ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--yellow); background: var(--yellow-dim);
  border: 1px solid var(--yellow-dim2); border-radius: 100px;
  padding: 4px 12px; margin-bottom: 16px;
}
.eyebrow::before {
  content: ''; width: 6px; height: 6px; background: var(--yellow);
  border-radius: 50%; display: inline-block; animation: pulse-dot 2s infinite;
}
.eyebrow-blue { color: #93C5FD; background: rgba(37,99,235,.12); border-color: rgba(37,99,235,.25); }
.eyebrow-blue::before { background: #93C5FD; }
.eyebrow-green { color: #86EFAC; background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.22); }
.eyebrow-green::before { background: #86EFAC; }

@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.35;transform:scale(.75)} }

/* ── Typography (on dark bg) ── */
h1 { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; color: #fff; }
h2.page-sub { font-size: 1rem; font-weight: 500; color: #94A3B8; margin-top: 6px; margin-bottom: 0; border: none; padding: 0; }

/* Typography inside white cards */
.card h2 {
  font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em;
  border-bottom: 1px solid var(--paper-line);
  padding-bottom: 12px; margin: 1.8rem 0 1rem; color: var(--ink);
}
.card h2:first-child { margin-top: 0; }
.card h3 { font-size: 1rem; font-weight: 700; margin: 1rem 0 .45rem; color: var(--ink); }
.card p { margin-bottom: .85em; color: var(--ink-soft); }
.card strong { color: var(--ink); font-weight: 700; }

.lede { font-size: 1rem; color: #94A3B8; font-weight: 500; line-height: 1.6; }
.meta-line {
  font-size: 12px; font-weight: 600; color: #64748B;
  border-bottom: 1px solid var(--dark-line); padding-bottom: 14px; margin-bottom: 24px;
  display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; color: #64748B;
}

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

.upload-zone {
  border: 2px dashed var(--paper-line2); border-radius: var(--radius);
  padding: 28px; text-align: center; background: var(--paper-bg);
  margin-bottom: 16px; cursor: pointer; transition: border-color .12s, background .12s;
}
.upload-zone:hover { border-color: var(--blue); background: #EFF6FF; }
.upload-zone input[type=file] { margin-bottom: 0; border: none; background: transparent; padding: 0; width: 100%; }

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

.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); width: auto; }
.cb-label { font-size: 14px; font-weight: 500; color: var(--ink-soft); text-transform: none; letter-spacing: 0; margin: 0; }

/* ── Alerts ── */
.alert {
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; margin-bottom: 18px;
  border: 1.5px solid; display: flex; align-items: flex-start; gap: 10px;
}
.alert-success { background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.25); color: #86EFAC; }
.alert-error   { background: var(--red-dim); border-color: rgba(239,68,68,.3); color: #FCA5A5; }
.alert-info    { background: var(--blue-dim); border-color: rgba(37,99,235,.3); color: #93C5FD; }

/* Inside white cards, alerts need different colors */
.card .alert-success { background: #F0FDF4; border-color: #BBF7D0; color: #166534; }
.card .alert-error   { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.card .alert-info    { background: #EFF6FF; border-color: #BFDBFE; color: #1E40AF; }

/* ── Score stamps ── */
.stamp-row {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin: 28px 0; justify-content: center;
}
.stamp {
  width: 110px; height: 110px; border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--dark3); border: 1px solid var(--dark-line2);
  position: relative; overflow: hidden;
}
.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: #8B5CF6; }
.stamp:nth-child(4)::before { background: var(--yellow); }
.stamp:nth-child(5)::before { background: #06B6D4; }
.stamp-score { font-size: 28px; font-weight: 900; line-height: 1; letter-spacing: -.03em; color: #fff; }
.stamp-max   { font-size: 11px; color: #64748B; font-weight: 700; }
.stamp-label { font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-align: center; color: #64748B; margin-top: 6px; padding: 0 8px; }

/* ── Result document (rendered inside white card) ── */
.result-doc { font-size: 15px; line-height: 1.75; color: var(--ink); }
.result-doc h2 { font-size: 1.1rem; font-weight: 800; letter-spacing: -.01em; }
.result-doc ul, .result-doc ol { padding-left: 1.5em; }
.result-doc li { margin-bottom: .45em; color: var(--ink-soft); }
.result-doc strong { color: var(--ink); font-weight: 700; }
.result-doc code { font-family: ui-monospace,'SF Mono',monospace; background: var(--paper-bg); border: 1px solid var(--paper-line); padding: 2px 6px; border-radius: 4px; font-size: .87em; }
.result-doc blockquote { border-left: 3px solid var(--yellow); margin: 1.2em 0; padding: 14px 18px; background: #FEFCE8; 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(--paper-line); padding: 9px 12px; text-align: left; }
.result-doc th { background: var(--paper-bg); font-weight: 700; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); }
.result-doc hr { border: none; border-top: 1px solid var(--paper-line); margin: 1.5em 0; }

/* ── Paywall blur ── */
.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: 36px; text-align: center;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,.7) 40%, rgba(255,255,255,.98) 70%, #fff 100%);
}
.paywall-overlay h3 { font-size: 1.1rem; font-weight: 800; color: var(--ink); margin-bottom: 6px; letter-spacing: -.01em; }
.paywall-overlay p { font-size: 13px; color: var(--ink-soft); margin-bottom: 18px; max-width: 300px; font-weight: 500; }

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

/* Tier badge */
.tier-badge {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 100px;
}
.tier-free { background: var(--paper-bg); color: var(--ink-muted); border: 1px solid var(--paper-line2); }
.tier-full { background: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; }

/* ── Scan animation ── */
.scan-container {
  position: relative; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--paper-shadow);
  border: 1px solid rgba(37,99,235,.4);
  box-shadow: var(--paper-shadow), 0 0 0 1px rgba(37,99,235,.2), 0 0 40px -8px rgba(37,99,235,.2);
}
.scan-container::before {
  content: ''; position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  box-shadow: 0 0 14px 2px rgba(37,99,235,.5);
  animation: scan 2.6s ease-in-out infinite; z-index: 10;
}
@keyframes scan { 0%{top:0;opacity:1} 90%{top:100%;opacity:1} 100%{top:100%;opacity:0} }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

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

/* ── Pricing ── */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin: 28px 0; }
.pricing-card { background: var(--dark3); border: 1px solid var(--dark-line2); 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 40px -8px rgba(37,99,235,.3); }
.pricing-card.featured::before { content:''; position:absolute; top:0;left:0;right:0; height:3px; background:linear-gradient(90deg,var(--blue),var(--green)); }
.plan-label { font-size: 11px; font-weight: 800; letter-spacing:.09em; text-transform:uppercase; margin-bottom:14px; }
.price-amount { font-size: 2.4rem; font-weight: 900; letter-spacing:-.04em; color: #fff; }
.price-period { font-size: 14px; font-weight: 500; color: #64748B; }
.price-sub { font-size: 13px; color: #64748B; font-weight: 600; margin: 4px 0 22px; }
.feature-list { list-style: none; margin: 0 0 24px; }
.feature-list li { font-size: 13px; font-weight: 600; padding: 7px 0; border-bottom: 1px solid var(--dark-line); display: flex; align-items: flex-start; gap: 8px; color: #94A3B8; }
.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.off { color: #374151; }
.feature-list li.off::before { content:'—'; color:#374151; font-weight:400; }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--dark-line); margin-top: 72px; padding: 24px 0 36px; font-size: 13px; color: #374151; font-weight: 600; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
.site-footer a { color: #374151; text-decoration: none; }
.site-footer a:hover { color: #94A3B8; }

/* ── Responsive ── */
@media(max-width:768px) {
  h1 { font-size: 1.7rem; }
  .pricing-grid { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .stamp { width: 88px; height: 88px; }
  .stamp-score { font-size: 22px; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important;transition:none!important; } }
