:root {
  color-scheme: light;
  --ink: #222222;
  --body: #484848;
  --muted: #717171;
  --line: #dddddd;
  --soft-line: #ebebeb;
  --soft: #f7f7f7;
  --paper: #ffffff;
  --pink: #ff385c;
  --pink-dark: #e00b41;
  --green: #157347;
  --shadow: 0 18px 48px rgba(34, 34, 34, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  min-height: 100%;
}

body {
  color: var(--ink);
  font-family: 'Avenir Next', Avenir, 'Helvetica Neue', sans-serif;
  margin: 0;
  min-height: 100vh;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.shell {
  margin: 0 auto;
  max-width: 1180px;
  min-height: 100vh;
  padding: 32px clamp(20px, 5vw, 72px) 28px;
}

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
}

.brand-mark {
  align-items: center;
  background: var(--pink);
  border-radius: 13px;
  color: white;
  display: inline-flex;
  font-size: 19px;
  font-weight: 700;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.brand-name {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.handoff {
  align-items: center;
  display: grid;
  gap: clamp(48px, 8vw, 112px);
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.8fr);
  min-height: calc(100vh - 170px);
  padding: 76px 0 64px;
}

.copy {
  max-width: 620px;
}

.eyebrow,
.receipt-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0 0 18px;
}

h1 {
  font-size: clamp(48px, 7.5vw, 88px);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.97;
  margin: 0;
  max-width: 690px;
}

.lede {
  color: var(--body);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.58;
  margin: 30px 0 0;
  max-width: 600px;
}

.actions {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 38px;
  max-width: 420px;
}

.primary,
.secondary {
  align-items: center;
  border-radius: 16px;
  display: flex;
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  justify-content: center;
  min-height: 56px;
  padding: 0 20px;
  text-decoration: none;
}

.primary {
  background: var(--pink);
  border: 0;
  color: white;
  cursor: pointer;
  gap: 18px;
  justify-content: space-between;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.primary:hover {
  background: var(--pink-dark);
  transform: translateY(-2px);
}

.primary:focus-visible,
.secondary:focus-visible,
.unavailable a:focus-visible {
  outline: 3px solid rgba(255, 56, 92, 0.3);
  outline-offset: 3px;
}

.primary[disabled] {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.secondary {
  border: 1px solid var(--line);
  color: var(--ink);
}

.secondary:hover {
  background: var(--soft);
}

.status {
  color: var(--green);
  font-size: 14px;
  line-height: 1.5;
  min-height: 21px;
}

.unavailable {
  background: var(--soft);
  border: 1px solid var(--soft-line);
  border-radius: 16px;
  color: var(--body);
  margin-top: 36px;
  max-width: 460px;
  padding: 18px;
}

.unavailable p {
  margin: 0 0 8px;
}

.unavailable a {
  color: var(--pink-dark);
  font-weight: 600;
}

.receipt {
  background: var(--paper);
  border: 1px solid var(--soft-line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(1.2deg);
}

.receipt::before {
  background: var(--pink);
  border-bottom: 8px solid var(--paper);
  content: '';
  display: block;
  height: 16px;
}

.receipt-top {
  align-items: center;
  border-bottom: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  padding: 24px 28px 20px;
}

.receipt-label {
  margin: 0;
}

.privacy-pill {
  background: #eef8f2;
  border-radius: 999px;
  color: var(--green);
  font-size: 12px;
  font-weight: 650;
  padding: 7px 11px;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 10px 28px 18px;
}

.steps li {
  align-items: flex-start;
  border-bottom: 1px solid var(--soft-line);
  display: grid;
  gap: 18px;
  grid-template-columns: 34px 1fr;
  padding: 21px 0;
}

.steps li:last-child {
  border-bottom: 0;
}

.step-number {
  color: var(--pink);
  font-size: 12px;
  font-weight: 700;
  padding-top: 3px;
}

.steps strong,
.steps small {
  display: block;
}

.steps strong {
  font-size: 17px;
  margin-bottom: 5px;
}

.steps small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.expiry {
  align-items: center;
  background: var(--soft);
  color: var(--muted);
  display: flex;
  font-size: 12px;
  gap: 10px;
  line-height: 1.45;
  padding: 18px 28px 22px;
}

.clock {
  border: 1.5px solid var(--muted);
  border-radius: 999px;
  height: 18px;
  position: relative;
  width: 18px;
}

.clock::before,
.clock::after {
  background: var(--muted);
  content: '';
  left: 8px;
  position: absolute;
  top: 4px;
  transform-origin: bottom;
  width: 1.5px;
}

.clock::before {
  height: 5px;
}

.clock::after {
  height: 4px;
  transform: rotate(125deg);
}

footer {
  border-top: 1px solid var(--soft-line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  padding-top: 20px;
}

footer p {
  margin: 0;
  max-width: 620px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 800px) {
  .shell {
    padding-top: 22px;
  }

  .handoff {
    display: block;
    min-height: auto;
    padding: 70px 0 46px;
  }

  h1 {
    font-size: clamp(46px, 15vw, 68px);
  }

  .receipt {
    margin: 60px auto 0;
    max-width: 460px;
    transform: rotate(0.5deg);
  }

  footer {
    margin-top: 20px;
  }
}

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