*, ::before, ::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
  line-height: 1.5;
  color: #212529;
}

h1, h2, h3 { margin: 0 0 .5rem; font-weight: 500; line-height: 1.2; }
h1 { font-size: min(calc(1.375rem + 1.5vw), 2.5rem); }
h2 { font-size: min(calc(1.325rem + .9vw), 2rem); }
h3 { font-size: min(calc(1.3rem + .6vw), 1.75rem); }
p { margin: 0 0 1rem; }
sup { position: relative; top: -.5em; font-size: .75em; line-height: 0; vertical-align: baseline; }

a { color: #0d6efd; }
a:hover { color: #0a58ca; }

img { max-width: 100%; height: auto; vertical-align: middle; }

.container { max-width: 1320px; margin: 0 auto; padding: 0 .75rem; }

section { padding: 1.5rem 0; }
section.page { padding: 3rem; text-align: center; }
.alt { background: #f8f9fa; }
.title { color: #0dcaf0; text-align: center; padding: 1rem 0; }
.page .title { padding: 0; }

/* Navbar */
.navbar { background: #f8f9fa; padding: .5rem 0; }
.navbar .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.brand { display: block; padding: .3125rem 0; margin-right: 1rem; }
.brand img { display: block; }

.nav-toggle { /* The checkbox itself is the hamburger button, so it stays keyboard-focusable. */
  appearance: none;
  margin: 0;
  width: 3.5rem;
  height: 2.5rem;
  border: 1px solid rgba(0, 0, 0, .15);
  border-radius: .375rem;
  background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(33,37,41,0.75)' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") center / 1.875rem no-repeat;
  cursor: pointer;
}
.nav-toggle:focus-visible { outline: none; box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25); }

.nav-menu { display: none; flex-basis: 100%; margin: 0; padding: 0; list-style: none; }
.nav-toggle:checked ~ .nav-menu { display: block; }
.nav-menu a { display: block; padding: .5rem 0; color: rgba(0, 0, 0, .65); text-decoration: none; }
.nav-menu a:hover { color: rgba(0, 0, 0, .8); }
.nav-menu a[aria-current="page"] { color: #000; }

@media (min-width: 992px) {
  .nav-toggle { display: none; }
  .nav-menu, .nav-toggle:checked ~ .nav-menu { display: flex; flex-basis: auto; margin-left: auto; }
  .nav-menu a { padding: .5rem; }
}
@media (min-width: 1200px) {
  .nav-menu a { padding: .5rem 1rem; }
}

/* Tables */
table { width: 100%; margin-bottom: 1rem; border-collapse: collapse; }
th, td { padding: .5rem; vertical-align: top; }
thead th { vertical-align: bottom; }
.compare { text-align: center; }
.compare th, .compare td { border: 1px solid #dee2e6; }
.compare th[scope="row"] { text-align: left; }
.good { background: #d1e7dd; }
.fair { background: #fff3cd; }
.poor { background: #f8d7da; }

.specs td { border-bottom: 1px solid #dee2e6; text-align: left; }
.specs td:last-child { text-align: right; }

/* Products */
.products { display: grid; gap: 1.5rem; text-align: center; }
@media (min-width: 1200px) {
  .products { grid-template-columns: 1fr 1fr; }
}
.card { padding: 1rem; background: #fff; border: 1px solid rgba(0, 0, 0, .175); border-radius: .375rem; }
.card h3 { margin-bottom: 1rem; }

.button {
  display: inline-block;
  padding: .375rem 3rem;
  border-radius: .375rem;
  background: #0d6efd;
  color: #fff;
  text-decoration: none;
}
.button:hover { background: #0b5ed7; color: #fff; }

/* Footer */
footer { padding: 1.5rem 0; text-align: center; }
.footer-row { display: grid; gap: 0 1.5rem; }
@media (min-width: 992px) {
  .footer-row { grid-template-columns: repeat(3, 1fr); }
}
.icon { width: 1em; height: 1em; vertical-align: -.125em; }
