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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-mist);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--color-navy);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .wrap {
    padding: 0 24px;
  }
}

/* Top bar */
.topbar {
  background: var(--color-ink);
  color: #fff;
  border-bottom: 4px solid var(--color-yellow);
}

.topbar .wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wordmark {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
}

.wordmark span {
  font-weight: 400;
  color: var(--color-yellow);
}

/* Hero + choices */
.hero {
  padding-top: 48px;
  padding-bottom: 48px;
  text-align: center;
}

@media (min-width: 768px) {
  .hero {
    padding-top: 72px;
    padding-bottom: 64px;
  }
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-eyebrow);
}

h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 700;
}

@media (min-width: 768px) {
  .topbar .wrap {
    min-height: 84px;
  }

  .wordmark {
    font-size: 1.875rem;
  }

  h1 {
    font-size: 2.75rem;
  }
}

.lede {
  max-width: 34rem;
  margin: 12px auto 0;
  font-size: 1.0625rem;
  color: var(--color-fg-2);
}

.choices {
  margin-top: 36px;
  display: grid;
  gap: 16px;
  text-align: left;
}

@media (min-width: 768px) {
  .choices {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 48px;
  }
}

.choice {
  position: relative;
  display: flex;
  flex-direction: column;
  --pad: 24px;
  padding: 0 var(--pad) var(--pad);
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgb(17 19 24 / 0.06);
  transition:
    box-shadow 160ms ease,
    transform 160ms ease,
    border-color 160ms ease;
}

@media (min-width: 768px) {
  .choice {
    --pad: 32px;
  }
}

.choice:hover {
  border-color: var(--color-rule);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgb(17 19 24 / 0.12);
}

.choice:focus-within {
  box-shadow: 0 10px 24px rgb(17 19 24 / 0.12);
}

/* Logo sits on its own shell-tinted band, like a letterhead above the copy. */
.choice-brand {
  margin: 0 calc(-1 * var(--pad)) var(--pad);
  padding: var(--pad);
  background: var(--color-shell);
  border-bottom: 1px solid var(--color-line);
}

.choice-logo {
  height: 44px;
  width: auto;
}

.choice h2 {
  margin: 0;
  font-size: 1.375rem;
  line-height: 1.25;
}

/* The heading link covers the whole card so any tap on it navigates. The phone
   link sits above that layer so it stays independently tappable. */
.choice-link {
  text-decoration: none;
}

.choice-link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.choice-link:focus-visible {
  outline: none;
}

.choice-link:focus-visible::after {
  outline: 3px solid var(--color-navy);
  outline-offset: 3px;
}

.choice p {
  margin: 8px 0 24px;
  color: var(--color-fg-2);
}

.choice-cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  background: var(--color-yellow);
  font-weight: 600;
  transition: background 160ms ease;
}

.choice:hover .choice-cta {
  background: var(--color-yellow-600);
}

.arrow {
  transition: transform 160ms ease;
}

.choice:hover .arrow {
  transform: translateX(3px);
}

.choice-phone {
  position: relative;
  z-index: 1;
  align-self: center;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  padding: 0 8px;
  font-weight: 600;
  color: var(--color-fg-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Team photo */
.team figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--color-line);
}

/* Reviews */
.trust {
  padding-top: 48px;
  padding-bottom: 64px;
}

.rating {
  text-align: center;
}

.stars {
  display: block;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: var(--color-yellow-700);
}

.rating h2 {
  margin: 4px 0 0;
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--color-fg-2);
}

.rating strong {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-ink);
  margin-right: 4px;
}

.reviews {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

@media (min-width: 768px) {
  .reviews {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.review {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 12px;
}

.review .stars {
  font-size: 1rem;
}

.review blockquote {
  margin: 12px 0 16px;
  color: var(--color-fg-2);
}

.review blockquote p {
  margin: 0;
}

.review figcaption {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.9375rem;
}

.review figcaption span {
  font-weight: 400;
  color: var(--color-fg-3);
}

/* Footer */
.footer {
  background: var(--color-ink);
  color: #d9d8d3;
  padding: 32px 0 40px;
  font-size: 0.9375rem;
}

.footer p,
.footer address {
  margin: 0 0 8px;
  font-style: normal;
}

.footer a {
  color: #fff;
}

.footer .fine {
  font-size: 0.8125rem;
  color: #b1afa8;
}

@media (prefers-reduced-motion: reduce) {
  .choice,
  .choice-cta,
  .arrow {
    transition: none;
  }

  .choice:hover {
    transform: none;
  }
}
