:root { color-scheme: light; font: 16px/1.65 system-ui, sans-serif; color: #17342e; background: #f5f7f4; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.bar, main, footer { width: min(960px, 100% - 36px); margin-inline: auto; }
.bar, footer { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.bar { padding: 18px 0; border-bottom: 1px solid #cfdbd4; }
a { color: #19684e; text-underline-offset: .2em; }
.brand { color: inherit; font-weight: 750; text-decoration: none; }
main { padding: 32px 0; }
h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.25; }
.intro { max-width: 65ch; margin: 12px 0 26px; }
.columns { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; gap: 20px; }
.panel { background: white; border: 1px solid #d6e0d9; border-radius: 12px; padding: clamp(16px, 3vw, 28px); overflow-wrap: anywhere; }
.panel + .panel { margin-top: 16px; }
h2 { font-size: 1.28rem; margin: 0 0 12px; }
h3 { margin: 24px 0 6px; font-size: 1rem; }
p { margin: 8px 0 12px; }
p:empty { display: none; }
.help p, footer { color: #435c53; font-size: .93rem; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
footer { border-top: 1px solid #cfdbd4; padding: 16px 0 28px; }
@media (max-width: 660px) { .columns { grid-template-columns: 1fr; } main { padding-top: 22px; } }

:root { --ink: #142019; --green: #0c714b; --line: #dce5df; color: var(--ink); }
.bar, main, footer { width: min(1080px, 100% - 36px); }
.brand { display: inline-flex; align-items: center; gap: .55rem; }
.steps { display: flex; gap: 1rem; padding: 0; list-style: none; counter-reset: steps; margin: 1rem 0 1.5rem; }
.steps li { counter-increment: steps; color: #506158; }
.steps li::before { content: counter(steps); display: inline-grid; place-items: center; border: 1px solid var(--line); width: 1.6rem; height: 1.6rem; border-radius: 50%; margin-right: .35em; }
main[data-step] .steps [aria-current] { font-weight: 700; color: var(--green); }
.steps [aria-current]::before { color: white; background: var(--green); }
#plans { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(140px,100%),1fr)); gap: .5rem; }
.plan, .method { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding: .8rem; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.plan:has(:checked), .method:has(:checked) { border-color: var(--green); background: #eff8f2; }
.plan:has(:disabled) { background: #f4f5f4; color: #65716b; }
.plan strong, .plan small { width: 100%; }
.plan strong { font-size: 1.25rem; }
.plan em, #badge { color: var(--green); font-size: .84rem; font-style: normal; font-weight: 650; }
#channel, .actions { display: flex; flex-wrap: wrap; gap: .5rem; }
#methods { margin: 1rem 0; }
#methods legend { position: static; width: auto; height: auto; clip-path: none; margin-bottom: .3rem; font-weight: 650; }
.method b { background: #1677ff; color: white; border-radius: .28rem; padding: 0 .3rem; }
.method.wechat b { background: #087a46; }
input { accent-color: var(--green); }
button, .primary { font: inherit; display: inline-block; max-width: 100%; border: 1px solid #aabdb0; border-radius: 7px; padding: .48rem .8rem; background: white; color: var(--green); cursor: pointer; }
.primary { background: var(--green); color: white; border-color: var(--green); font-weight: 650; text-decoration: none; text-align: center; }
#purchase { width: 100%; }
button:disabled { opacity: .6; cursor: default; }
:focus-visible { outline: 3px solid #a9580b; outline-offset: 3px; }
.actions { margin: 1rem 0; }
.text-button { padding: .25em 0; border: 0; text-decoration: underline; background: transparent; text-underline-offset: .2em; }
#link-note, #validity { color: #52665a; font-size: .9rem; }
#link-note.warning, #method-note:not(:empty), #recovered { padding: .65rem; background: #fff4da; color: #623900; }
#license, #missing-number { display: block; user-select: all; font: 700 clamp(1.15rem,3vw,1.7rem)/1.5 ui-monospace,monospace; background: #eff8f2; padding: 1rem; border-radius: 8px; }
#qr { height: auto; max-width: 100%; }
@media(max-width:680px) { #plans { grid-template-columns: 1fr; } .steps { font-size: .84rem; gap: .5rem; } }

.order-state, .order-summary > div { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
#badge:not(:empty) { padding: .15rem .65rem; background: #eff8f2; border-radius: 1rem; }
.order-summary { border-block: 1px solid var(--line); padding: .85rem 0; margin: .8rem 0; }
.order-summary > div { justify-content: space-between; font-size: 1.2rem; font-weight: 700; }
.order-summary p, .order-summary dl { font-size: .9rem; margin: .35rem 0; }
.order-summary dl { display: grid; grid-template-columns: max-content minmax(0,1fr); gap: .15rem .75rem; }
.order-summary dt { color: #52665a; }
.order-summary dd { margin: 0; }
