:root {
  color-scheme: light;
  --green-dark: #586d57;
  --green-light: #7e997a;
  --green-pale: #edf1ec;
  --ink: #202720;
  --muted: #60685f;
  --border: #d6ddd4;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

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

body {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.035em;
}

page-layout,
contact-form,
video-demo {
  display: block;
}

main {
  min-width: 0;
}

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

h1,
h2,
h3 {
  margin: 0 0 16px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
  text-wrap: balance;
}

p {
  margin: 0 0 20px;
}

a {
  color: var(--green-dark);
  text-underline-offset: 4px;
}

a:hover {
  color: #344733;
}

button,
input,
textarea {
  font: inherit;
  letter-spacing: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--green-dark);
  outline-offset: 5px;
}

[hidden] {
  display: none !important;
}

[id] {
  scroll-margin-top: 100px;
}

.wrap {
  width: 80%;
  max-width: 1400px;
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 10px 18px;
  transform: translateY(-180%);
  background: #fff;
  color: var(--green-dark);
  border: 2px solid currentColor;
  border-radius: 4px;
}

.skip-link:focus {
  transform: translateY(0);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: var(--green-dark);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  transition: background 160ms ease;
}

.button:hover {
  background: #40543f;
  color: #fff;
}

/* Overview */
.hero {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 80vh;
  min-height: 80svh;
  padding-block: 80px 100px;
  text-align: center;
}

.hero h1 {
  margin-bottom: 22px;
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  line-height: 1.17;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.2rem, 2.3vw, 1.875rem);
  line-height: 1.4;
  letter-spacing: 0.025em;
}

.service-band {
  position: relative;
  isolation: isolate;
  margin-block: 40px;
}

.service-band::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  transform: skewY(-2deg);
  content: '';
}

.service-band--dark::before {
  background: var(--green-dark);
}

.service-band--light::before {
  background: var(--green-light);
}

.service-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 70px;
  min-height: 400px;
  padding-block: 32px;
}

.service-copy {
  max-width: 600px;
}

.service-copy h2 {
  font-size: 27px;
}

.service-copy p {
  margin-bottom: 24px;
  line-height: 1.65;
}

.service-band--dark {
  color: #fff;
}

.service-band--dark .button {
  background: #e1e9de;
  color: #283a27;
}

.service-band--dark .button:hover {
  background: #fff;
}

.service-band--dark :focus-visible {
  outline-color: #fff;
}

.service-image {
  justify-self: center;
  width: min(100%, 540px);
  max-height: 320px;
  object-fit: contain;
  filter: grayscale(1);
}

.service-band--reverse .service-copy {
  order: 1;
}

.partners {
  padding-block: 100px 120px;
  text-align: center;
}

.partners h2 {
  margin-bottom: 52px;
  font-size: 27px;
}

.partner-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 60px;
}

.partner-logos img {
  width: 280px;
  max-height: 180px;
  object-fit: contain;
  filter: grayscale(1);
}

/* Interior pages */
.page-heading {
  max-width: 760px;
  margin-inline: auto;
  padding: 96px 24px 64px;
  text-align: center;
}

.page-heading h1 {
  font-size: clamp(2rem, 4vw, 2.625rem);
}

.page-heading p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--muted);
}

.prose {
  width: 80%;
  max-width: 740px;
  margin-inline: auto;
  padding-bottom: 100px;
}

.prose h2 {
  margin-top: 44px;
  font-size: 25px;
}

.prose h3 {
  margin-top: 32px;
  font-size: 19px;
}

.prose > :first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: #4c554b;
}

.prose ul {
  padding-left: 24px;
  margin-block: 16px 24px;
}

.prose li + li {
  margin-top: 8px;
}

.prose video-demo {
  margin-block: 20px;
}

.conversion-list {
  padding: 0 !important;
  list-style: none;
}

.conversion-list li {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: 12px;
  padding: 12px 20px;
  margin: 0 !important;
  text-align: center;
  background: var(--green-pale);
  border-bottom: 1px solid #fff;
  font-family: Consolas, monospace;
  font-size: 15px;
}

.conversion-list li:nth-child(even) {
  background: #f7f8f6;
}

.conversion-list .direction {
  align-self: center;
  color: var(--green-dark);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.5em;
  line-height: 1;
}

.note {
  color: var(--muted);
  font-size: 14px;
}

.badge {
  display: inline-block;
  margin-left: 6px;
  padding: 4px 8px;
  vertical-align: middle;
  border-radius: 3px;
  background: var(--green-pale);
  color: #40543f;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.locations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-block: 24px;
}

.location {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #f7f8f6;
}

.location h3 {
  margin-top: 0;
}

address {
  font-style: normal;
}

/* The form is ordinary HTML, progressively enhanced by <contact-form>. */
.contact-content {
  width: 80%;
  max-width: 700px;
  margin-inline: auto;
  padding-bottom: 100px;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-field {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.form-field--full,
.form-actions {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 13px;
}

.optional {
  color: var(--muted);
  font-size: 12px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #f4f6f3;
  color: var(--ink);
}

.form-field textarea {
  min-height: 240px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  background: #fff;
}

.form-actions .button {
  width: 100%;
}

.form-help {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.form-status {
  margin-block: 20px 8px;
  font-size: 14px;
}

.form-status:empty {
  margin: 0;
}

.direct-contact {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 14px;
}

.direct-contact a {
  overflow-wrap: anywhere;
}

.not-found {
  padding-bottom: 100px;
  text-align: center;
}

@media (max-width: 768px) {
  .wrap,
  .prose,
  .contact-content {
    width: calc(100% - 40px);
  }

  .hero {
    min-height: 65vh;
    min-height: 65svh;
    padding-block: 72px;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 5.8vw, 2.75rem);
  }

  .hero p {
    font-size: clamp(1.1rem, 3.5vw, 1.5rem);
  }

  .service-band {
    margin-block: 32px;
  }

  .service-inner {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 28px;
    padding-block: 48px;
  }

  .service-copy h2 {
    font-size: 24px;
  }

  .service-image {
    width: min(60%, 240px);
    max-height: 160px;
  }

  .service-band--reverse .service-copy {
    order: 0;
  }

  .partners {
    padding-block: 64px 80px;
  }

  .partners h2 {
    margin-bottom: 32px;
    font-size: 24px;
  }

  .partner-logos {
    gap: 36px;
  }

  .partner-logos img {
    width: 240px;
  }

  .page-heading {
    padding: 64px 20px 44px;
  }

  .prose,
  .contact-content {
    padding-bottom: 64px;
  }

  .locations,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-form {
    gap: 20px;
  }

  .conversion-list li {
    gap: 4px;
    padding-inline: 8px;
    font-size: 13px;
  }
}

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