@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/assets/fonts/bricolage-grotesque.woff2') format('woff2');
  font-weight: 500 800;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter.woff2') format('woff2');
  font-weight: 300;
  font-display: swap;
}

:root {
  color-scheme: light only;
  --orange: #ff4f01;
  --system: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  --gutter: 2rem;
}

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

html {
  font-size: 17pt;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: none;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: #fff;
  color: #000;
  font-family: var(--system);
  line-height: 1.5;
}

h1, h2, p, ul { margin: 0; padding: 0; }
img, video { display: block; }
ul { list-style: none; }
a { color: inherit; }

[hidden] { display: none !important; }

/* Hero */

.hero {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 1rem 0 12rem;
}

.logo {
  margin: 0 auto;
  width: 4.25rem;
  height: 4.5rem;
  object-fit: cover;
}

.hero .logo { margin-bottom: 13rem; }

.hero h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 5.625em;
  font-weight: 800;
  line-height: 1.125;
}

.tagline {
  padding: 0 6rem;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.5em;
  font-weight: 500;
  line-height: 1.375;
}

/* Buttons */

.button {
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  max-width: 100%;
  background: var(--orange);
  border-radius: 2.5rem;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.button span { flex: 1 1 auto; text-align: center; }

.button svg {
  flex: 0 0 auto;
  width: 1em;
  min-width: 16px;
  margin-left: 0.5em;
  margin-right: -0.125em;
  fill: #fff;
}

.button-hero {
  width: 15.375rem;
  margin-top: 1.5rem;
  padding: 0.859375rem 1.375rem;
  line-height: 1.71875rem;
  box-shadow: 0 0.125rem 1.625rem 0.125rem rgba(255, 79, 1, 0.51);
}

.button-hero svg { height: 1.71875rem; }

.button-end {
  width: 16.875rem;
  padding: 1.015625rem 1.625rem;
  line-height: 2rem;
}

.button-end svg { height: 2rem; }

/* Page column */

.column {
  width: 45rem;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.video {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 4rem;
  background: #000;
}

.intro { margin-top: 4rem; margin-bottom: 2rem; }

.copy { padding: 1.25rem 0; }

.copy > :first-child, .intro > :first-child { margin-top: 0; }
.copy > :last-child, .intro > :last-child { margin-bottom: 0; }

.body-text { margin: 1rem 0; font-size: 1em; line-height: 1.5; }
.body-text a { text-decoration: none; }
.body-text a:hover { text-decoration: underline; }

.heading { margin: 2rem 0; font-size: 1.5em; font-weight: 700; line-height: 1.25; }
.subheading { margin: 0; font-size: 1.375em; font-weight: 700; line-height: 1.25; }

.callout {
  padding: 2rem;
  background: #dcdcdc;
  border: solid #868686;
  border-width: 2px 0;
}

.callout p { font-size: 1.5em; font-weight: 700; line-height: 1.25; }

/* Contact form */

.contact { scroll-margin-top: 5.75rem; }

.field { margin-top: 1rem; }
.field:first-child { margin-top: 0; }

.contact input,
.contact select,
.contact textarea {
  display: block;
  width: 100%;
  border: 1px solid #000;
  border-radius: 0.25rem;
  background-color: transparent;
  color: #000;
  font: inherit;
  padding: 0 0.9625rem;
  outline: 0;
}

.contact input,
.contact select { height: 2.75rem; }

.contact select {
  padding-right: 2.8125rem;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='504' height='552' preserveAspectRatio='none' viewBox='0 0 504 552'%3E%3Cpath d='M483.9,210.9L252,442.9L20.1,210.9l67.9-67.9L252,307.1l164.1-164.1L483.9,210.9z' fill='%23000000' /%3E%3C/svg%3E");
  background-position: calc(100% - 0.9625rem) center;
  background-repeat: no-repeat;
  background-size: 1rem;
  text-overflow: ellipsis;
}

.contact textarea {
  height: 8rem;
  padding-top: 0.6125rem;
  padding-bottom: 0.9625rem;
  line-height: 2;
  resize: vertical;
}

.contact input:focus,
.contact select:focus,
.contact textarea:focus { box-shadow: 0 0 0 1px #000; }

.contact ::placeholder { color: #757575; opacity: 1; }

/* Hidden from people; bots that fill it in are ignored by the server. */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.actions { margin-top: 1rem; text-align: center; }

.actions button {
  width: 22rem;
  max-width: 100%;
  height: 3.5rem;
  padding: 0 0.5rem;
  border: 0;
  border-radius: 2.5rem;
  background: var(--orange);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  line-height: 3.5rem;
}

.actions button:disabled { opacity: 0.7; cursor: progress; }

.form-error {
  margin-top: 1rem;
  color: #b42a00;
  text-align: center;
}

/* Testimonials */

.reviews {
  width: 45rem;
  max-width: calc(100% - 2 * var(--page-edge, 0rem));
  margin: 4.5rem auto 0;
  padding: 2rem 1.5rem;
  background: #fff;
  border-radius: 0.375rem;
  box-shadow: -2.74rem 2.74rem 10rem 0.125rem rgba(97, 96, 96, 0.22);
}

.stars {
  display: flex;
  justify-content: center;
  font-size: 1.125em;
}

.stars li {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2em;
  height: 2em;
}

.stars svg { width: 1.2em; height: 1.2em; fill: var(--orange); }

.avatar {
  width: 5.5rem;
  height: 5.5rem;
  margin: 1.5rem auto;
  border: 1px solid rgba(0, 0, 0, 0.702);
  border-radius: 100%;
  object-fit: cover;
}

.reviews h3 {
  margin: 0;
  font-size: 1.25em;
  font-weight: 700;
  line-height: 1.25;
}

.reviews blockquote { margin: 1rem 0; font-style: italic; line-height: 1.5; }
.reviews blockquote:last-child { margin-bottom: 0; }

.closing {
  margin: 1.5rem 0;
  padding: 2rem 0;
  text-align: center;
}

/* Footer */

.footer {
  padding: 1.5rem 1rem;
  background: #000;
  color: rgba(255, 255, 255, 0.62);
  font-family: 'Inter', sans-serif;
  font-size: 0.75em;
  font-weight: 300;
  line-height: 1.875;
  text-align: center;
}

.footer-plain { background: none; color: #868686; font-weight: 400; }

/* Thank-you and legal views */

.page-logo { padding: 1rem 0; }

.page-text {
  width: 36rem;
  max-width: 100%;
  margin: 0 auto;
  padding: 7.25rem 0;
}

.page-text h2 { margin: 0 0 2rem; font-size: 1.5em; font-weight: 700; line-height: 1.25; }
.page-text p:first-of-type { margin-top: 0; }

.legal p { margin: 1rem 0 0; font-size: 0.875em; line-height: 1.5; }
.page-text a { text-decoration: none; }
.page-text a:hover { text-decoration: underline; }

/* Breakpoints match the original site, which scales everything from the root size. */

@media (max-width: 1680px) {
  html { font-size: 12pt; }
}

@media (max-width: 980px) {
  html { font-size: 11pt; }
}

@media (max-width: 800px) {
  .column { width: 100%; }
}

@media (max-width: 736px) {
  html { font-size: 10pt; }

  :root { --gutter: 1.65rem; --page-edge: 1.375rem; }

  .hero { padding-bottom: 15.5rem; }
  .hero .logo { margin-bottom: 16.5rem; height: 4.375rem; }
  .hero h1 { width: 100%; font-size: 3.5em; margin-bottom: 0.5rem; }
  .tagline { padding: 0 1.25rem; }
  .button-hero { margin-top: 1rem; }

  .video { margin-top: 2.625rem; }
  .intro { margin-top: 2.625rem; margin-bottom: 1rem; }

  .body-text { font-size: 1.125em; }
  .heading { font-size: 1.75em; }
  .subheading { margin: 1rem 0; font-size: 1.625em; }
  .callout { padding: 2rem 1rem; }
  .callout p { font-size: 1.625em; }

  .contact textarea { line-height: 2; }

  .reviews { padding: 2rem 1.75rem; margin-top: 6.75rem; }
  .stars { font-size: 1.5em; }
  .avatar { width: 7.375rem; height: 7.5rem; }
  .reviews blockquote { font-size: 1.125em; }

  .closing { padding: 4rem 0; }

  .page-text { padding: 3.5rem 1rem; }
  .legal p { font-size: 1.125em; }
}

@media (max-width: 480px) {
  .button-hero, .button-end { width: 14.25rem; }
  .actions button { width: 100%; max-width: 32rem; }
}

@media (max-width: 360px) {
  .hero { padding-top: 0.75rem; padding-bottom: 11.625rem; }
  .hero .logo { margin-bottom: 12.375rem; height: 3.828125rem; }
  .callout { padding: 1.5rem 0.75rem; }
  .reviews { padding: 1.5rem 1.3125rem; }
  .avatar { height: 6.5625rem; }
  .page-text { padding: 2.625rem 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
