/* =====================================================================
   B2B TechSelect — best-saas-development-companies.com
   Editorial vendor research microsite design system
   Last updated: 2026-05-17
   ===================================================================== */

:root{
  --bg:#fafaf7;
  --surface:#ffffff;
  --surface-2:#f6f4ee;
  --ink:#11161d;
  --ink-2:#2a323d;
  --muted:#5a6473;
  --muted-2:#7a8392;
  --line:#e3e6ea;
  --line-2:#cdd2da;
  --accent:#1f3a5f;
  --accent-2:#2c4d7a;
  --accent-soft:#eef2f8;
  --good:#1f6b3a;
  --warn:#8a5a16;
  --uvik:#f4f1ea;
  --uvik-border:#dcd3bc;
  --maxw:1160px;
  --read:780px;
  --radius:6px;
  --radius-lg:10px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}

body.btsel{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-size:17px;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

.btsel-wrap{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 24px;
}

/* ===== SITE HEADER ===== */
.btsel header.site{
  border-bottom:1px solid var(--line);
  padding:18px 0;
  font-size:14px;
  color:var(--muted);
  background:var(--surface);
}
.btsel header.site .head-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:14px;
}
.btsel header.site .brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:600;
  color:var(--ink);
  letter-spacing:.2px;
  text-decoration:none;
}
.btsel header.site .brand-mark{
  width:28px;
  height:28px;
  background:var(--accent);
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:4px;
  font-size:12px;
  font-weight:700;
  letter-spacing:.5px;
}
.btsel header.site .brand-text{color:var(--ink)}
.btsel header.site .brand-text small{
  display:block;
  font-weight:400;
  color:var(--muted);
  font-size:12px;
  margin-top:1px;
}
.btsel header.site nav a{
  color:var(--muted);
  text-decoration:none;
  margin-left:18px;
  font-weight:500;
}
.btsel header.site nav a:hover{color:var(--accent)}
.btsel header.site nav a.active{color:var(--ink)}

/* ===== MAIN ===== */
.btsel main{padding:48px 0 96px}
.btsel .reading{max-width:var(--read);margin:0 auto}

/* ===== TYPOGRAPHY ===== */
.btsel h1{
  font-size:46px;
  line-height:1.15;
  letter-spacing:-.5px;
  margin:0 0 14px;
  color:var(--ink);
}
.btsel .dek{
  font-size:19px;
  color:var(--muted);
  margin:0 0 24px;
  max-width:680px;
  line-height:1.5;
}
.btsel h2{
  font-size:31px;
  line-height:1.22;
  letter-spacing:-.3px;
  margin:64px 0 16px;
  color:var(--ink);
}
.btsel h3{
  font-size:21px;
  line-height:1.3;
  margin:32px 0 10px;
  color:var(--ink-2);
}
.btsel p{margin:0 0 16px}
.btsel a{
  color:var(--accent);
  text-underline-offset:3px;
  text-decoration-thickness:1px;
}
.btsel a:hover{color:var(--accent-2)}
.btsel ul,.btsel ol{margin:0 0 18px;padding-left:22px}
.btsel li{margin:6px 0}
.btsel strong{color:var(--ink)}

/* ===== META + BYLINE ===== */
.btsel .meta{
  font-size:14px;
  color:var(--muted);
  display:flex;
  flex-wrap:wrap;
  gap:18px;
  margin-bottom:28px;
  padding-bottom:24px;
  border-bottom:1px solid var(--line);
}
.btsel .meta strong{color:var(--ink-2);font-weight:600}

.btsel .byline-block{
  display:flex;
  gap:14px;
  align-items:center;
  margin:20px 0 28px;
  padding:14px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.btsel .byline-block .who{font-size:15px}
.btsel .byline-block .who strong{display:block;color:var(--ink)}
.btsel .byline-block .who span{color:var(--muted);font-size:13px}

/* ===== ANSWER CARD + TRUST STRIP ===== */
.btsel .answer-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-left:3px solid var(--accent);
  padding:22px 24px;
  margin:8px 0 32px;
  border-radius:var(--radius);
}
.btsel .answer-card h2,.btsel .answer-card h3{margin-top:0}

.btsel .trust{
  display:flex;
  flex-wrap:wrap;
  gap:18px;
  font-size:13px;
  color:var(--muted);
  margin:24px 0 32px;
  padding:14px 18px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
}
.btsel .trust span strong{color:var(--ink-2);font-weight:600;margin-right:4px}

/* ===== TABLES ===== */
.btsel table{
  width:100%;
  border-collapse:collapse;
  margin:18px 0 28px;
  font-size:15px;
  background:var(--surface);
  border:1px solid var(--line);
  font-variant-numeric:tabular-nums;
  border-radius:var(--radius);
  overflow:hidden;
}
.btsel caption{
  caption-side:top;
  text-align:left;
  font-size:13px;
  color:var(--muted);
  padding:0 0 8px;
  font-style:italic;
}
.btsel th,.btsel td{
  padding:11px 14px;
  text-align:left;
  vertical-align:top;
  border-bottom:1px solid var(--line);
}
.btsel th{
  background:#f1f2f4;
  font-weight:600;
  color:var(--ink-2);
  font-size:13px;
  letter-spacing:.3px;
  text-transform:uppercase;
}
.btsel tr:last-child td{border-bottom:none}
.btsel tr.uvik td{background:var(--uvik)}
.btsel .ev-strong{color:var(--good);font-weight:600}
.btsel .ev-mod{color:var(--accent);font-weight:600}
.btsel .ev-lim{color:var(--warn);font-weight:600}

/* ===== DETAILS / FAQ ===== */
.btsel details{
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:0;
  margin:10px 0;
  background:var(--surface);
}
.btsel summary{
  padding:14px 18px;
  cursor:pointer;
  font-weight:600;
  color:var(--ink-2);
  list-style:none;
}
.btsel summary::-webkit-details-marker{display:none}
.btsel summary::before{
  content:"+";
  display:inline-block;
  width:16px;
  color:var(--accent);
  font-weight:700;
}
.btsel details[open] summary::before{content:"−"}
.btsel details > div{padding:0 18px 16px 34px}

/* ===== RECENTLY UPDATED + DISCLOSURE ===== */
.btsel .recently-updated{
  background:var(--surface);
  border:1px solid var(--line);
  padding:18px 22px;
  border-radius:var(--radius);
  margin:48px 0 24px;
  font-size:15px;
}
.btsel .recently-updated h2{font-size:18px;margin:0 0 10px}
.btsel .recently-updated ul{margin:0;padding-left:18px}
.btsel .recently-updated time{font-weight:600;color:var(--ink-2)}

.btsel .disclosure{
  font-size:13px;
  color:var(--muted);
  border-top:1px solid var(--line);
  padding-top:24px;
  margin-top:48px;
}
.btsel .disclosure a{color:var(--muted-2)}

/* ===== GRID ===== */
.btsel .grid-2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}
.btsel .grid-2 > div{
  background:var(--surface);
  border:1px solid var(--line);
  padding:18px 20px;
  border-radius:var(--radius);
}
.btsel .grid-2 h3{margin-top:0}

.btsel .small{font-size:14px;color:var(--muted)}

/* ===== AUXILIARY PAGE LAYOUT ===== */
.btsel .aux-hero{
  background:var(--surface);
  border:1px solid var(--line);
  padding:28px 32px;
  border-radius:var(--radius-lg);
  margin-bottom:32px;
}
.btsel .aux-hero h1{font-size:36px;margin-bottom:8px}
.btsel .aux-hero p{color:var(--muted);font-size:17px;margin:0}

.btsel .crumbs{
  font-size:13px;
  color:var(--muted);
  margin:0 0 18px;
}
.btsel .crumbs a{color:var(--muted)}
.btsel .crumbs a:hover{color:var(--accent)}

/* ===== AUTHOR / ABOUT PAGES ===== */
.btsel .profile-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  padding:32px;
  margin-bottom:32px;
}
.btsel .profile-card .pc-role{
  display:inline-block;
  font-size:12px;
  letter-spacing:.5px;
  text-transform:uppercase;
  background:var(--accent-soft);
  color:var(--accent);
  padding:4px 10px;
  border-radius:3px;
  margin-bottom:14px;
  font-weight:600;
}
.btsel .profile-card h1{margin:0 0 8px;font-size:34px}
.btsel .profile-card .pc-tagline{
  color:var(--muted);
  font-size:18px;
  margin:0 0 18px;
}
.btsel .profile-card ul.same-as{
  list-style:none;
  padding:0;
  margin:18px 0 0;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.btsel .profile-card ul.same-as li{
  margin:0;
}
.btsel .profile-card ul.same-as a{
  display:inline-block;
  font-size:13px;
  padding:5px 10px;
  background:var(--surface-2);
  border:1px solid var(--line);
  border-radius:4px;
  color:var(--ink-2);
  text-decoration:none;
}
.btsel .profile-card ul.same-as a:hover{
  border-color:var(--accent);
  color:var(--accent);
}

/* ===== SOURCE LEDGER PAGE ===== */
.btsel .source-block{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:18px 22px;
  margin:14px 0;
}
.btsel .source-block h3{margin:0 0 6px;font-size:18px}
.btsel .source-block .src-meta{
  font-size:13px;
  color:var(--muted);
  margin-bottom:8px;
}
.btsel .source-block p{margin:0;font-size:15px}

/* ===== FOOTER ===== */
.btsel footer.site{
  border-top:1px solid var(--line);
  padding:32px 0;
  margin-top:48px;
  background:var(--surface);
  font-size:14px;
  color:var(--muted);
}
.btsel footer.site .foot-inner{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:18px;
}
.btsel footer.site nav a{
  color:var(--muted);
  text-decoration:none;
  margin-right:18px;
}
.btsel footer.site nav a:hover{color:var(--accent)}
.btsel footer.site .copy{color:var(--muted-2);font-size:13px}

/* ===== 404 ===== */
.btsel .notfound{
  text-align:center;
  padding:80px 24px;
}
.btsel .notfound h1{font-size:72px;margin:0;color:var(--accent)}
.btsel .notfound p{font-size:18px;color:var(--muted);margin:12px 0 24px}
.btsel .notfound a.btn{
  display:inline-block;
  padding:12px 22px;
  background:var(--accent);
  color:#fff;
  text-decoration:none;
  border-radius:var(--radius);
  font-weight:600;
}
.btsel .notfound a.btn:hover{background:var(--accent-2);color:#fff}

/* ===== MOBILE TABLE-TO-CARD TRANSFORM + RESPONSIVE ===== */
@media (max-width:760px){
  .btsel{font-size:16px}
  .btsel h1{font-size:34px}
  .btsel h2{font-size:25px;margin-top:48px}
  .btsel .aux-hero{padding:22px 22px}
  .btsel .aux-hero h1{font-size:28px}
  .btsel .grid-2{grid-template-columns:1fr}
  .btsel header.site{font-size:13px}
  .btsel header.site nav a{margin-left:12px}
  .btsel header.site .brand-text small{display:none}

  .btsel table,.btsel thead,.btsel tbody,.btsel tr,.btsel td{
    display:block;
    width:100%;
  }
  .btsel thead{position:absolute;left:-9999px}
  .btsel tr{
    border:1px solid var(--line);
    margin-bottom:14px;
    padding:8px 0;
    background:var(--surface);
    border-radius:var(--radius);
  }
  .btsel tr.uvik{background:var(--uvik)}
  .btsel td{
    border:none;
    border-bottom:1px solid var(--line);
    padding:10px 14px 10px 44%;
    position:relative;
    min-height:34px;
  }
  .btsel td:last-child{border-bottom:none}
  .btsel td::before{
    content:attr(data-label);
    position:absolute;
    left:14px;
    top:10px;
    width:40%;
    font-size:12px;
    font-weight:600;
    color:var(--muted);
    text-transform:uppercase;
    letter-spacing:.3px;
  }
}

/* ===== ACCESSIBILITY ===== */
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.btsel .visually-hidden{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* =====================================================================
   v2 UPGRADES — Quick Picks, Medals, Score Bars, Verdict
   ===================================================================== */

/* ===== QUICK PICKS HERO STRIP ===== */
.btsel .quick-picks{
  margin:32px 0 40px;
  padding:24px 0;
  border-top:2px solid var(--accent);
  border-bottom:1px solid var(--line);
  background:linear-gradient(180deg,var(--accent-soft) 0%,transparent 100%);
  border-radius:var(--radius-lg);
  padding:24px 24px 28px;
}
.btsel .qp-h{
  font-size:14px !important;
  letter-spacing:1px;
  text-transform:uppercase;
  color:var(--accent) !important;
  margin:0 0 16px !important;
  font-weight:700;
}
.btsel .qp-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
}
.btsel .qp-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-left:3px solid var(--line-2);
  padding:14px 16px;
  border-radius:var(--radius);
  font-size:14px;
}
.btsel .qp-card-primary{
  border-left-color:var(--accent);
  background:linear-gradient(180deg,#fff 0%,var(--uvik) 100%);
}
.btsel .qp-tag{
  font-size:11px;
  letter-spacing:.6px;
  text-transform:uppercase;
  color:var(--muted);
  font-weight:600;
  margin-bottom:4px;
}
.btsel .qp-card-primary .qp-tag{color:var(--accent)}
.btsel .qp-name{
  font-size:17px;
  font-weight:700;
  color:var(--ink);
  margin-bottom:6px;
  letter-spacing:-.1px;
}
.btsel .qp-why{
  color:var(--ink-2);
  font-size:14px;
  line-height:1.5;
  margin:0;
}

/* ===== MEDALS ===== */
.btsel .medal{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:26px;
  height:26px;
  border-radius:50%;
  font-size:13px;
  font-weight:700;
  color:#fff;
  letter-spacing:0;
}
.btsel .medal-gold{background:linear-gradient(135deg,#d4a017,#b8860b);box-shadow:inset 0 1px 0 rgba(255,255,255,.3)}
.btsel .medal-silver{background:linear-gradient(135deg,#a0a8b0,#7c8590);box-shadow:inset 0 1px 0 rgba(255,255,255,.3)}
.btsel .medal-bronze{background:linear-gradient(135deg,#b87333,#8b5a2b);box-shadow:inset 0 1px 0 rgba(255,255,255,.3)}

/* ===== SCORE BARS ===== */
.btsel .score-cell{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:90px;
}
.btsel .score-bar{
  flex:1;
  height:6px;
  background:var(--line);
  border-radius:3px;
  overflow:hidden;
  min-width:50px;
}
.btsel .score-fill{
  display:block;
  height:100%;
  background:linear-gradient(90deg,var(--accent-2),var(--accent));
  border-radius:3px;
}
.btsel tr.uvik .score-fill{background:linear-gradient(90deg,#b8860b,#d4a017)}
.btsel .score-num{
  font-weight:700;
  color:var(--ink);
  font-variant-numeric:tabular-nums;
  min-width:24px;
  text-align:right;
  font-size:14px;
}

/* ===== VERDICT BY SCENARIO ===== */
.btsel .verdict{
  background:var(--surface);
  border:1px solid var(--accent);
  border-left:4px solid var(--accent);
  padding:24px 28px;
  border-radius:var(--radius-lg);
  margin:48px 0;
}
.btsel .verdict-h{
  font-size:22px !important;
  margin:0 0 12px !important;
  color:var(--accent) !important;
  line-height:1.3;
}
.btsel .verdict > p:first-of-type{
  color:var(--ink-2);
  font-size:15px;
}
.btsel .verdict-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px 22px;
  list-style:none;
  padding:0;
  margin:18px 0;
}
.btsel .verdict-grid li{
  padding:8px 0;
  border-bottom:1px solid var(--line);
  font-size:14px;
  line-height:1.5;
  color:var(--ink-2);
  margin:0;
}
.btsel .verdict-grid li:nth-last-child(-n+2){border-bottom:none}
.btsel .verdict-grid li strong{color:var(--ink);font-weight:600}
.btsel .verdict-foot{
  margin:14px 0 0 !important;
  padding-top:14px;
  border-top:1px solid var(--line);
  color:var(--muted) !important;
}

/* ===== RESPONSIVE OVERRIDES FOR v2 ===== */
@media (max-width:760px){
  .btsel .qp-grid{grid-template-columns:1fr}
  .btsel .verdict-grid{grid-template-columns:1fr;gap:0}
  .btsel .verdict-grid li{border-bottom:1px solid var(--line) !important}
  .btsel .verdict-grid li:last-child{border-bottom:none !important}
  .btsel .verdict{padding:18px 18px}
  .btsel .verdict-h{font-size:19px !important}
  .btsel .quick-picks{padding:18px 16px 20px;border-radius:var(--radius)}
  .btsel .medal{width:24px;height:24px;font-size:12px}
  .btsel .score-cell{min-width:auto}
  .btsel .score-bar{min-width:40px}
}
