:root {
  --ink: #14110f;
  --paper: #fffaf0;
  --cream: #f4ead7;
  --gold: #d8a319;
  --deep-gold: #8a5d04;
  --green: #124537;
  --red: #8f2d3f;
  --line: rgba(20, 17, 15, 0.18);
  --shadow: 0 28px 80px rgba(20, 17, 15, 0.2);
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 12%, rgba(216, 163, 25, 0.22), transparent 26rem),
    linear-gradient(135deg, #124537 0%, #1a5b46 44%, #f4ead7 44%, #fffaf0 100%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  padding: 28px;
}

.purchase {
  width: min(1180px, 100%);
  min-height: calc(100vh - 56px);
  margin: 0 auto;
  padding: 28px;
  border: 1px solid rgba(255, 250, 240, 0.28);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--green);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--paper);
  background: var(--green);
  box-shadow: inset 0 0 0 2px rgba(216, 163, 25, 0.7);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 30px;
  align-items: center;
  min-height: calc(100vh - 160px);
  padding: 28px 0 8px;
}

.checkout {
  max-width: 560px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 14ch;
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.65rem, 4vw, 4rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.intro {
  max-width: 34rem;
  margin-bottom: 18px;
  color: rgba(20, 17, 15, 0.72);
  font-size: 1.08rem;
  line-height: 1.6;
}

.payment-box {
  display: grid;
  gap: 14px;
  max-width: 510px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf7;
  box-shadow: 0 18px 45px rgba(20, 17, 15, 0.12);
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: rgba(20, 17, 15, 0.7);
}

.price-row strong {
  color: var(--ink);
  font-size: 1.35rem;
}

.payment-status {
  margin: 0;
  color: rgba(20, 17, 15, 0.68);
  font-size: 0.95rem;
  line-height: 1.5;
}

.payment-status:empty {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.apple-pay-button {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: #000;
  font-size: 1.5rem;
  font-weight: 500;
  cursor: pointer;
}

.apple-pay-button:hover {
  opacity: 0.85;
}

.apple-pay-button:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}

.apple-pay-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.apple-pay-label svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

@supports (-webkit-appearance: -apple-pay-button) {
  .apple-pay-button {
    -webkit-appearance: -apple-pay-button;
    -apple-pay-button-type: plain;
    -apple-pay-button-style: black;
  }

  .apple-pay-label {
    display: none;
  }
}

.included {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 470px;
  margin-top: 18px;
}

.included span {
  padding: 9px 11px;
  border: 1px solid rgba(18, 69, 55, 0.22);
  border-radius: 999px;
  color: var(--green);
  background: rgba(255, 250, 240, 0.64);
  font-size: 0.82rem;
  font-weight: 800;
}

.award-preview {
  position: relative;
  display: grid;
  min-height: 560px;
  place-items: center;
}

.certificate {
  position: relative;
  z-index: 2;
  width: min(100%, 620px);
  aspect-ratio: 1.42;
  padding: 24px;
  transform: rotate(-3deg);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(216, 163, 25, 0.1), transparent 24%),
    #fffdf7;
  box-shadow: 0 28px 65px rgba(20, 17, 15, 0.22);
}

.certificate-border {
  position: relative;
  display: grid;
  height: 100%;
  padding: clamp(18px, 3.2vw, 34px);
  border: 3px double var(--gold);
  border-radius: 4px;
  align-content: center;
  text-align: center;
  box-shadow: inset 0 0 0 8px rgba(216, 163, 25, 0.08);
}

.corner {
  position: absolute;
  width: clamp(34px, 7vw, 64px);
  height: clamp(34px, 7vw, 64px);
  border-color: var(--gold);
  opacity: 0.82;
}

.corner.top-left {
  top: 14px;
  left: 14px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.corner.top-right {
  top: 14px;
  right: 14px;
  border-top: 2px solid;
  border-right: 2px solid;
}

.corner.bottom-left {
  bottom: 14px;
  left: 14px;
  border-bottom: 2px solid;
  border-left: 2px solid;
}

.corner.bottom-right {
  right: 14px;
  bottom: 14px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.small-caps {
  margin-bottom: 8px;
  color: var(--red);
  font-size: clamp(0.7rem, 1.4vw, 0.92rem);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.certificate h2 {
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5.4vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.recipient-line {
  margin-bottom: 4px;
  color: rgba(20, 17, 15, 0.54);
  font-size: clamp(0.72rem, 1.4vw, 0.88rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.recipient-name {
  display: inline-grid;
  justify-self: center;
  margin-bottom: 12px;
  padding: 0 18px 8px;
  border-bottom: 1px solid rgba(138, 93, 4, 0.42);
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 2.1vw, 1.5rem);
  font-style: italic;
}

.cert-copy {
  max-width: 30rem;
  margin: 0 auto 18px;
  color: rgba(20, 17, 15, 0.68);
  font-size: clamp(0.78rem, 1.55vw, 0.98rem);
  line-height: 1.45;
}

.signature-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: rgba(20, 17, 15, 0.7);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.68rem, 1.35vw, 0.86rem);
}

.seal {
  display: grid;
  flex: 0 0 auto;
  width: clamp(48px, 7vw, 68px);
  height: clamp(48px, 7vw, 68px);
  place-items: center;
  border-radius: 50%;
  color: #fffaf0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), transparent 40%),
    var(--red);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 900;
  box-shadow: inset 0 0 0 4px rgba(255, 250, 240, 0.5);
}

.trophy {
  position: absolute;
  right: clamp(-8px, 0.5vw, 12px);
  bottom: -24px;
  z-index: 3;
  display: grid;
  justify-items: center;
  width: min(25%, 166px);
  min-width: 116px;
  filter: drop-shadow(0 24px 28px rgba(20, 17, 15, 0.28));
}

.cup {
  position: relative;
  z-index: 2;
  width: 64%;
  aspect-ratio: 1.04;
  border-radius: 12% 12% 42% 42%;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.78), transparent 18%),
    linear-gradient(95deg, rgba(255, 255, 255, 0.46), transparent 32%),
    linear-gradient(145deg, #ffe593 0%, var(--gold) 48%, #b87d08 70%, var(--deep-gold) 100%);
  clip-path: polygon(3% 0, 97% 0, 86% 70%, 70% 92%, 50% 100%, 30% 92%, 14% 70%);
  box-shadow:
    inset -16px -8px 24px rgba(92, 57, 0, 0.24),
    inset 10px 4px 14px rgba(255, 255, 255, 0.34);
}

.cup::before {
  content: "$1M";
  position: absolute;
  top: 34%;
  left: 50%;
  color: rgba(20, 17, 15, 0.58);
  font-size: clamp(1rem, 2.4vw, 1.75rem);
  font-weight: 900;
  transform: translateX(-50%);
}

.handle {
  position: absolute;
  top: 7%;
  z-index: 1;
  width: 42%;
  height: 38%;
  border: clamp(8px, 1.2vw, 12px) solid #c78d0c;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(255, 237, 165, 0.34);
}

.handle.left {
  left: 4%;
  border-right-color: transparent;
}

.handle.right {
  right: 4%;
  border-left-color: transparent;
}

.neck {
  width: 34%;
  height: 14px;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(90deg, var(--deep-gold), #ffe08a, var(--gold));
}

.stem {
  width: 18%;
  height: 52px;
  background: linear-gradient(90deg, #8a5d04, #ffe08a 52%, #b77907);
}

.base {
  background: linear-gradient(90deg, #4b250f, #8c4a20, #301607);
  box-shadow: inset 0 2px 0 rgba(255, 216, 129, 0.2);
}

.base.top {
  width: 56%;
  height: 24px;
  border-radius: 5px 5px 2px 2px;
}

.plaque {
  display: grid;
  width: 66%;
  min-height: 24px;
  place-items: center;
  margin-top: -2px;
  border-radius: 3px;
  color: #35180a;
  background: linear-gradient(90deg, #d8a319, #ffdc73, #c58a11);
  font-size: clamp(0.46rem, 1vw, 0.64rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-align: center;
}

.base.bottom {
  width: 76%;
  height: 34px;
  border-radius: 5px;
}

@media (max-width: 920px) {
  body {
    background: linear-gradient(180deg, #f4ead7 0%, #fffaf0 100%);
  }

  .page-shell {
    padding: 16px;
  }

  .purchase {
    min-height: calc(100vh - 32px);
    padding: 18px;
  }

  .brand-row {
    color: var(--green);
  }

  .brand-mark {
    color: var(--paper);
    background: var(--green);
  }

  .layout {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: 0;
    padding-top: 36px;
  }

  .checkout {
    max-width: none;
  }

  h1 {
    max-width: 12ch;
    color: var(--ink);
    font-size: clamp(2.65rem, 10.5vw, 4.1rem);
  }

  .intro {
    color: rgba(20, 17, 15, 0.72);
  }

  .eyebrow {
    color: var(--red);
  }

  .payment-box {
    max-width: none;
  }

  .award-preview {
    min-height: clamp(390px, 72vw, 560px);
  }
}

@media (max-width: 560px) {
  .page-shell {
    padding: 0;
  }

  .purchase {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .brand-row {
    font-size: 0.76rem;
  }

  .payment-box {
    padding: 14px;
  }

  .price-row {
    display: grid;
    gap: 4px;
  }

  .included span {
    flex: 1 1 100%;
    text-align: center;
  }

  .certificate {
    width: 94%;
    padding: 14px;
    transform: rotate(-2deg);
  }

  .signature-row {
    align-items: flex-end;
  }

  .trophy {
    right: 2px;
    bottom: 8px;
    min-width: 112px;
  }
}
