/* The comparison hub (/vs), built by scripts/build-compare-hub.mjs: Ramp's /versus page in our
   colours, on top of compare.css. A dark hero with copy on the left and a brand card on the right,
   then every comparison as a logo tile in four columns. */

/* ---------- hero ---------- */
.hub-hero{min-height:740px;padding:82px 0 0;display:flex;align-items:center;text-align:left}
.hub-hero-in{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);align-items:center;gap:64px;padding:56px 0 72px}
.hub-hero h1{margin:0;font-size:clamp(40px,3.6vw,52px);line-height:1.06}
.hub-hero .rp-hero-sub{max-width:31em;margin:22px 0 0;text-wrap:pretty}
.hub-hero .rp-ctas{justify-content:flex-start}

/* ---------- the brand card, where Ramp shows its card ---------- */
.hub-card{position:relative;aspect-ratio:500/316;border:1px solid #3a4047;border-radius:18px;background:linear-gradient(150deg,#262b31 0%,#14181c 72%);overflow:hidden;box-shadow:0 30px 80px rgba(0,0,0,.4)}
.hub-card svg{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke:rgba(250,249,246,.2);stroke-width:1}
.hub-word{position:absolute;left:7%;top:9%;font-family:"Fraunces",Georgia,serif;font-size:clamp(22px,2.5vw,36px);font-weight:600;letter-spacing:-.05em;line-height:1;color:#fff}
.hub-word span{color:var(--rp-mint)}
/* the site's orb (.sol-orb in the header's menus), still */
.hub-orb{position:absolute;left:78.4%;top:67.7%;width:17.6%;aspect-ratio:1;border-radius:50%;transform:translate(-50%,-50%);background:radial-gradient(38% 42% at 30% 28%,rgba(255,255,255,.95) 0%,rgba(255,255,255,0) 72%),radial-gradient(58% 58% at 72% 36%,rgba(46,107,68,.85) 0%,rgba(46,107,68,0) 78%),radial-gradient(50% 55% at 66% 78%,rgba(183,217,192,.95) 0%,rgba(183,217,192,0) 72%),radial-gradient(closest-side,#eaf3ec 0%,#cfe3d5 100%);box-shadow:0 18px 44px rgba(46,107,68,.4)}

/* ---------- the list ---------- */
.hub-list{padding-top:96px}
.hub-list h2{text-align:left}
.hub-group{margin-top:56px}
.hub-group h3{margin:0;font-size:22px;font-weight:460;line-height:1.25;letter-spacing:-.018em;color:var(--rp-ink)}
.hub-group p{margin:6px 0 0;color:var(--rp-muted);font-size:16px;line-height:1.4}
.hub-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 24px;margin:18px 0 0;padding:0;list-style:none}
.hub-item{display:flex;align-items:center;gap:16px;margin-left:-12px;padding:12px;border-radius:12px;color:var(--rp-ink);font-size:17px;line-height:1.3;text-decoration:none;transition:background .2s ease}
.hub-item:hover{background:var(--rp-bar)}
.hub-item:focus-visible{outline:2px solid var(--rp-ivy);outline-offset:0}
.hub-tile{display:grid;flex:none;place-items:center;width:56px;height:56px;border:1px solid #e3e0da;border-radius:8px;background:#fff}
.hub-tile img{display:block;width:40px;height:40px;object-fit:contain}

/* ---------- the guides page (/guides, scripts/build-guides-hub.mjs): the same rows, a name and its guide's own line ---------- */
.hub-grid--guides{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 24px}
.hub-guide{flex-direction:column;align-items:flex-start;gap:6px;padding:16px 12px}
.hub-guide-t{font-size:18px;font-weight:500;line-height:1.3;color:var(--rp-ink)}
.hub-guide-d{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;color:var(--rp-muted);font-size:15px;line-height:1.45}

@media (max-width:1180px){
  .hub-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .hub-grid--guides{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:1000px){
  .hub-hero{min-height:0}
  .hub-hero-in{grid-template-columns:1fr;gap:44px;padding:48px 0 64px}
  .hub-card{max-width:560px}
  .hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:760px){
  .hub-hero{padding-top:76px}
  .hub-hero-in{padding:36px 0 52px}
  .hub-hero h1{font-size:clamp(38px,10.4vw,44px)}
  .hub-list{padding-top:72px}
  .hub-group{margin-top:44px}
}
@media (max-width:640px){
  .hub-grid,.hub-grid--guides{grid-template-columns:1fr;gap:0}
}
@media (prefers-reduced-motion:reduce){
  .hub-item{transition:none}
}
