/* ============================================================
   LEGIT — Shared Design System
   legit.works
   ============================================================ */

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

/* ── TOKENS ── */
:root {
  --black:      #0a0a0a;
  --white:      #ffffff;
  --off-white:  #f8f7f4;
  --green:      #1aba6b;
  --green-dark: #14965a;
  --green-bg:   rgba(26, 186, 107, 0.1);

  --gray-100: #f0efec;
  --gray-200: #e2e0db;
  --gray-400: #9e9b94;
  --gray-600: #5c5a55;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:    0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
}

/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--off-white);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ── */
h1 {
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 22px;
}

h1 em {
  font-style: normal;
  color: var(--green);
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 16px;
}

h3 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

/* ── LAYOUT ── */
.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 247, 244, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--black);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: var(--white);
  width: 22px;
  height: 22px;
  border-radius: 5px;
  font-size: 13px;
  margin-left: 3px;
  vertical-align: middle;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover {
  color: var(--black);
  background: var(--gray-100);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-ghost {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  background: none;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-ghost:hover { background: var(--gray-100); }

.btn-primary {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  background: var(--black);
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.btn-primary:hover { opacity: 0.8; }

.btn-green {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  background: var(--green);
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
}
.btn-green:hover { background: var(--green-dark); }

/* ── SECTION LABELS ── */
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}

.section-sub {
  font-size: 18px;
  color: var(--gray-600);
  max-width: 540px;
  line-height: 1.55;
  margin-bottom: 0;
}

/* ── BADGE / PILL ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 99px;
  letter-spacing: 0.02em;
}

.badge-green {
  background: var(--green-bg);
  border-color: rgba(26, 186, 107, 0.25);
  color: var(--green-dark);
}

/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.card-dark {
  background: var(--black);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 28px;
}

/* ── ICON CONTAINER ── */
.icon-wrap {
  width: 40px;
  height: 40px;
  background: var(--green-bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-wrap svg {
  width: 20px;
  height: 20px;
  stroke: var(--green);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-wrap-dark {
  background: rgba(255,255,255,0.08);
}

.icon-wrap-dark svg {
  stroke: var(--green);
}

/* ── SEARCH BAR ── */
.search-bar {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 4px 4px 4px 16px;
  gap: 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
  max-width: 560px;
  width: 100%;
}

.search-bar:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(26,186,107,0.1);
}

.search-bar svg {
  width: 18px;
  height: 18px;
  stroke: var(--gray-400);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  background: transparent;
  color: var(--black);
  padding: 10px 0;
}

.search-bar input::placeholder { color: var(--gray-400); }

.search-bar button {
  padding: 10px 20px;
  background: var(--green);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.search-bar button:hover { background: var(--green-dark); }

/* ── LEGIT SCORE ── */
.score-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.score-chip .score-num {
  font-size: 52px;
  font-weight: 900;
  color: var(--green);
  line-height: 1;
  letter-spacing: -2px;
}

.score-chip .score-denom {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-400);
}

/* ── SUB-SCORE BARS ── */
.sub-scores { display: flex; flex-direction: column; gap: 12px; }

.sub-score-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.sub-score-label {
  width: 160px;
  color: var(--gray-600);
  flex-shrink: 0;
}

.bar-track {
  flex: 1;
  height: 6px;
  background: var(--gray-200);
  border-radius: 99px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--green);
  border-radius: 99px;
  transition: width 0.6s ease;
}

.sub-score-val {
  width: 28px;
  text-align: right;
  font-weight: 700;
  font-size: 13px;
  color: var(--black);
}

/* ── BLUR / PAYWALL ── */
.blurred {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
}

.paywall-wrap {
  position: relative;
}

.paywall-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.85) 30%, rgba(255,255,255,1) 60%);
  border-radius: var(--radius);
}

.paywall-overlay p {
  font-size: 14px;
  color: var(--gray-600);
  text-align: center;
  max-width: 220px;
  line-height: 1.4;
}

/* ── VERIFICATION BADGE ── */
.verify-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  letter-spacing: 0.02em;
}

.verify-badge svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.verify-unverified {
  background: var(--gray-100);
  color: var(--gray-400);
}
.verify-unverified svg { stroke: var(--gray-400); }

.verify-email {
  background: #e8f4fd;
  color: #1a6fa8;
}
.verify-email svg { stroke: #1a6fa8; }

.verify-linkedin {
  background: #e8f0fe;
  color: #3557c7;
}
.verify-linkedin svg { stroke: #3557c7; }

.verify-document {
  background: var(--green-bg);
  color: var(--green-dark);
}
.verify-document svg { stroke: var(--green-dark); }

/* ── REVIEW CARD ── */
.review-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.review-card-meta {
  font-size: 13px;
  color: var(--gray-400);
}

.review-card-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--black);
}

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--gray-200);
  padding: 32px 0;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--gray-400);
  flex-wrap: wrap;
  gap: 12px;
}

.footer a { color: var(--gray-400); text-decoration: none; }
.footer a:hover { color: var(--black); }

/* ── PROOF BAR ── */
.proof-bar {
  background: var(--black);
  color: var(--white);
  padding: 12px 24px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
}
.proof-bar strong { color: var(--green); }

/* ── DARK SECTION ── */
.section-dark {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-lg);
}

.section-dark h2 { color: var(--white); }
.section-dark .section-sub { color: rgba(255,255,255,0.55); }
.section-dark .section-label { color: var(--green); }

/* ── WOULD WORK AGAIN ── */
.wwa-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 99px;
}

.wwa-yes   { background: var(--green-bg); color: var(--green-dark); }
.wwa-maybe { background: #fef9e7; color: #b7791f; }
.wwa-no    { background: #fef2f2; color: #c0392b; }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .nav-links { display: none; }
}

@media (max-width: 680px) {
  .nav-inner { padding: 0 20px; }

  h1 { letter-spacing: -1.5px; }
  h2 { letter-spacing: -1px; }

  .section-dark,
  .section-white-card { padding: 48px 28px !important; border-radius: 14px !important; }

  .search-bar { max-width: 100%; }
  .search-bar button { padding: 10px 14px; font-size: 14px; }

  .footer-inner { justify-content: center; text-align: center; }

  .sub-score-label { width: 120px; font-size: 12px; }
}
