:root {
  --forest: #173c25;
  --forest-dark: #0e2a19;
  --sage: #8fa68f;
  --sage-light: #dce6dc;
  --cream: #f7f5ef;
  --paper: #fffefb;
  --ink: #172019;
  --muted: #6b756d;
  --line: #dfe5df;
  --success: #267548;
  --waiting: #a66d16;
  --failed: #a44943;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--cream);
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.confirmation-page {
  position: relative;
  display: grid;
  min-height: 100svh;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  padding: 0 24px;
  background:
    radial-gradient(circle at 12% 15%, rgba(143, 166, 143, 0.16), transparent 23rem),
    radial-gradient(circle at 90% 80%, rgba(143, 166, 143, 0.12), transparent 27rem),
    var(--cream);
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(100%, 1120px);
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 32px 0 24px;
  border-bottom: 1px solid rgba(23, 60, 37, 0.13);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
}

.brand-link:focus-visible {
  outline: 3px solid rgba(38, 117, 72, 0.3);
  outline-offset: 5px;
}

.brand-logo {
  display: block;
  width: clamp(170px, 18vw, 218px);
  height: auto;
}

.header-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

.confirmation-card {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(100%, 860px);
  grid-template-columns: minmax(0, 1fr);
  gap: 38px;
  align-self: center;
  margin: 52px auto;
  padding: 64px;
  overflow: hidden;
  border: 1px solid rgba(23, 60, 37, 0.11);
  border-radius: 28px;
  background: rgba(255, 254, 251, 0.96);
  box-shadow: 0 24px 70px rgba(26, 50, 34, 0.1);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.confirmation-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: var(--forest);
  content: "";
}

.confirmation-page--waiting .confirmation-card::before {
  background: var(--waiting);
}

.confirmation-page--failed .confirmation-card::before {
  background: var(--failed);
}

.confirmation-card.is-ready {
  opacity: 1;
  transform: translateY(0);
}

.hero-copy {
  align-self: center;
  max-width: 640px;
}

.status-icon {
  position: relative;
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  margin-bottom: 26px;
  border-radius: 50%;
  background: #e6efe7;
  color: var(--success);
}

.status-icon::after {
  position: absolute;
  width: 88px;
  height: 88px;
  border: 1px solid currentColor;
  border-radius: inherit;
  content: "";
  opacity: 0.16;
}

.status-icon--waiting {
  background: #f7ecda;
  color: var(--waiting);
}

.status-icon--failed {
  background: #f8e5e3;
  color: var(--failed);
}

.checkmark {
  width: 25px;
  height: 14px;
  margin-top: -4px;
  border-bottom: 3px solid currentColor;
  border-left: 3px solid currentColor;
  transform: rotate(-45deg);
}

.clockmark {
  position: relative;
  width: 26px;
  height: 26px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.clockmark::before,
.clockmark::after {
  position: absolute;
  top: 5px;
  left: 11px;
  width: 3px;
  height: 8px;
  border-radius: 99px;
  background: currentColor;
  content: "";
  transform-origin: 50% 7px;
}

.clockmark::after {
  transform: rotate(130deg);
}

.crossmark::before,
.crossmark::after {
  position: absolute;
  width: 3px;
  height: 28px;
  border-radius: 99px;
  background: currentColor;
  content: "";
  transform: translate(-1px, -14px) rotate(45deg);
}

.crossmark::after {
  transform: translate(-1px, -14px) rotate(-45deg);
}

.eyebrow,
.section-label {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--success);
}

.confirmation-page--waiting .eyebrow {
  color: var(--waiting);
}

.confirmation-page--failed .eyebrow {
  color: var(--failed);
}

h1 {
  max-width: 530px;
  margin: 15px 0 18px;
  color: var(--forest-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.03;
}

.lead {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.section-label {
  color: var(--muted);
}

.next-steps {
  grid-column: 1 / -1;
  padding-top: 8px;
}

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

.next-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 11px;
  padding-right: 20px;
}

.next-steps li:not(:last-child)::after {
  position: absolute;
  top: 7px;
  right: 8px;
  left: 24px;
  height: 1px;
  background: var(--line);
  content: "";
}

.step-dot {
  position: relative;
  z-index: 1;
  display: block;
  width: 15px;
  height: 15px;
  border: 4px solid var(--paper);
  border-radius: 50%;
  background: #bdc9bf;
  box-shadow: 0 0 0 1px #bdc9bf;
}

.is-complete .step-dot {
  background: var(--success);
  box-shadow: 0 0 0 1px var(--success);
}

.next-steps strong,
.next-steps small {
  position: relative;
  z-index: 1;
  display: block;
  width: fit-content;
  background: var(--paper);
}

.next-steps strong {
  padding-right: 9px;
  color: var(--forest-dark);
  font-size: 13px;
}

.next-steps small {
  margin-top: 8px;
  padding-right: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.actions {
  display: flex;
  grid-column: 1 / -1;
  gap: 12px;
  margin-top: -3px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 22px;
  border: 1px solid var(--forest);
  border-radius: 11px;
  font-size: 13px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible {
  outline: 3px solid rgba(38, 117, 72, 0.3);
  outline-offset: 3px;
}

.button--primary {
  min-width: 244px;
  background: var(--forest);
  color: white;
}

.button--primary:hover {
  background: var(--forest-dark);
}

.button--secondary {
  background: transparent;
  color: var(--forest);
}

.button--secondary:hover {
  background: #edf2eb;
}

footer {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(100%, 1120px);
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin: 0 auto;
  padding: 22px 0 28px;
  color: #77837a;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.botanical {
  position: absolute;
  z-index: 0;
  width: 230px;
  height: 430px;
  opacity: 0.28;
  pointer-events: none;
}

.botanical::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--sage);
  content: "";
  transform: rotate(17deg);
  transform-origin: bottom;
}

.botanical span {
  position: absolute;
  width: 92px;
  height: 42px;
  border: 1px solid var(--sage);
  border-radius: 100% 0 100% 0;
  transform: rotate(14deg);
}

.botanical span:nth-child(1) {
  top: 90px;
  left: 20px;
}

.botanical span:nth-child(2) {
  top: 190px;
  right: 8px;
  transform: rotate(191deg);
}

.botanical span:nth-child(3) {
  top: 286px;
  left: 18px;
}

.botanical--one {
  top: 18%;
  left: -74px;
  transform: rotate(-11deg);
}

.botanical--two {
  right: -64px;
  bottom: -40px;
  transform: rotate(168deg) scale(0.88);
}

@media (max-width: 900px) {
  .confirmation-card {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 50px;
  }

  .next-steps,
  .actions {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .confirmation-page {
    display: block;
    padding: 0 16px;
  }

  .site-header {
    padding: 23px 2px 18px;
  }

  .brand-logo {
    width: 165px;
  }

  .header-label {
    display: none;
  }

  .confirmation-card {
    gap: 30px;
    margin: 28px auto 18px;
    padding: 38px 20px 28px;
    border-radius: 21px;
  }

  .hero-copy {
    padding: 0 6px;
  }

  .status-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 23px;
  }

  .status-icon::after {
    width: 74px;
    height: 74px;
  }

  h1 {
    margin-top: 12px;
    font-size: 39px;
  }

  .lead {
    font-size: 15px;
    line-height: 1.65;
  }

  .next-steps ol {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .next-steps li:not(:last-child)::after {
    top: 16px;
    bottom: -20px;
    left: 7px;
    width: 1px;
    height: auto;
  }

  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  footer {
    flex-wrap: wrap;
    padding: 22px 0 26px;
    text-align: center;
  }

  .botanical {
    opacity: 0.19;
  }
}

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