:root {
  --cream: #fff5e3;
  --paper: #fffdf6;
  --ink: #201713;
  --espresso: #38261f;
  --tomato: #e9432e;
  --coral: #ff7b55;
  --butter: #ffd95a;
  --matcha: #79b65b;
  --turquoise: #2fb6b2;
  --cobalt: #3157c8;
  --lavender: #bda7ff;
  --radius: 8px;
  --hard-shadow: 8px 8px 0 var(--espresso);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Nunito Sans", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 4px solid var(--butter);
  outline-offset: 4px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Fraunces, Georgia, serif;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1.3rem;
  font-size: 4.8rem;
  line-height: 0.98;
}

h2 {
  margin-bottom: 1rem;
  font-size: 3.2rem;
  line-height: 1.02;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.75rem;
  line-height: 1.08;
}

.compare-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 74px;
  border-bottom: 2px solid var(--espresso);
  padding: 0.8rem 3rem;
  background: rgba(255, 245, 227, 0.96);
}

.compare-brand,
.compare-nav > div {
  display: flex;
  align-items: center;
}

.compare-brand {
  gap: 0.7rem;
  text-decoration: none;
}

.compare-brand > span {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 2px solid var(--espresso);
  border-radius: var(--radius);
  color: var(--paper);
  background: var(--tomato);
  box-shadow: 4px 4px 0 var(--espresso);
  font-weight: 950;
}

.compare-brand strong {
  font-size: 1.2rem;
  white-space: nowrap;
}

.compare-brand b {
  color: var(--tomato);
}

.compare-nav > div {
  justify-content: center;
  gap: 1.2rem;
}

.compare-nav > div a {
  border-bottom: 3px solid transparent;
  padding: 0.4rem 0.1rem;
  font-weight: 900;
  text-decoration: none;
}

.compare-nav > div a:hover {
  border-bottom-color: var(--tomato);
}

.compare-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border: 2px solid var(--espresso);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  color: var(--paper);
  background: var(--tomato);
  box-shadow: 5px 5px 0 var(--espresso);
  font-weight: 950;
  text-align: center;
  text-decoration: none;
}

.compare-hero,
.matrix-section,
.difference-section,
.honesty-section,
.source-section,
.compare-demo {
  padding: 5rem 3rem;
}

.compare-hero {
  min-height: 36rem;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  background: var(--cobalt);
}

.compare-hero > div {
  max-width: 76rem;
}

.compare-hero p:last-child {
  max-width: 52rem;
  margin-bottom: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.compare-kicker {
  margin-bottom: 0.75rem;
  color: var(--tomato);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.compare-hero .compare-kicker,
.compare-demo .compare-kicker {
  color: var(--butter);
}

.decision-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 3px solid var(--espresso);
  border-bottom: 3px solid var(--espresso);
  background: var(--espresso);
}

.decision-strip article {
  display: grid;
  gap: 0.25rem;
  min-height: 8rem;
  border-right: 3px solid var(--espresso);
  padding: 1.2rem 3rem;
  background: var(--butter);
}

.decision-strip article:nth-child(2) {
  background: var(--turquoise);
}

.decision-strip article:nth-child(3) {
  border-right: 0;
  color: var(--paper);
  background: var(--tomato);
}

.decision-strip span {
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.decision-strip strong {
  align-self: end;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.55rem;
}

.matrix-section {
  background: var(--paper);
}

.matrix-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.6fr);
  gap: 1rem 3rem;
  align-items: end;
  max-width: 90rem;
  margin-bottom: 2rem;
}

.matrix-heading .compare-kicker {
  grid-column: span 2;
  margin-bottom: 0;
}

.matrix-heading h2,
.matrix-heading p {
  margin-bottom: 0;
}

.matrix-heading p {
  font-weight: 800;
}

.comparison-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 3px solid var(--espresso);
  box-shadow: var(--hard-shadow);
}

.comparison-table-wrap:focus-visible {
  outline-color: var(--cobalt);
}

table {
  width: 100%;
  min-width: 70rem;
  border-collapse: collapse;
  background: var(--paper);
}

th,
td {
  width: 20%;
  border-right: 2px solid var(--espresso);
  border-bottom: 2px solid var(--espresso);
  padding: 1rem;
  vertical-align: top;
  text-align: left;
}

thead th {
  color: var(--paper);
  background: var(--espresso);
  font-size: 1rem;
}

tbody th {
  background: var(--butter);
  font-size: 0.84rem;
  text-transform: uppercase;
}

th:last-child,
td:last-child {
  border-right: 0;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

.drinkflow-column {
  background: #ffe0d5;
  font-weight: 850;
}

thead .drinkflow-column {
  color: var(--paper);
  background: var(--tomato);
}

.difference-section {
  color: var(--espresso);
  background: var(--turquoise);
}

.difference-intro {
  max-width: 78rem;
  margin-bottom: 2rem;
}

.difference-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 3px solid var(--espresso);
  background: var(--espresso);
  box-shadow: var(--hard-shadow);
}

.difference-list article {
  min-height: 22rem;
  border-right: 3px solid var(--espresso);
  padding: 1.25rem;
  background: var(--paper);
}

.difference-list article:nth-child(2) {
  background: var(--butter);
}

.difference-list article:last-child {
  border-right: 0;
  color: var(--paper);
  background: var(--cobalt);
}

.difference-list span {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  margin-bottom: 2.5rem;
  font-weight: 950;
}

.difference-list p {
  margin-bottom: 0;
  font-weight: 800;
}

.honesty-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(24rem, 1.15fr);
  gap: 3rem;
  color: var(--paper);
  background: var(--espresso);
}

.honesty-section .compare-kicker {
  color: var(--coral);
}

.honesty-section ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.honesty-section li {
  border-top: 2px solid var(--coral);
  padding: 1rem 0;
  font-size: 1.05rem;
  font-weight: 750;
}

.source-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(22rem, 1.15fr);
  gap: 3rem;
  background: var(--lavender);
}

.source-section nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.source-section a {
  display: flex;
  align-items: center;
  min-height: 4rem;
  border: 2px solid var(--espresso);
  border-radius: var(--radius);
  padding: 0.8rem;
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--espresso);
  font-weight: 900;
  text-decoration: none;
}

.compare-demo {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  color: var(--paper);
  background: var(--tomato);
}

.compare-demo h2,
.compare-demo p:last-child {
  margin-bottom: 0;
}

.compare-demo p:last-child {
  max-width: 52rem;
  font-weight: 800;
}

.compare-cta--light {
  color: var(--espresso);
  background: var(--paper);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}

@media (max-width: 980px) {
  .compare-nav > div {
    display: none;
  }

  .matrix-heading,
  .honesty-section,
  .source-section,
  .compare-demo {
    grid-template-columns: 1fr;
  }

  .matrix-heading .compare-kicker {
    grid-column: span 1;
  }

  .difference-list {
    grid-template-columns: 1fr;
  }

  .difference-list article,
  .difference-list article:last-child {
    min-height: auto;
    border-right: 0;
    border-bottom: 3px solid var(--espresso);
  }

  .difference-list article:last-child {
    border-bottom: 0;
  }

  .difference-list span {
    margin-bottom: 1rem;
  }

  .compare-demo {
    justify-items: start;
  }
}

@media (max-width: 700px) {
  h1 {
    font-size: 3.2rem;
  }

  h2 {
    font-size: 2.45rem;
  }

  .compare-nav {
    padding: 0.7rem 1rem;
  }

  .compare-brand strong {
    font-size: 1rem;
  }

  .compare-cta {
    min-height: 2.65rem;
    padding: 0.6rem 0.7rem;
    font-size: 0.86rem;
  }

  .compare-hero,
  .matrix-section,
  .difference-section,
  .honesty-section,
  .source-section,
  .compare-demo {
    padding: 3rem 1rem;
  }

  .compare-hero {
    min-height: 34rem;
  }

  .decision-strip {
    grid-template-columns: 1fr;
  }

  .decision-strip article,
  .decision-strip article:nth-child(3) {
    min-height: 6rem;
    border-right: 0;
    border-bottom: 3px solid var(--espresso);
    padding: 1rem;
  }

  .decision-strip article:nth-child(3) {
    border-bottom: 0;
  }

  .source-section nav {
    grid-template-columns: 1fr;
  }
}
