:root {
  --carbon: #111111;
  --paper: #f9f5e5;
  --burnt: #c45f34;
  --action: #d85720;
  --signal: #eb4e0c;
  --green: #4e7560;
  --concrete: #77736a;
  --elevated: #222220;
  --paper-muted: #c9c2b2;
  --display: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --body: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  min-width: 320px;
  background: var(--carbon);
  color-scheme: dark;
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: var(--carbon);
  color: var(--paper);
  font-family: var(--body);
  font-size: 17.5px;
  line-height: 1.4;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button,
a,
input {
  -webkit-tap-highlight-color: rgba(249, 245, 229, 0.14);
}

button,
a {
  touch-action: manipulation;
}

button {
  color: inherit;
}

h1,
h2,
h3,
p,
ul,
figure,
fieldset,
legend {
  margin: 0;
}

h1,
h2,
h3,
legend {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

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

.review-form :focus-visible {
  outline-color: #2e628b;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  min-height: 48px;
  padding: 12px 16px;
  background: var(--paper);
  color: var(--carbon);
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.conversion-header {
  display: grid;
  min-height: 96px;
  place-items: center;
  border-bottom: 1px solid rgba(249, 245, 229, 0.08);
  padding: 24px clamp(20px, 4.45vw, 64px);
}

.conversion-header a {
  display: block;
  transition: opacity 180ms ease;
}

.conversion-header a:hover {
  opacity: 0.72;
}

.conversion-header img {
  width: clamp(222px, 20vw, 287px);
  height: auto;
}

.conversion-footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 80px clamp(24px, 4.45vw, 64px);
}

.conversion-footer > span {
  height: 1px;
  background: var(--concrete);
}

.conversion-footer__meta {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  color: var(--paper-muted);
  font-size: 14px;
}

.conversion-footer__meta a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.conversion-footer__meta a:hover {
  color: var(--paper);
}

.conversion-footer p {
  color: var(--paper-muted);
  font-size: 14px;
  text-align: center;
}

.conversion-footer > span:last-child {
  display: none;
}

.thank-you-main {
  width: min(100%, 1440px);
  margin-inline: auto;
  padding-top: 32px;
  text-align: center;
}

.thank-you-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-inline: clamp(24px, 4.45vw, 64px);
}

.thank-you-hero h1 {
  max-width: 980px;
  font-family: var(--display);
  font-size: clamp(60px, 6.66vw, 96px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.9;
  text-transform: uppercase;
}

.thank-you-hero__copy {
  max-width: 900px;
  margin-top: 24px;
}

.thank-you-hero__copy p + p {
  margin-top: 16px;
}

.next-section {
  margin-top: 48px;
  border-block: 1px solid var(--concrete);
  padding: 0 clamp(24px, 4.45vw, 64px) 40px;
  background: var(--elevated);
  text-align: left;
}

.ruled-title {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 48px;
  align-items: center;
  transform: translateY(-1px);
}

.ruled-title span {
  height: 1px;
  background: var(--concrete);
}

.ruled-title h2 {
  padding: 17px 0 12px;
  font-family: var(--display);
  font-size: 41px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.next-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-top: 32px;
  list-style: none;
}

.next-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  text-align: left;
}

.next-steps strong {
  color: var(--burnt);
  font-family: var(--display);
  font-size: 41px;
  font-weight: 600;
  line-height: 1;
}

.next-steps h3 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  text-transform: capitalize;
}

.next-steps p {
  margin-top: 14px;
}

.thank-you-return {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  margin-top: 48px;
  border: 1.6px solid var(--paper);
  border-radius: 4px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.thank-you-return:hover {
  background: var(--paper);
  color: var(--carbon);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: no-preference) {
  html.motion-ready .conversion-header img {
    animation: conversion-reveal 560ms cubic-bezier(0.22, 1, 0.36, 1) 40ms both;
  }

  html.motion-ready .review-promise__intro,
  html.motion-ready .review-promise__details,
  html.motion-ready .review-form-wrap,
  html.motion-ready .thank-you-hero h1,
  html.motion-ready .thank-you-hero__copy,
  html.motion-ready .next-section,
  html.motion-ready .thank-you-return {
    animation: conversion-reveal 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  html.motion-ready .review-promise__intro,
  html.motion-ready .thank-you-hero h1 { animation-delay: 100ms; }
  html.motion-ready .review-promise__details,
  html.motion-ready .thank-you-hero__copy { animation-delay: 180ms; }
  html.motion-ready .review-form-wrap,
  html.motion-ready .next-section { animation-delay: 320ms; }
  html.motion-ready .thank-you-return { animation-delay: 400ms; }

  .form-step.is-entering {
    animation: form-step-in 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

@keyframes conversion-reveal {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes form-step-in {
  from {
    opacity: 0;
    transform: translate3d(16px, 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 980px) {
  .next-steps {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .conversion-header {
    min-height: 80px;
    padding-block: 20px;
  }

  .conversion-header img {
    width: 208px;
  }

  .conversion-footer {
    gap: 20px;
    padding: 56px 20px;
  }

  .thank-you-main {
    padding-top: 40px;
  }

  .thank-you-hero {
    padding-inline: 20px;
  }

  .thank-you-hero h1 {
    font-size: clamp(50px, 15vw, 68px);
  }

  .next-section {
    margin-top: 40px;
    padding: 0 20px 34px;
  }

  .ruled-title {
    grid-template-columns: 1fr;
    gap: 0;
    text-align: center;
  }

  .ruled-title span:last-child {
    display: none;
  }

  .ruled-title h2 {
    padding-top: 22px;
  }

  .next-steps {
    padding-top: 28px;
  }

  .next-steps strong {
    font-size: 36px;
  }

  .thank-you-return {
    margin-top: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
