/* What each version can preview, side by side.
   Laid out like the questions below it: the heading in a left column with a
   rule, the answer on the right. Under 900px it stacks, and the table scrolls
   sideways rather than squeezing three columns of notes into a phone. */
.compare{
  background:var(--paper);
  display:grid;
  min-width:0;
  grid-template-columns:minmax(160px,1fr) minmax(0,2.15fr);
  gap:clamp(20px,4vw,56px);
  padding:clamp(30px,5vw,64px) var(--pad) clamp(34px,5vw,58px);
  border-bottom:1px solid var(--line);
}
.compare__head{padding-right:clamp(16px,2.6vw,40px);border-right:1px solid var(--line)}
/* the lime dot the other section labels wear */
.compare__head>.micro{position:relative;z-index:0;display:inline-block;color:var(--ink)}
.compare__head>.micro::before{
  content:"";position:absolute;left:-5px;top:-1px;
  width:12px;height:12px;border-radius:50%;
  background:var(--lime);z-index:-1;
}
.compare__head .grotesk--sm{
  margin-top:10px;
  font-size:clamp(28px,3.5vw,50px);line-height:1.02;letter-spacing:-.035em;
}
.compare__note{margin-top:18px;max-width:30ch;color:var(--ink-2);font-size:13.5px;line-height:1.6}

.compare__wrap{min-width:0;overflow-x:auto}
.compare__table{width:100%;min-width:560px;border-collapse:collapse;font-size:14.5px;line-height:1.45}
.compare__table th,
.compare__table td{padding:15px 12px;border-top:1px solid var(--line);text-align:left;vertical-align:top}
.compare__table tbody tr:last-child>*{border-bottom:1px solid var(--line)}
.compare__table thead th{
  border-top:0;padding-top:0;
  font-size:15px;font-weight:700;letter-spacing:-.01em;color:var(--ink);
  white-space:nowrap;
}
.compare__table thead small{display:block;margin-top:3px;font-size:12px;font-weight:400;letter-spacing:0;color:var(--muted)}
.compare__table tbody th{width:34%;padding-left:0;font-weight:500;color:var(--ink)}
.compare__table td{color:var(--ink-2)}

/* yes, no, and the notes in between */
.mark{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%}
.mark--yes{background:var(--lime);color:var(--ink)}
.mark--no{background:var(--tile);color:var(--muted)}
.part{display:block;font-size:13px;line-height:1.4;color:var(--ink-2)}

@media (max-width:900px){
  .compare{grid-template-columns:1fr}
  .compare__head{border-right:0;padding-right:0}
}

/* A phone gets one card per row: what it is, then the three answers side by
   side under small labels, instead of a table to scroll sideways. */
@media (max-width:640px){
  .compare__table{min-width:0}
  .compare__table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .compare__table tbody tr{
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:12px;
    padding:16px 0;border-top:1px solid var(--line);
  }
  .compare__table tbody tr:last-child{border-bottom:1px solid var(--line)}
  .compare__table th,.compare__table td,
  .compare__table tbody tr:last-child>*{border:0;padding:0}
  .compare__table tbody th{grid-column:1/-1;width:auto;margin-bottom:12px}
  .compare__table td::before{
    content:attr(data-label);display:block;margin-bottom:6px;
    font-size:10.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);
  }
}
