:root {
  color-scheme: light;
  --ink: #15211f;
  --ink-2: #4a5754;
  --line: #dbe2df;
  --line-strong: #b9c4c0;
  --paper: #ffffff;
  --bg: #f8f7f3;
  --band: #edf2ef;
  --accent: #0b6657;
  --accent-dark: #084f43;
  --accent-soft: #dcefe9;
  --now: #7a4300;
  --now-soft: #fbecd5;
  --later: #5a6663;
  --later-soft: #e6ebe8;
  --radius: 14px;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

:lang(zh) { line-height: 1.75; }

h1, h2, h3, p, ol, dl, dd, figure { margin: 0; padding: 0; }

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  z-index: 10;
}

.skip:focus { top: 12px; color: #fff; }

.icon {
  display: block;
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* Top bar */
.top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 20px;
  padding-block: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.01em;
  text-decoration: none;
}

.brand svg { width: 28px; height: 28px; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
  margin-left: auto;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 10px;
  color: var(--ink-2);
  font-size: 15px;
  text-decoration: none;
}

.nav a:hover { color: var(--ink); text-decoration: underline; }

.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding-inline: 14px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.lang:hover { border-color: var(--accent); color: var(--accent-dark); }

@media (max-width: 760px) {
  .brand { margin-right: auto; }
  .nav {
    order: 3;
    width: calc(100% + 16px);
    margin: 0 -8px;
  }
  .nav a { padding-inline: 8px; font-size: 14.5px; }
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  padding-block: clamp(28px, 6vw, 72px) clamp(44px, 7vw, 88px);
}

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  background: var(--now-soft);
  border-radius: 999px;
  color: var(--now);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.chip::before {
  content: "";
  width: 7px;
  height: 7px;
  background: currentColor;
  border-radius: 50%;
  flex: none;
}

h1 {
  margin-top: 18px;
  font-size: clamp(34px, 5.2vw, 56px);
  font-weight: 750;
  letter-spacing: -.02em;
  line-height: 1.08;
  text-wrap: balance;
}

:lang(zh) h1 {
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.28;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.lead {
  margin-top: 20px;
  max-width: 34em;
  color: var(--ink-2);
  font-size: clamp(18px, 1.9vw, 20px);
  line-height: 1.55;
}

:lang(zh) .lead { line-height: 1.75; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding-inline: 24px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}

.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); color: #fff; }
.btn.ghost { background: var(--paper); border: 1px solid var(--line-strong); color: var(--ink); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent-dark); }

.owner {
  margin-top: 22px;
  color: var(--ink-2);
  font-size: 15px;
}

.owner strong { color: var(--ink); font-weight: 600; }
.nb { white-space: nowrap; }

/* Sample receipt */
.sample {
  width: 100%;
  max-width: 340px;
  margin-inline: auto;
}

.paper { filter: drop-shadow(0 14px 22px rgba(21, 33, 31, .15)); }

.receipt {
  position: relative;
  padding: 26px 22px 34px;
  background: #fff;
  color: #1c1c1c;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.5;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%;
}

.stamp {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 1px 7px;
  background: var(--now-soft);
  border-radius: 5px;
  color: var(--now);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}

.receipt .c { text-align: center; }
.receipt .venue { font-size: 15px; font-weight: 700; }
.receipt .title { margin-top: 10px; font-size: 16px; font-weight: 700; letter-spacing: .04em; }

.receipt .r {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.receipt .r span:last-child { flex: none; }
.receipt .item span:first-child { padding-left: 4ch; text-indent: -4ch; }
.receipt .sub { padding-left: 4ch; color: #505050; }
.receipt .big { font-size: 16px; font-weight: 700; }

.receipt hr {
  height: 0;
  margin: 9px 0;
  border: 0;
  border-top: 1px dashed #9a9a9a;
}

.sample figcaption {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.5;
  text-align: center;
}

:lang(zh) .sample figcaption { line-height: 1.65; }

/* Sections */
.section { padding-block: clamp(44px, 7vw, 80px); }
.band { background: var(--band); }

h2 {
  font-size: clamp(27px, 3.4vw, 36px);
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.2;
}

:lang(zh) h2 { letter-spacing: 0; line-height: 1.35; }

.intro {
  margin-top: 12px;
  max-width: 42em;
  color: var(--ink-2);
}

h3 {
  font-size: 18px;
  font-weight: 650;
  line-height: 1.35;
}

/* Feature cards */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
}

.card {
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card .icon { margin-bottom: 12px; color: var(--accent); }

.card p {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.55;
}

:lang(zh) .card p { line-height: 1.7; }

/* Two wider cards */
.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 760px) {
  .pair { grid-template-columns: minmax(0, 1fr); }
}

.pair .card { padding: clamp(22px, 3vw, 32px); }
.pair h2 { font-size: clamp(23px, 2.6vw, 28px); }
.card .chip { margin: 0 0 12px; color: var(--now); font-size: 14px; line-height: 1.5; }
.pair .card p:not(.chip) { margin-top: 10px; font-size: 17px; }

.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.tile {
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  line-height: 1.35;
}

.tile b { display: block; font-size: 15.5px; font-weight: 600; }
.tile span { display: block; margin-top: 3px; color: var(--ink-2); font-size: 14px; }

/* Rules */
.rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(24px, 4vw, 48px);
  margin-top: 26px;
}

@media (max-width: 720px) {
  .rules { grid-template-columns: minmax(0, 1fr); }
}

.rule {
  padding-block: 18px;
  border-top: 1px solid var(--line-strong);
}

.rule p { margin-top: 5px; color: var(--ink-2); font-size: 16px; }

/* Progress */
.steps {
  margin-top: 30px;
  list-style: none;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 26px;
}

.step:last-child { padding-bottom: 0; }

.step::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 44px;
  bottom: 4px;
  border-left: 2px solid var(--line);
}

.step:last-child::before { display: none; }

.mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.mark .icon { width: 22px; height: 22px; stroke-width: 2.2; }

.state {
  display: inline-block;
  padding: 1px 9px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

.step p { margin-top: 3px; color: var(--ink-2); font-size: 16px; max-width: 42em; }
.step h3 { margin-top: 6px; }
.is-done .mark, .is-done .state { background: var(--accent-soft); color: var(--accent-dark); }
.is-now .mark, .is-now .state { background: var(--now-soft); color: var(--now); }
.is-next .mark, .is-next .state, .is-later .mark, .is-later .state { background: var(--later-soft); color: var(--later); }

.note {
  margin-top: 30px;
  padding: 16px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* About and contact */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

@media (max-width: 820px) {
  .about { grid-template-columns: minmax(0, 1fr); }
}

.about .intro { margin-top: 12px; }

.facts { margin-top: 22px; }

.facts div {
  display: grid;
  grid-template-columns: 6em minmax(0, 1fr);
  gap: 12px;
  padding-block: 11px;
  border-top: 1px solid var(--line-strong);
}

.facts dt { color: var(--ink-2); font-size: 15.5px; }
.facts dd { font-weight: 550; overflow-wrap: anywhere; }

.check {
  display: inline-block;
  padding-block: 10px;
  margin-block: -10px;
  font-size: 15px;
  font-weight: 400;
}

.contact {
  padding: clamp(22px, 3vw, 32px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact p:not(.mail) { margin-top: 10px; color: var(--ink-2); }
.contact .mail { margin-top: 18px; }
.contact .btn { width: 100%; overflow-wrap: anywhere; }

/* Footer */
.foot {
  padding-block: 26px 34px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 14px;
}

.foot p + p { margin-top: 4px; }
