:root {
  color: #39241b;
  background: #f7f1ec;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

body { min-width: 320px; margin: 0; background: #f7f1ec; }

button { font: inherit; cursor: pointer; }

button:focus-visible { outline: 3px solid rgba(255, 95, 71, 0.38); outline-offset: 3px; }

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

.h5-shell {
  width: min(100%, 640px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 16px calc(32px + env(safe-area-inset-bottom));
  background: #f7f1ec;
}

.consumer-page { padding-bottom: 10px; }

.consumer-header { margin: 5px 5px 18px; }

.eyebrow {
  margin-bottom: 7px;
  color: #b8725a;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  letter-spacing: 0.08em;
}

h1 {
  margin-bottom: 0;
  color: #352016;
  font-size: clamp(27px, 7.6vw, 36px);
  line-height: 1.16;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 8px;
  color: #3d251a;
  font-size: 23px;
  line-height: 1.32;
  letter-spacing: -0.03em;
}

.landing-scene,
.state-scene,
.result-poster {
  position: relative;
  overflow: hidden;
  border: 1px solid #efdacf;
  border-radius: 28px;
  background: #eadfd7;
}

.landing-scene { min-height: 286px; }

.scene-image,
.result-poster > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-scene > .scene-image { position: absolute; inset: 0; object-position: 54% 48%; }

.landing-scene-copy {
  position: relative;
  z-index: 1;
  width: min(68%, 356px);
  margin: 18px;
  padding: 16px 15px 15px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 20px;
  background: rgba(255, 253, 251, 0.91);
  box-shadow: 0 12px 24px rgba(82, 51, 33, 0.10);
}

.landing-scene-copy h1 { font-size: clamp(24px, 6.7vw, 31px); }

.landing-scene-copy > p:last-child,
.gift-summary p,
.journey-list p,
.state-sheet > p,
.order-item p,
.page-status,
.demo-notice {
  margin-bottom: 0;
  color: #75645b;
  font-size: 14px;
  line-height: 1.62;
}

.gift-receipt,
.journey-card,
.state-sheet {
  border: 1px solid #efdfd6;
  border-radius: 26px;
  background: #fffdfc;
  box-shadow: 0 12px 26px rgba(76, 48, 34, 0.06);
}

.gift-receipt { margin-top: 16px; padding: 21px 19px 18px; }

.gift-summary,
.order-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.gift-summary > div,
.order-item > div { min-width: 0; flex: 1; }

.bundle-image {
  width: 92px;
  height: 92px;
  flex: 0 0 auto;
  border-radius: 19px;
  object-fit: contain;
  background: #fff8f2;
}

.gift-summary h2,
.order-item h2 {
  overflow: hidden;
  margin-bottom: 4px;
  font-size: 21px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-price {
  display: block;
  margin-top: 10px;
  color: #f35e45;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.055em;
}

.receipt-facts {
  display: grid;
  gap: 0;
  margin: 19px 0;
  border-top: 1px solid #f0e0d8;
}

.receipt-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0 0;
  color: #816e63;
  font-size: 14px;
  line-height: 20px;
}

.receipt-facts dt,
.receipt-facts dd { margin: 0; }

.receipt-facts dd { color: #492d20; font-weight: 700; text-align: right; }

.primary-button,
.secondary-button {
  display: block;
  width: 100%;
  min-height: 52px;
  border-radius: 26px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.primary-button {
  border: 1px solid #ff5a42;
  background: #ff6048;
  color: #ffffff;
  box-shadow: 0 9px 16px rgba(255, 91, 64, 0.16);
}

.secondary-button {
  margin-top: 10px;
  border: 1px solid #eecdbc;
  background: #fffdfc;
  color: #895440;
}

button:disabled { cursor: not-allowed; border-color: #e4d9d4; background: #e8e0dc; box-shadow: none; color: #a49a95; }

.page-status,
.demo-notice { margin: 12px 3px 0; font-size: 13px; line-height: 19px; text-align: center; }

.demo-notice { color: #bd7056; font-weight: 700; }

.journey-card { margin-top: 16px; padding: 20px 19px 18px; }

.journey-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.journey-list img,
.timeline-item img { width: 32px; height: 32px; flex: 0 0 auto; object-fit: contain; }

.journey-list strong,
.timeline-item strong { display: block; color: #482d20; font-size: 15px; line-height: 20px; }

.journey-list p,
.timeline-item p { margin-top: 2px; font-size: 12px; line-height: 17px; }

.display-note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid #f0e0d8;
  color: #927b70;
  font-size: 12px;
  line-height: 18px;
}

.state-page .consumer-header { margin-bottom: 13px; }

.state-scene { height: 204px; border-bottom-right-radius: 12px; border-bottom-left-radius: 12px; }

.state-scene .scene-image { object-position: 52% 30%; }

.state-scene--oauth .scene-image { object-position: 52% 22%; }

.state-scene--phone .scene-image { object-position: 52% 36%; }

.state-scene--payment .scene-image { object-position: 52% 46%; }

.state-sheet {
  position: relative;
  z-index: 1;
  margin: -30px 10px 0;
  padding: 24px 20px 20px;
}

.state-sheet > p:not(.eyebrow) { margin-bottom: 0; }

.state-sheet .primary-button { margin-top: 22px; }

.payment-sheet .platform-price { margin: 18px 0 2px; }

.order-sheet .receipt-facts { margin-bottom: 18px; }

.order-sheet .order-item { align-items: flex-start; }

.result-poster { height: 202px; border-bottom-right-radius: 12px; border-bottom-left-radius: 12px; }

.result-poster > img { object-position: center 44%; }

.result-sheet { text-align: left; }

.fulfillment-sheet h2 { margin-bottom: 6px; }

.fulfillment-timeline {
  display: grid;
  gap: 17px;
  margin: 22px 0 18px 15px;
  padding: 0 0 0 17px;
  border-left: 1px solid #ead8cf;
  list-style: none;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 34px;
  margin-left: -33px;
}

.timeline-item > div { min-width: 0; padding-top: 3px; }

.timeline-item.is-pending { opacity: 0.42; }

.timeline-item.is-current strong { color: #ef5e45; }

.order-facts { margin-bottom: 0; }

@media (max-width: 360px) {
  .h5-shell { padding-right: 12px; padding-left: 12px; }
  .landing-scene { min-height: 268px; }
  .landing-scene-copy { width: 72%; margin: 15px; padding: 14px; }
  .gift-receipt, .journey-card { padding-right: 16px; padding-left: 16px; }
  .bundle-image { width: 80px; height: 80px; }
  .gift-summary h2, .order-item h2 { font-size: 19px; }
  .platform-price { font-size: 26px; }
  .state-sheet { margin-right: 5px; margin-left: 5px; padding-right: 17px; padding-left: 17px; }
}
