@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,600;12..96,700;12..96,800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

.lease-rank {
  /* --- tokens --- */
  --lr-ink: #17151F;
  --lr-paper: #FAF8F4;
  --lr-card: #FFFFFF;
  --lr-muted: #6B6A78;
  --lr-line: rgba(23, 21, 31, 0.10);
  --lr-line-soft: rgba(23, 21, 31, 0.06);
  --lr-accent: #4B34E6;
  --lr-accent-press: #3B27C4;
  --lr-accent-soft: #EEEBFF;
  --lr-gold: #E9B949;
  --lr-track: rgba(23, 21, 31, 0.08);
  --lr-shadow: 0 1px 2px rgba(23,21,31,.04), 0 18px 40px -22px rgba(23,21,31,.28);
  --lr-radius: 22px;

  box-sizing: border-box;
  max-width: 1000px;
  margin: 0 auto;
  padding: 8px;
  background: var(--lr-paper);
  color: var(--lr-ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
.lease-rank *,
.lease-rank *::before,
.lease-rank *::after { box-sizing: border-box; }

.lease-rank a { color: var(--lr-accent); text-decoration: none; }
.lease-rank a:hover { color: var(--lr-accent-press); }

/* ---------- header ---------- */
.lr-head { padding: 24px 16px 8px; }
.lr-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lr-accent);
  background: var(--lr-accent-soft);
  padding: 6px 12px;
  border-radius: 100px;
  margin: 0 0 18px;
  white-space: nowrap;
}
.lr-eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lr-accent);
}
.lr-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  max-width: 16ch;
}
.lr-title em { font-style: normal; color: var(--lr-accent); }
.lr-lead {
  font-size: 17px;
  color: var(--lr-muted);
  max-width: 62ch;
  margin: 0 0 20px;
}
.lr-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  font-size: 13px;
  color: var(--lr-muted);
  padding-top: 16px;
  border-top: 1px solid var(--lr-line);
}
.lr-meta b { color: var(--lr-ink); font-weight: 700; }
.lr-meta .lr-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--lr-line); }

/* ---------- criteria / weights ---------- */
.lr-crit {
  padding: 20px 16px 4px;
}
.lr-section-label {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--lr-ink);
  margin: 0 0 4px;
}
.lr-section-sub {
  font-size: 14px;
  color: var(--lr-muted);
  margin: 0 0 18px;
}
.lr-crit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.lr-crit-item {
  background: var(--lr-card);
  border: 1px solid var(--lr-line);
  border-radius: 14px;
  padding: 16px;
}
.lr-crit-pct {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--lr-ink);
}
.lr-crit-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--lr-muted);
  margin: 8px 0 12px;
  min-height: 34px;
}
.lr-crit-bar {
  height: 5px;
  border-radius: 100px;
  background: var(--lr-track);
  overflow: hidden;
}
.lr-crit-bar > i { display: block; height: 100%; border-radius: 100px; background: var(--lr-accent); }

/* ---------- ranking list ---------- */
.lr-list { padding: 24px 16px 16px; display: flex; flex-direction: column; gap: 16px; }

/* generic card */
.lr-card {
  position: relative;
  background: var(--lr-card);
  border: 1px solid var(--lr-line);
  border-radius: var(--lr-radius);
  box-shadow: var(--lr-shadow);
  padding: 22px 24px;
  transition: transform .18s cubic-bezier(.22,1,.36,1), box-shadow .18s ease;
}
.lr-card:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(23,21,31,.04), 0 26px 50px -24px rgba(23,21,31,.34); }

.lr-card-top {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 18px;
  align-items: center;
}
.lr-rank {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: rgba(23,21,31,.22);
  text-align: center;
}
.lr-firm-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

/* logo tiles */
.lr-firm { display: flex; align-items: center; gap: 14px; }
.lr-logo {
  position: relative;
  width: 120px; height: 46px;
  flex: none;
  border-radius: 9px;
  background: #fff;
  border: 1px solid var(--lr-line);
  display: grid; place-items: center;
  overflow: hidden;
}
.lr-logo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  background: #fff;
  padding: 7px 10px;
  box-sizing: border-box;
}
/* dark tile — for white/light logos */
.lr-logo--dark { background: #14122E; border-color: rgba(255,255,255,.14); }
.lr-logo--dark img { background: transparent; }
.lr-logo--dark .lr-logo-word { color: #fff; }
.lr-logo-word {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700; font-size: 15px; letter-spacing: -0.02em;
  color: var(--lr-ink); padding: 0 8px; text-align: center; line-height: 1.05;
}
/* hide the text fallback whenever a logo image is present */
.lr-logo:has(img) .lr-logo-word { display: none; }
.lr-winner-firm { display: flex; align-items: center; gap: 16px; }
.lr-logo--lg { width: 156px; height: 56px; border-radius: 12px; }
.lr-logo--lg img { padding: 9px 12px; }
.lr-logo--lg .lr-logo-word { font-size: 20px; }
.lr-firm-kind { font-size: 13px; color: var(--lr-muted); margin: 2px 0 0; }

/* Google rating badge */
.lr-google {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 5px 11px 5px 9px;
  border: 1px solid var(--lr-line);
  border-radius: 100px;
  background: var(--lr-card);
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}
.lr-google-g { width: 15px; height: 15px; flex: none; display: block; }
.lr-google-val { font-weight: 700; color: var(--lr-ink); font-variant-numeric: tabular-nums; }
.lr-google-stars { display: inline-flex; gap: 1px; color: var(--lr-gold); }
.lr-google-stars svg { width: 13px; height: 13px; display: block; }
.lr-google-count { color: var(--lr-muted); font-weight: 500; }
.lr-google--empty .lr-google-val { color: var(--lr-muted); font-weight: 600; }
.lr-google--empty .lr-google-stars { color: var(--lr-track); }
/* on the dark winner card */
.lr-winner-firm .lr-google {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
  margin-top: 12px;
}
.lr-winner-firm .lr-google-val { color: #fff; }
.lr-winner-firm .lr-google-count { color: rgba(255,255,255,.6); }
.lr-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.lr-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--lr-ink);
  background: var(--lr-paper);
  border: 1px solid var(--lr-line);
  padding: 4px 10px;
  border-radius: 100px;
}

/* score block (right) */
.lr-score { text-align: right; min-width: 118px; }
.lr-score-num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--lr-accent);
}
.lr-score-num span { font-size: 15px; font-weight: 600; color: var(--lr-muted); }
.lr-score-label {
  font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--lr-muted); margin-top: 6px;
}
.lr-scorebar {
  height: 6px; border-radius: 100px; background: var(--lr-track);
  overflow: hidden; margin-top: 8px;
}
.lr-scorebar > i { display: block; height: 100%; border-radius: 100px; background: var(--lr-accent); }

/* strengths */
.lr-strengths { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.lr-strengths li { display: flex; gap: 10px; font-size: 14px; color: #33313D; }
.lr-strengths svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--lr-accent); }

/* details / breakdown */
.lr-details { margin-top: 16px; border-top: 1px solid var(--lr-line-soft); }
.lr-details > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 0 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--lr-accent);
}
.lr-details > summary::-webkit-details-marker { display: none; }
.lr-details > summary .lr-chev { transition: transform .2s ease; }
.lr-details[open] > summary .lr-chev { transform: rotate(180deg); }

.lr-bars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
  padding: 14px 0 4px;
}
.lr-bar { display: grid; grid-template-columns: 92px 1fr 22px; align-items: center; gap: 10px; }
.lr-bar__k { font-size: 12px; font-weight: 600; color: var(--lr-muted); }
.lr-bar__t { height: 6px; border-radius: 100px; background: var(--lr-track); overflow: hidden; }
.lr-bar__t > i { display: block; height: 100%; border-radius: 100px; background: var(--lr-accent); }
.lr-bar__v { font-size: 13px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

/* CTA */
.lr-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700;
  padding: 11px 18px; border-radius: 100px;
  border: 1px solid var(--lr-line);
  color: var(--lr-ink); background: transparent;
  margin-top: 16px;
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
}
.lr-cta svg { transition: transform .18s ease; }
.lr-cta:hover { background: var(--lr-paper); border-color: rgba(23,21,31,.24); color: var(--lr-ink); }
.lr-cta:hover svg { transform: translateX(3px); }

/* ---------- winner card ---------- */
.lr-card--winner {
  color: #fff;
  border: none;
  padding: 30px 32px;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(75,52,230,.55) 0%, rgba(75,52,230,0) 55%),
    linear-gradient(135deg, #1A1440 0%, #241A5C 48%, #2E1F73 100%);
  box-shadow: 0 30px 60px -28px rgba(46,31,115,.9);
  overflow: hidden;
}
.lr-card--winner::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(233,185,73,.28), rgba(233,185,73,0) 70%);
  pointer-events: none;
}
.lr-winner-ribbon {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #1A1440; background: var(--lr-gold);
  padding: 6px 12px; border-radius: 100px; margin-bottom: 20px;
}
.lr-winner-head {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 20px; align-items: center;
}
.lr-medal {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: 'Bricolage Grotesque', sans-serif; font-size: 30px; font-weight: 800;
  color: #1A1440;
  background: linear-gradient(150deg, #F4D27A, #E9B949 60%, #C9962B);
  box-shadow: inset 0 2px 4px rgba(255,255,255,.5), 0 8px 20px -6px rgba(233,185,73,.6);
}
.lr-winner-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 34px; font-weight: 800; letter-spacing: -0.02em; margin: 0; line-height: 1;
}
.lr-winner-kind { font-size: 14px; color: rgba(255,255,255,.7); margin: 6px 0 0; }
.lr-winner-score { text-align: right; }
.lr-winner-score .n {
  font-family: 'Bricolage Grotesque', sans-serif; font-size: 46px; font-weight: 800; letter-spacing: -.03em; line-height: 1;
}
.lr-winner-score .n span { font-size: 18px; font-weight: 600; color: rgba(255,255,255,.6); }
.lr-winner-score .l { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: rgba(255,255,255,.65); margin-top: 6px; }

.lr-winner-strengths { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.lr-winner-strengths li { display: flex; gap: 10px; font-size: 15px; color: rgba(255,255,255,.92); }
.lr-winner-strengths svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--lr-gold); }

.lr-winner-bars { margin-top: 24px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); }
.lr-winner-bars .lr-bars { padding: 0; }
.lr-winner-bars .lr-bar__k { color: rgba(255,255,255,.66); }
.lr-winner-bars .lr-bar__t { background: rgba(255,255,255,.16); }
.lr-winner-bars .lr-bar__t > i { background: linear-gradient(90deg, #C9BCFF, #fff); }
.lr-winner-bars .lr-bar__v { color: #fff; }

.lr-cta--primary {
  background: var(--lr-gold); color: #1A1440; border-color: transparent;
  margin-top: 24px;
}
.lr-cta--primary:hover { background: #F2C863; color: #1A1440; }

/* ---------- footer note ---------- */
.lr-note {
  margin: 8px 16px 20px;
  padding: 20px 22px;
  background: var(--lr-card);
  border: 1px solid var(--lr-line);
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--lr-muted);
}
.lr-note b { color: var(--lr-ink); font-weight: 700; }
.lr-note-head {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 14px; font-weight: 700; color: var(--lr-ink);
  margin-bottom: 10px; letter-spacing: -.01em;
}
.lr-note-head svg { width: 18px; height: 18px; color: var(--lr-accent); }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .lr-crit-grid { grid-template-columns: repeat(2, 1fr); }
  .lr-card-top { grid-template-columns: 44px 1fr; }
  .lr-score { grid-column: 2 / 3; text-align: left; margin-top: 4px; }
  .lr-score-label { display: inline; }
  .lr-bars, .lr-winner-strengths { grid-template-columns: 1fr; }
  .lr-winner-head { grid-template-columns: 52px 1fr; }
  .lr-winner-score { grid-column: 2 / 3; text-align: left; margin-top: 6px; }
  .lr-medal { width: 52px; height: 52px; font-size: 24px; }
}
@media (max-width: 460px) {
  .lr-card, .lr-card--winner { padding: 20px 18px; }
  .lr-crit-grid { grid-template-columns: 1fr 1fr; }
  .lr-logo { width: 96px; height: 40px; }
  .lr-logo-word { font-size: 13px; }
  .lr-logo--lg { width: 120px; height: 46px; }
  .lr-logo--lg .lr-logo-word { font-size: 16px; }
}
