:root {
  --paper: #f3f7f5;
  --card: #ffffff;
  --ink: #10221c;
  --muted: #557269;
  --jade: #086f5b;
  --jade-dark: #054a3e;
  --tron: #e53e51;
  --sand: #f5c451;
  --line: #cfe0da;
  --shadow: 0 28px 80px rgba(16, 34, 28, 0.12);
  color-scheme: light;
  font-family: "Segoe UI", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(8, 111, 91, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 111, 91, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
}

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

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 32px;
}

.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-family: "Bahnschrift SemiCondensed", "Arial Narrow", sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  width: 29px;
  height: 29px;
  color: #fff;
  background: var(--jade);
  border-radius: 50% 50% 50% 7px;
  place-items: center;
}

.service-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 160ms ease;
}

.service-label:hover,
.service-label:focus-visible {
  color: var(--jade);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: end;
  padding: clamp(46px, 8vw, 92px) 0 44px;
}

.eyebrow,
.ticket-kicker {
  margin: 0 0 12px;
  color: var(--jade);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: "Bahnschrift SemiCondensed", "Arial Narrow", "Microsoft JhengHei", sans-serif;
  font-size: clamp(46px, 7.6vw, 96px);
  font-stretch: condensed;
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.hero h1 span {
  position: relative;
  display: inline-block;
  color: var(--tron);
  letter-spacing: -0.035em;
}

.hero-summary {
  max-width: 680px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.75;
}

.flow-line {
  display: grid;
  grid-template-columns: auto 40px auto 40px auto;
  gap: 8px;
  align-items: center;
  padding-bottom: 8px;
  color: var(--muted);
  font-family: "Bahnschrift SemiCondensed", "Arial Narrow", sans-serif;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.flow-line svg {
  width: 40px;
  fill: none;
  stroke: var(--line);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.flow-done {
  color: var(--jade);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
}

.payment-ticket {
  position: relative;
  padding: clamp(24px, 4vw, 42px);
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(16, 34, 28, 0.08);
  border-radius: 22px 22px 44px 22px;
  box-shadow: var(--shadow);
}

.payment-ticket::before,
.payment-ticket::after {
  position: absolute;
  top: 126px;
  width: 28px;
  height: 28px;
  background: var(--paper);
  border: 1px solid rgba(16, 34, 28, 0.08);
  border-radius: 50%;
  content: "";
}

.payment-ticket::before {
  left: -16px;
}

.payment-ticket::after {
  right: -16px;
}

.ticket-topline {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 28px;
  border-bottom: 1px dashed var(--line);
}

.ticket-topline h2 {
  margin: 0;
  color: var(--tron);
  font-family: "Bahnschrift SemiCondensed", "Arial Narrow", sans-serif;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.ticket-topline h2 strong {
  font-size: clamp(56px, 7vw, 78px);
  font-weight: 780;
}

.one-use {
  padding: 8px 10px;
  color: var(--jade-dark);
  background: #e5f3ee;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.qr-frame {
  position: relative;
  width: min(296px, 82%);
  margin: 34px auto 12px;
  padding: 13px;
  background: #fff;
}

.qr-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.scan-corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border-color: var(--tron);
  border-style: solid;
}

.corner-a {
  top: 0;
  left: 0;
  border-width: 3px 0 0 3px;
}

.corner-b {
  top: 0;
  right: 0;
  border-width: 3px 3px 0 0;
}

.corner-c {
  right: 0;
  bottom: 0;
  border-width: 0 3px 3px 0;
}

.corner-d {
  bottom: 0;
  left: 0;
  border-width: 0 0 3px 3px;
}

.scan-label {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  text-align: center;
}

.address-block {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
  padding: 15px;
  background: #edf4f1;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.address-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.address-block code {
  min-width: 0;
  overflow: hidden;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  font-weight: 650;
  grid-column: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-button {
  display: inline-flex;
  min-height: 46px;
  padding: 0 16px;
  color: #fff;
  background: var(--jade);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  gap: 8px;
  grid-row: 1 / span 2;
  grid-column: 2;
  align-items: center;
  justify-content: center;
  transition: background 160ms ease, transform 160ms ease;
}

.copy-button:hover {
  background: var(--jade-dark);
  transform: translateY(-1px);
}

.copy-button:focus-visible {
  outline: 3px solid var(--sand);
  outline-offset: 3px;
}

.copy-button svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.copy-status {
  min-height: 18px;
  margin: 7px 0 0;
  color: var(--jade);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.same-wallet-rule {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 14px 16px;
  color: #5d3a09;
  background: #fff5d8;
  border: 1px solid #f4dfa6;
  border-radius: 13px;
}

.rule-icon {
  display: grid;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  color: #fff;
  background: #b36b00;
  border-radius: 50%;
  font-weight: 850;
  place-items: center;
}

.same-wallet-rule p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.steps {
  padding: 14px 0;
}

.steps-heading h2 {
  max-width: 520px;
  margin: 0;
  font-family: "Bahnschrift SemiCondensed", "Arial Narrow", "Microsoft JhengHei", sans-serif;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.step-list {
  position: relative;
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
}

.step-list::before {
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 21px;
  width: 2px;
  background: var(--line);
  content: "";
}

.step-list li {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 32px;
}

.step-number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 44px;
  height: 44px;
  color: var(--jade-dark);
  background: var(--paper);
  border: 2px solid var(--jade);
  border-radius: 50%;
  font-family: "Bahnschrift SemiCondensed", "Arial Narrow", sans-serif;
  font-size: 18px;
  font-weight: 800;
  place-items: center;
}

.step-list li:last-child .step-number {
  color: #fff;
  background: var(--jade);
}

.step-list h3 {
  margin: 0 0 7px;
  font-size: clamp(21px, 2.4vw, 27px);
  line-height: 1.2;
}

.step-list p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.exception-stack {
  display: grid;
  gap: 12px;
}

.exception-note {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 20px;
  padding: 18px 20px;
  background: var(--ink);
  border-radius: 15px;
  color: #fff;
}

.exception-note span {
  color: #b7c9c2;
  font-size: 13px;
  font-weight: 650;
}

.exception-note strong {
  color: var(--sand);
  font-size: 18px;
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  white-space: nowrap;
}

.exception-note p {
  margin: 0;
  color: #e2ebe8;
  font-size: 12px;
  line-height: 1.5;
}

.support-note {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 15px 16px;
  background: #eaf5f1;
  border: 1px solid #c7e2d9;
  border-radius: 13px;
}

.support-note strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
  line-height: 1.4;
}

.support-note p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.support-note a {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 14px;
  color: #fff;
  background: var(--jade);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
}

.support-note a:hover {
  background: var(--jade-dark);
}

.support-note a:focus-visible {
  outline: 3px solid var(--sand);
  outline-offset: 3px;
}

footer {
  margin-top: 54px;
  padding: 20px 0 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

footer p {
  margin: 0;
}

@media (max-width: 860px) {
  .page-shell {
    width: min(680px, calc(100% - 28px));
  }

  .hero {
    display: block;
    padding: 48px 0 34px;
  }

  .flow-line {
    width: max-content;
    margin-top: 30px;
  }

  .content-grid {
    display: flex;
    flex-direction: column;
    gap: 46px;
    align-items: stretch;
  }

  .step-list {
    margin-top: 30px;
  }
}

@media (max-width: 520px) {
  .page-shell {
    width: min(100% - 20px, 460px);
    padding-top: 14px;
  }

  .brand-bar {
    min-height: 48px;
  }

  .wordmark {
    font-size: 14px;
  }

  .wordmark-mark {
    width: 26px;
    height: 26px;
  }

  .service-label {
    font-size: 11px;
  }

  .hero {
    padding-top: 38px;
  }

  .hero h1 {
    font-size: clamp(44px, 15vw, 64px);
  }

  .hero-summary {
    margin-top: 22px;
    font-size: 16px;
  }

  .flow-line {
    width: 100%;
    grid-template-columns: auto minmax(18px, 1fr) auto minmax(18px, 1fr) auto;
    gap: 6px;
    font-size: 11px;
  }

  .flow-line svg {
    width: 100%;
  }

  .steps-heading h2 {
    font-size: 36px;
  }

  .step-list li {
    gap: 15px;
  }

  .exception-note {
    grid-template-columns: 1fr;
  }

  .exception-note strong {
    margin: 4px 0;
    grid-row: auto;
    grid-column: auto;
  }

  .payment-ticket {
    padding: 23px 17px;
    border-radius: 18px 18px 34px 18px;
  }

  .payment-ticket::before,
  .payment-ticket::after {
    top: 116px;
  }

  .ticket-topline {
    gap: 10px;
  }

  .ticket-topline h2 strong {
    font-size: 53px;
  }

  .one-use {
    font-size: 10px;
  }

  .address-block {
    grid-template-columns: 1fr;
  }

  .address-block code {
    width: 100%;
    font-size: 11px;
  }

  .copy-button {
    margin-top: 4px;
    grid-row: auto;
    grid-column: 1;
  }

  .copy-status {
    text-align: center;
  }

  .support-note {
    display: block;
  }

  .support-note a {
    width: 100%;
    margin-top: 12px;
  }
}
