:root {
  --bg: #f7f8f6;
  --surface: #ffffff;
  --ink: #16181a;
  --muted: #5b6268;
  --line: #e3e6e2;
  --dot-green: #98d8a6;
  --dot-slate: #a8b4c4;
  --dot-lilac: #ada8d2;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(22, 24, 26, .04), 0 8px 24px rgba(22, 24, 26, .06);
  --shadow-hover: 0 2px 4px rgba(22, 24, 26, .05), 0 18px 40px rgba(22, 24, 26, .12);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 8% 12%, rgba(152, 216, 166, .28) 0, transparent 32%),
    radial-gradient(circle at 92% 88%, rgba(173, 168, 210, .24) 0, transparent 34%);
  background-attachment: fixed;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5.5rem) 1.25rem 2.5rem;
}

/* Intro */

.intro {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto clamp(2rem, 5vw, 3.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 .9rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 30px;
  height: 7px;
  background:
    radial-gradient(circle 3.5px, var(--dot-green) 98%, transparent) 0 0 / 11px 7px repeat-x;
}

.eyebrow::after {
  background:
    radial-gradient(circle 3.5px, var(--dot-lilac) 98%, transparent) 0 0 / 11px 7px repeat-x;
}

h1 {
  margin: 0 0 .75rem;
  font-size: clamp(1.75rem, 4.6vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 700;
  text-wrap: balance;
}

.lede {
  margin: 0;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  color: var(--muted);
  text-wrap: pretty;
}

/* Choice cards */

.choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(1rem, 3vw, 1.75rem);
}

.choice {
  --accent: var(--ink);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.choice::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}

.choice--foods {
  --accent: #3f7a1c; /* darkened Foods green (#66AF33) for readable text */
}

.choice--solutions {
  --accent: #7b0032;
}

.choice__logo {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border-bottom: 1px solid var(--line);
}

.choice__logo img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform .35s ease;
}

.choice__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .5rem;
  padding: 1.35rem clamp(1.25rem, 3vw, 1.75rem) 1.5rem;
}

.choice__tag {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}

.choice__text {
  color: var(--muted);
  flex: 1;
}

.choice__cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: .75rem;
  padding: .85rem 1.1rem;
  min-height: 48px;
  border-radius: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
}

.arrow {
  display: inline-block;
  transition: transform .25s ease;
}

.choice:hover,
.choice:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.choice:hover::before,
.choice:focus-visible::before {
  transform: scaleX(1);
}

.choice:hover .choice__logo img,
.choice:focus-visible .choice__logo img {
  transform: scale(1.03);
}

.choice:hover .arrow,
.choice:focus-visible .arrow {
  transform: translateX(4px);
}

.choice:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.choice:active {
  transform: translateY(-1px);
}

/* Footer */

.footer {
  padding: 1.5rem 1.25rem 2rem;
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
}

.footer p {
  margin: 0;
}

/* Small screens */

@media (max-width: 480px) {
  .page {
    padding-inline: 1rem;
  }

  .choice__logo {
    aspect-ratio: 2 / 1;
  }
}

@media (hover: none) {
  .choice:hover {
    transform: none;
    box-shadow: var(--shadow);
    border-color: var(--line);
  }

  .choice:hover::before {
    transform: scaleX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
