:root {
  --blue: #17679f;
  --navy: #063f64;
  --teal: #00a8b0;
  --paper: #fff;
  --gap: 3rem;
}

/* Base styles */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #edf1f3;
  color: #13384e;
  font: 16px/1.4 Arial, Helvetica, sans-serif;
}

.postcards {
  width: min(100% - 2rem, 1100px);
  margin: auto;
  padding: var(--gap) 0;
}

.page {
  position: relative;
  min-height: 700px;
  margin-bottom: var(--gap);
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0.5rem 1.5rem #17384a24;
}

.page address {
  font-style: normal;
}

.page address h2 {
  margin: 0;
  color: var(--blue);
  font-size: 2rem;
}

.page a {
  color: inherit;
}

/* Full-image pages */

.image-page {
  min-height: 0;
}

.image-page img {
  display: block;
  width: 100%;
  height: auto;
}

/* Introduction page */

.intro-page {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  grid-template-areas:
    "questions product"
    "address product";
  gap: 2rem;
  padding: 5rem;
}

.questions {
  grid-area: questions;
}

.questions h1 {
  font-size: 2.5rem;
}

.questions ul {
  padding: 0;
  list-style: none;
  font-size: 1.4rem;
}

.questions li {
  margin: 0.8rem 0;
}

.questions li::before {
  content: "□";
  margin-right: 0.7rem;
}

.product {
  grid-area: product;
  color: #057b9c;
  text-align: center;
  text-transform: uppercase;
}

.product img {
  display: block;
  width: 100%;
  max-height: 430px;
  margin: auto;
  object-fit: contain;
}

.product strong {
  display: block;
  padding: 0.6rem;
}

.intro-page > address {
  grid-area: address;
}

/* Comparison page */

.compare-page {
  padding: 2.5rem;
}

.compare-page > h1 {
  margin: 0 0 1rem;
  color: var(--blue);
  font-size: 3rem;
  text-transform: uppercase;
}

/* Benefits row */

.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 1.4rem;
  border: 1px solid #d8e2e5;
}

.benefits span {
  padding: 1rem;
  color: var(--navy);
  font-weight: bold;
  text-align: center;
  border-right: 1px solid #d8e2e5;
}

.benefits span:last-child {
  border: 0;
}

/* Comparison content */

.compare-body {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 1.5rem;
}

.compare-body > div {
  position: relative;
  padding: 1.8rem;
  background: linear-gradient(135deg, #0eb8bd, #007487);
  color: #fff;
}

.compare-body h2 {
  max-width: 330px;
  margin: 0;
  color: #f7dfb1;
  font-size: 2rem;
}

.difference {
  position: absolute;
  top: 2.5rem;
  left: 43%;
  font-size: 2rem;
  font-style: italic;
  font-weight: bold;
}

.credit-union {
  position: absolute;
  top: 1.8rem;
  right: 2rem;
  font-size: 1.45rem;
}

.credit-union small {
  display: block;
  font-size: 0.65rem;
  text-align: right;
}

/* Comparison table */

.table-wrap {
  margin-top: 2rem;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  text-align: center;
}

th,
td {
  padding: 0.65rem;
  border: 1px solid #8ed6d8;
}

th {
  color: #f7dfb1;
  text-transform: uppercase;
}

td strong {
  font-size: 1.2rem;
}

/* Product sidebar */

.compare-body .product {
  background: #fff;
}

.compare-body .product address {
  padding: 1rem;
  color: #fff;
  background: #176988;
  text-transform: none;
}

.compare-body .product address b {
  text-transform: uppercase;
}

/* Rebate and footnote */

.rebate {
  display: inline-flex;
  gap: 0.5rem;
  margin: 1.2rem 0 0;
  padding: 0.6rem 1rem;
  color: #3c7c30;
  border: 2px solid #7fac6f;
  border-radius: 0.35rem;
  font-weight: bold;
}

.rebate small {
  font-weight: normal;
}

.footnote {
  color: #536a76;
  font-size: 0.72rem;
}

/* Mobile layout */

@media (max-width: 760px) {
  :root {
    --gap: 1rem;
  }

  .postcards {
    width: 100%;
    padding: 0;
  }

  .page {
    min-height: 0;
    margin-bottom: var(--gap);
    box-shadow: none;
  }

  .intro-page {
    grid-template-columns: 1fr;
    grid-template-areas:
      "questions"
      "product"
      "address";
    padding: 2rem;
  }

  .questions h1,
  .compare-page > h1 {
    font-size: 2rem;
  }

  .benefits {
    grid-template-columns: 1fr 1fr;
  }

  .compare-body {
    grid-template-columns: 1fr;
  }

  .difference,
  .credit-union {
    position: static;
  }

  .compare-page {
    padding: 1.2rem;
  }

  .rebate {
    display: block;
  }

  .rebate small {
    display: block;
    margin-top: 0.35rem;
  }
}