@font-face {
  font-family: 'Archivo';
  src: local('Archivo');
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f4f0df;
  --ink: #1c231f;
  --muted: #72776c;
  --red: #cd4029;
  --blue: #316ea5;
  --line: #d7d7c6;
  --white: #fffdf5;
  font-family: 'Archivo', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
  text-decoration: none;
}
button, input, select, textarea {
  font: inherit;
}
button, a, summary {
  -webkit-tap-highlight-color: transparent;
}
button, summary {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: .55;
}
button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}
button {
  color: inherit;
}
h1, h2, h3, p {
  margin: 0;
}
h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -.045em;
}
h1 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.15;
}
h2 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.25;
}
h3 {
  font-size: 19px;
}
.wrap {
  width: min(1240px, calc(100% - 88px));
  margin-inline: auto;
}
.muted {
  color: var(--muted);
  line-height: 1.8;
}
.mono {
  font-family: 'SFMono-Regular', Consolas, monospace;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.site-header {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.04em;
}
.brand img {
  object-fit: contain;
}
.brand-detail {
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid #b9bcae;
  font-size: 14px;
  font-weight: 500;
}
nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 600;
}
nav a {
  padding-block: 10px;
}
nav a[aria-current='page'] {
  color: var(--red);
}
nav a:hover, .under-link:hover {
  color: var(--red);
}
.hero {
  min-height: 650px;
  padding-block: 80px 75px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: center;
  gap: 28px;
}
.hero h1 {
  font-size: clamp(48px, 5.8vw, 78px);
  line-height: 1.27;
  letter-spacing: -.07em;
}
.hero h1 span {
  color: var(--red);
}
.hero-description {
  margin: 25px 0 34px;
  color: #697064;
  font-size: 16px;
  line-height: 1.9;
}
.code-bar {
  display: flex;
  align-items: center;
  padding: 7px;
  border: 1.5px solid var(--ink);
  background: var(--white);
  border-radius: 13px;
  gap: 4px;
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  padding: 13px 14px;
  min-height: 48px;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #316ea51a;
}
input::placeholder, textarea::placeholder {
  color: #92988b;
}
.code-bar input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 14px 12px;
  box-shadow: none;
}
.button {
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  padding: 15px 21px;
  min-height: 49px;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  transition: transform .15s, background .15s;
}
.primary {
  background: var(--red);
  color: #fffbee;
}
.primary:hover {
  background: #b83623;
  transform: translateY(-1px);
}
.secondary {
  background: transparent;
  border-color: var(--line);
}
.secondary:hover {
  background: #e9e8da;
}
.paste, .text-button {
  border: 0;
  background: transparent;
  padding: 10px;
  color: var(--muted);
  font-size: 13px;
}
.text-button:hover, .paste:hover {
  color: var(--red);
}
.under-link {
  display: inline-flex;
  gap: 18px;
  font-size: 13px;
  margin-top: 6px;
}
.error {
  color: #ad3021;
  font-size: 13px;
  line-height: 1.8;
  min-height: 0;
  margin-top: 9px;
}
.error:empty {
  display: none;
}
.hero .error {
  margin-bottom: 10px;
}
.hero-art {
  height: 490px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero-tag {
  width: min(86%, 350px);
  height: auto;
  position: relative;
  z-index: 1;
  transform: rotate(9deg);
  filter: drop-shadow(10px 22px 0 #d0d1be55);
  animation: tag-sway 7s ease-in-out infinite;
  transform-origin: 50% 0;
}
.tag-rope {
  position: absolute;
  top: -25px;
  left: 49%;
  height: 170px;
  width: 2px;
  background: #273d3538;
  transform: rotate(9deg);
}
.section-heading {
  margin-bottom: 32px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}
.section-heading p {
  font-size: 14px;
}
.how {
  padding-block: 55px 80px;
  border-top: 1px solid var(--line);
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  padding: 0;
  gap: 16px;
  margin: 0;
}
.how-grid li {
  min-height: 238px;
  border: 1px solid var(--ink);
  border-radius: 13px;
  padding: 22px 25px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.how-grid li:nth-child(1) {
  background: #d94731;
  color: #fff3cf;
}
.how-grid li:nth-child(2) {
  background: #3177ad;
  color: #fff3cf;
}
.how-grid li:nth-child(3) {
  background: #ece6c8;
}
.how-grid li:nth-child(4) {
  background: #222c24;
  color: #f4efda;
}
.how-grid img {
  width: 105px;
  height: 105px;
  object-fit: contain;
  align-self: flex-end;
  margin-bottom: 15px;
}
.how-grid h3 {
  margin-bottom: 9px;
}
.how-grid p {
  font-size: 12px;
  opacity: .8;
}
.faq {
  padding-block: 15px 90px;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 65px;
}
.faq h2 {
  margin-top: 15px;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  padding: 20px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 15px;
}
.faq summary::after {
  content: '+';
  color: var(--red);
  font-size: 20px;
}
.faq details[open] summary::after {
  content: '−';
}
.faq details p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  padding-bottom: 23px;
}
.site-footer {
  min-height: 115px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 12px;
}
.site-footer .brand {
  color: var(--ink);
  font-size: 17px;
}
.flow {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: start;
  gap: 90px;
  min-height: 700px;
  padding-block: 70px 90px;
}
.flow-side {
  position: sticky;
  top: 40px;
}
.flow-side h1 {
  font-size: 46px;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 33px 0 0;
}
.steps li {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #9da291;
  padding: 13px 0;
  font-size: 15px;
}
.steps img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .5;
}
.steps li.current {
  color: var(--red);
  font-weight: 700;
}
.steps li.done {
  color: var(--ink);
}
.steps li.current img, .steps li.done img {
  filter: none;
  opacity: 1;
}
.steps li.current::after {
  content: '●';
  margin-left: auto;
  padding-right: 30px;
  font-size: 10px;
}
.surface {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 35px;
}
.surface > h2 {
  margin-bottom: 17px;
}
.surface > .muted {
  font-size: 14px;
  margin-bottom: 22px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 21px 0 9px;
}
.field-hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin-block: 9px 18px;
}
.session-guide {
  margin: 0 0 24px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 2.1;
}
.session-guide a {
  color: var(--blue);
}
#account-session {
  resize: vertical;
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.wide {
  width: 100%;
  margin-top: 18px;
}
.plan-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
  padding-bottom: 14px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
}
.button-row {
  display: flex;
  gap: 10px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.button-row .primary {
  flex: 1;
}
.status-symbol {
  width: 65px;
  height: 65px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  background: #eaf0ea;
  border-radius: 50%;
  font-size: 38px;
  margin-bottom: 23px;
}
.spinning {
  animation: spin 8s linear infinite;
}
.success-label {
  display: inline-block;
  color: #26724c;
  font-size: 13px;
  margin-bottom: 15px;
}
.facts {
  margin: 27px 0 18px;
}
.facts > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 15px;
  border-top: 1px solid var(--line);
  padding-block: 17px;
  font-size: 14px;
}
.facts dt {
  color: var(--muted);
}
.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.order-id {
  font-size: 12px;
}
.event-details {
  margin-top: 25px;
  border-top: 1px solid var(--line);
  padding-top: 17px;
  font-size: 13px;
}
.event-details summary {
  color: var(--muted);
}
.event-list {
  padding-left: 19px;
  margin-top: 20px;
}
.event-list li {
  padding: 0 0 16px 6px;
  color: var(--muted);
  line-height: 1.8;
}
.event-list time {
  display: block;
  font-size: 11px;
}
.lookup {
  max-width: 780px;
  padding-block: 85px;
}
.lookup .section-heading {
  display: block;
}
.lookup h1 {
  font-size: 44px;
  margin-bottom: 18px;
}
.bank-screen {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  margin-top: 16px;
  cursor: pointer;
}
.bank-screen + form input {
  flex: 1;
  min-width: 140px;
}
.admin-main {
  padding-block: 55px 80px;
  min-height: 76vh;
}
.admin-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 32px;
}
.admin-heading h1 {
  font-size: 42px;
}
.admin-login {
  max-width: 450px;
  margin: 45px auto;
}
.admin-tabs {
  display: flex;
  gap: 25px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}
.admin-tabs a {
  padding-block: 15px;
  font-size: 14px;
}
.admin-tabs a.active {
  color: var(--red);
  border-bottom: 2px solid var(--red);
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 27px;
}
.summary-card {
  padding: 20px;
  background: #eae8d8;
  border-radius: 10px;
}
.summary-card span {
  font-size: 12px;
  color: var(--muted);
}
.summary-card strong {
  display: block;
  font-size: 34px;
  margin-top: 12px;
}
.generate-section {
  margin-bottom: 25px;
}
.generate-section summary {
  font-weight: 650;
  font-size: 16px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 20px;
}
.form-grid > div {
  min-width: 0;
}
.form-grid input {
  min-width: 0;
}
.form-grid .span-all {
  grid-column: 1 / -1;
}
.toolbar {
  display: flex;
  gap: 12px;
  margin: 20px 0;
  align-items: center;
  flex-wrap: wrap;
}
.toolbar input {
  flex: 1;
  min-width: 200px;
}
.toolbar select {
  width: 150px;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
th {
  color: var(--muted);
  font-weight: 500;
  padding: 15px 14px;
  border-bottom: 1px solid var(--ink);
  white-space: nowrap;
}
td {
  padding: 18px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.7;
}
td .mono {
  font-size: 11px;
  white-space: nowrap;
}
td small {
  display: block;
  color: var(--muted);
}
.state {
  display: inline-block;
  white-space: nowrap;
  color: var(--muted);
  background: #e9ebdf;
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 11px;
}
.state[data-status='unused'], .state[data-status='succeeded'] {
  color: #246542;
  background: #e1eddc;
}
.state[data-status='review'] {
  color: #975b08;
  background: #f7ebc8;
}
.state[data-status='reserved'], .state[data-status='processing'] {
  color: var(--blue);
  background: #e1ebf0;
}
.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  font-size: 13px;
}
.empty {
  padding: 55px 20px;
  text-align: center;
  color: var(--muted);
}
.batch-output {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.batch-output textarea {
  margin-top: 14px;
  font-size: 12px;
}
.success {
  color: #246542;
  font-size: 13px;
  line-height: 1.8;
}
dialog {
  width: min(610px, calc(100% - 32px));
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  background: var(--white);
  color: var(--ink);
}
dialog::backdrop {
  background: #15201777;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.dialog-heading h2 {
  font-size: 27px;
}
.danger {
  color: #ad3021;
}

@keyframes tag-sway { 0%, 100% { transform: rotate(7deg); } 50% { transform: rotate(11deg); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1000px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .hero {
    gap: 15px;
    min-height: 610px;
  }
  .hero h1 {
    font-size: 59px;
  }
  .hero-art {
    height: 440px;
  }
  .flow {
    gap: 40px;
    grid-template-columns: .8fr 1.2fr;
  }
  .surface {
    padding: 27px;
  }
  .how-grid li {
    padding: 20px;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .site-header {
    min-height: 82px;
    gap: 15px;
  }
  .brand {
    gap: 8px;
    font-size: 18px;
  }
  .brand-detail {
    display: none;
  }
  nav {
    gap: 20px;
    font-size: 12px;
  }
  .hero {
    padding-block: 48px 30px;
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
  }
  .hero h1 {
    font-size: clamp(43px, 10.5vw, 65px);
  }
  .hero-description {
    font-size: 14px;
    margin: 22px 0 27px;
  }
  .hero-art {
    height: 250px;
    overflow: hidden;
    margin-top: 10px;
  }
  .hero-tag {
    width: 170px;
  }
  .tag-rope {
    height: 90px;
  }
  .code-bar {
    border-radius: 10px;
    padding: 5px;
  }
  .code-bar input {
    font-size: 13px;
    padding-inline: 7px;
  }
  .code-bar .button {
    font-size: 12px;
    gap: 9px;
    padding: 13px 11px;
  }
  .paste {
    font-size: 11px;
    padding-inline: 5px;
  }
  .section-heading {
    display: block;
  }
  .section-heading p {
    margin-top: 15px;
    font-size: 12px;
  }
  .how {
    padding-block: 35px 45px;
  }
  .how-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 11px;
  }
  .how-grid li {
    min-height: 202px;
    padding: 18px;
  }
  .how-grid img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
  }
  .how-grid h3 {
    font-size: 17px;
  }
  .how-grid p {
    font-size: 11px;
  }
  .faq {
    grid-template-columns: 1fr;
    gap: 15px;
    padding-bottom: 50px;
  }
  .site-footer {
    flex-wrap: wrap;
    gap: 15px;
    padding-block: 25px;
  }
  .site-footer > span {
    display: none;
  }
  .flow {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-block: 35px 50px;
    min-height: 650px;
  }
  .flow-side {
    position: static;
  }
  .flow-side h1 {
    font-size: 32px;
  }
  .steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin-top: 20px;
  }
  .steps li {
    flex-direction: column;
    font-size: 11px;
    gap: 5px;
    padding: 8px 0;
    border-bottom: 2px solid var(--line);
  }
  .steps li.current {
    border-color: var(--red);
  }
  .steps img, .steps li.current::after {
    display: none;
  }
  .surface {
    padding: 24px 21px;
  }
  .surface h2 {
    font-size: 26px;
  }
  .facts > div {
    grid-template-columns: 80px 1fr;
    font-size: 13px;
  }
  .lookup {
    padding-block: 50px;
  }
  .lookup h1 {
    font-size: 33px;
  }
  .admin-main {
    padding-block: 35px 50px;
  }
  .admin-heading h1 {
    font-size: 32px;
  }
  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .summary-card {
    padding: 15px;
  }
  .summary-card strong {
    font-size: 28px;
  }
  .form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
  }
  .form-grid .mobile-full {
    grid-column: 1 / -1;
  }
  .toolbar {
    gap: 8px;
  }
  .toolbar select {
    width: 125px;
  }
  .toolbar input {
    min-width: 160px;
  }
}

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