/* ========== Base / Reset ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.5;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}
/* ========== Layout ========== */
.page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(1100px, 100% - 32px);
  margin-inline: auto;
}

.header,
.footer {
  padding: 16px 0;
}

.header__inner,
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.main {
  flex: 1;
  padding: 24px 0;
}
/* ========== Components ========== */
.logo {
  font-weight: 700;
}

.nav {
  display: flex;
  gap: 16px;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav__link {
  padding: 8px 10px;
  border-radius: 8px;
}

.nav__link:hover {
  text-decoration: underline;
}

.nav__link.is-active {
  font-weight: 700;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer__copy {
  margin: 0;
}

.footer__nav {
  display: flex;
  gap: 16px;
}

.footer__link {
  font-size: 14px;
}

.footer__link:hover {
  text-decoration: underline;
}

.products {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .products {
    grid-template-columns: repeat(2, 1fr);
  }
}

.product-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 16px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
}

.product-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__media img {
  max-width: 100%;
  height: auto;
}

.product-card__title {
  margin: 0 0 8px;
  font-size: 18px;
}

.product-card__features {
  margin: 0 0 16px;
  padding-left: 16px;
}

.product-card__features li {
  font-size: 14px;
}

.product-card__cta {
  align-self: flex-start;
}

@media (max-width: 600px) {
  .product-card {
    grid-template-columns: 1fr;
  }

  .product-card__media {
    justify-content: flex-start;
  }
}

.comparison {
  margin-top: 32px;
}

.comparison__wrapper {
  overflow-x: auto;
}

.comparison__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.comparison__table th,
.comparison__table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e5e5e5;
}

.comparison__table th {
  font-weight: 700;
}

.comparison__table td:last-child {
  text-align: right;
}

.comparison__table th:last-child,
.comparison__table td:last-child {
  width: 140px;
}

.disclosure {
  margin: 8px 0 16px;
  font-size: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #000;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.badge:hover {
  text-decoration: underline;
}
/* ========== Pages ========== */
.main h1 {
  margin-bottom: 12px;
}

.main > .container > p {
  margin-bottom: 24px;
}

.main section {
  margin-bottom: 32px;
}

.main section h2 {
  margin-bottom: 16px;
}

.main section p {
  margin-bottom: 16px;
}
  /* ========== Utilities ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #000;
  font-weight: 600;
  white-space: nowrap;
}

.btn--sm {
  min-width: 120px;
  padding: 8px 12px;
  font-size: 14px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.u-text-center {
  text-align: center;
}

.u-text-right {
  text-align: right;
}

:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}
