/* Features page only (/features). Every selector starts with .pg-features. Tokens come from site.css. */

.pg-features .planlegend { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.pg-features .fsec { scroll-margin-top: 130px; }
.pg-features .fsec__head .stack > h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.pg-features .fsec__head .steps { margin-top: 4px; }
.pg-features .feat header .plan, .pg-features .feat header .status { flex: none; }
.pg-features .feat footer .textlink { font-size: .875rem; }
.pg-features .doc__car img { width: 120px; height: auto; }
.pg-features .pill { min-width: 58px; text-align: center; padding: 4px 10px; border-radius: var(--r-pill); background: var(--fill); font: 600 .75rem/1.4 var(--font-text); color: var(--fg-2); }
.pg-features .dayrow__price.neg { color: var(--warn); }
.pg-features .ftable td { color: var(--fg-2); }
.pg-features .ftable td .textlink { color: var(--fg); }
.pg-features .honest--end { margin-top: clamp(28px, 4vw, 40px); }
@media (max-width: 480px) {
  .pg-features .feat header h3 { margin-right: 0; flex-basis: 100%; }
}
/* Keep the ribbon's hover tips inside the screen at the two ends */
.pg-features .ribbon__bar:nth-child(-n+2) .ribbon__tip { left: 0; transform: none; }
.pg-features .ribbon__bar:nth-last-child(-n+2) .ribbon__tip { left: auto; right: 0; transform: none; }
/* Tables become one card per row on phones (labels from data-l) */
@media (max-width: 640px) {
  .pg-features .ftable--stack { min-width: 0; }
  .pg-features .ftable--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pg-features .ftable--stack tr { display: grid; gap: 6px; padding: 16px; border-bottom: 1px solid var(--line); }
  .pg-features .ftable--stack tr:last-child { border-bottom: 0; }
  .pg-features .ftable--stack th, .pg-features .ftable--stack td { display: block; padding: 0; border: 0; white-space: normal; }
  .pg-features .ftable--stack tbody th { font-size: 1rem; margin-bottom: 4px; }
  .pg-features .ftable--stack td[data-l]::before { content: attr(data-l); display: block; font-size: .75rem; font-weight: 600; color: var(--fg-3); }
}
