/* /compare: Remster vs Eight Sleep vs Chilipad. Header, pill and footer styles come from features.css. */
body::after{content:none} /* no blue glow at the bottom of this page */
.cx{--hdr:70px;max-width:1120px;margin:0 auto;padding:0 clamp(20px,4vw,48px)}
.cx h1,.cx h2{font-family:'Plus Jakarta Sans',system-ui,sans-serif;font-weight:600;color:#fff}

/* Hero: the three product names and the pre-order button */
.cx-hero{padding:clamp(48px,8vw,104px) 0 clamp(24px,4vw,40px)}
.cx-hero h1{font-size:clamp(34px,5vw,60px);letter-spacing:-0.035em;line-height:1.04}
.cx-hero .pill{margin-top:28px}

.cx-sec{padding:clamp(40px,6vw,72px) 0 0}
.cx-sec h2{font-size:clamp(24px,2.8vw,34px);letter-spacing:-0.025em;line-height:1.15;margin-bottom:24px}



/* Feature table: icons first, a few words after */
/* overflow:clip (not hidden) keeps the rounded corners without breaking the sticky product names */
.cmp-body{border:1px solid rgba(255,255,255,.16);border-radius:20px;overflow:hidden;overflow:clip;background:#0b0c0f}
.cmp{width:100%;border-collapse:collapse;font-size:15px;line-height:1.45}
.cmp th,.cmp td{text-align:left;vertical-align:middle;padding:18px 20px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}
.cmp tr > :last-child{border-right:0}
.cmp tbody tr:last-child > *{border-bottom:0}
.cmp thead th,.cmp thead td{position:sticky;top:var(--hdr);z-index:5;background:#111318;box-shadow:0 1px 0 rgba(255,255,255,.16)}
.cmp thead th{font-family:'Plus Jakarta Sans',system-ui,sans-serif;font-size:clamp(16px,1.5vw,19px);font-weight:600;letter-spacing:-0.01em;color:var(--muted);padding-top:20px;padding-bottom:20px}
.cmp thead th small{display:block;font-family:'Inter',system-ui,sans-serif;font-size:12.5px;font-weight:500;letter-spacing:0;color:var(--muted);opacity:.8}
.cmp thead th.r{color:#fff;background:#16181d}
.cmp tbody th{width:28%;font-weight:500;color:var(--ink)}
.cmp tbody td{width:24%;color:var(--muted)}
.cmp .r{background:rgba(255,255,255,.035)}
.cmp tbody td.r{color:#fff}
.cmp td.ns{opacity:.6}
.cmp tr.price strong{display:block;font-family:'Plus Jakarta Sans',system-ui,sans-serif;font-size:22px;font-weight:600;letter-spacing:-0.02em;color:#fff}
.cmp tr.price td:not(.r) strong{color:var(--ink-2)}
.cmp tr.price small{display:block;margin-top:4px;font-size:12.5px;color:var(--muted)}
/* icon sits in its own gutter so wrapped text lines up under the first line, not under the icon */
.cmp td:has(.ic){position:relative;padding-left:54px}
.cmp .ic{position:absolute;left:20px;top:50%;width:22px;height:22px;transform:translateY(-50%)}
.cmp .ic.yes{color:#f5f5f7}
.cmp .ic.part{color:rgba(245,245,247,.7)}
.cmp .ic.no{color:rgba(245,245,247,.32)}

.cmp-end{margin-top:clamp(48px,7vw,80px);padding:clamp(28px,4vw,40px) 0;border-top:1px solid rgba(255,255,255,.5);border-bottom:1px solid var(--line)}
.cmp-notes{padding:clamp(24px,4vw,36px) 0 clamp(56px,8vw,96px);max-width:760px;font-size:13px;line-height:1.7;color:var(--muted)}
.cmp-notes p+p{margin-top:10px}

@media (max-width:900px){
}

/* Phones: the table keeps three product columns; the row name sits on its own line above them */
@media (max-width:640px){
  .cx{--hdr:70px}
  .cmp,.cmp thead,.cmp tbody{display:block}
  .cmp thead{position:sticky;top:var(--hdr);z-index:5}
  .cmp thead th,.cmp thead td{position:static}
  .cmp tr{display:grid;grid-template-columns:repeat(3,1fr)}
  .cmp thead td{display:none}
  .cmp th,.cmp td,.cmp tbody th,.cmp tbody td{width:auto;padding:12px 10px;font-size:13px}
  .cmp thead th{font-size:14px;padding:12px 10px}
  .cmp tbody th{grid-column:1 / -1;width:auto;padding:14px 12px 4px;border-right:0;border-bottom:0;font-weight:600;color:#fff;background:#111318}
  .cmp tbody td{border-bottom:1px solid var(--line)}
  .cmp tbody tr:last-child > td{border-bottom:0}
  .cmp tbody tr > td:last-child{border-right:0}
  .cmp td:has(.ic){padding-left:10px}
  .cmp tr.price strong{font-size:17px}
  .cmp .ic{position:static;transform:none;display:block;margin:0 0 6px}
}
