:root {
  color-scheme: light;
  --paper: #faf7ed;
  --ink: #16362e;
  --quiet: #455e54;
  --line: #cbd8cb;
  --green: #cced93;
  --mint: #e1eddd;
  --soft: #fffdf7;
  --peach: #fbdcba;
  --dark: #173b32;
  --radius: 24px;
  --sans: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 16px/1.55 var(--sans); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 820; line-height: 1.13; }
p { color: var(--quiet); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #236c52; outline-offset: 4px; }
.wait-screen :focus-visible { outline-color: var(--green); }
.wrap { width: min(100% - 80px, 1200px); margin-inline: auto; }
.screen { min-height: 100svh; display: grid; align-items: center; padding-block: clamp(74px, 10vh, 130px); }
.screen h2 { font-size: clamp(38px, 5.4vw, 74px); letter-spacing: -.055em; }
.skip { position: fixed; left: 16px; top: 12px; z-index: 9; padding: 12px 18px; border-radius: 16px; background: var(--soft); transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }

.top { position: absolute; top: 0; left: 0; right: 0; z-index: 2; border-bottom: 1px solid var(--line); }
.top-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wordmark { display: flex; align-items: center; gap: 14px; min-height: 44px; font-size: 23px; font-weight: 850; letter-spacing: -.055em; }
.wordmark span { border-left: 1px solid var(--line); padding-left: 14px; color: var(--quiet); font-size: 13px; font-weight: 690; letter-spacing: 0; }
.top-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; white-space: nowrap; }
.top-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.hero { min-height: 100svh; display: grid; align-items: center; padding-block: clamp(112px, 14vh, 160px) clamp(42px, 8vh, 100px); }
.hero-grid { display: grid; grid-template-columns: .92fr 1.08fr; align-items: start; gap: clamp(26px, 4.2vw, 72px); }
.hero-copy { min-width: 0; }
.hero h1 { font-size: clamp(54px, 6.4vw, 96px); letter-spacing: -.075em; line-height: 1.08; }
.hero p, .wait-grid > div > p, .renewal-wrap > div > p { margin-top: 24px; font-size: clamp(17px, 2vw, 23px); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 52px; margin-top: 32px; padding: 0 20px; background: var(--ink); color: var(--soft); border-radius: 999px; font-weight: 740; transition: transform .18s, background .18s; }
.button:hover { transform: translateY(-2px); background: #235645; }
.button:active { transform: translateY(1px); }
.hero[data-enter] .hero-copy { animation: enter .5s ease-out both; }
.hero[data-enter] .hero-art { animation: enter .65s .08s ease-out both; }
@keyframes enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.hero-art { position: relative; min-width: 0; overflow: hidden; aspect-ratio: 1.1; border: 1px solid #c5d8c4; border-radius: var(--radius); background: radial-gradient(ellipse at 75% 75%, #bad9b8, transparent 68%), var(--mint); }
.hero-grid-paper { position: absolute; inset: 0; background-image: radial-gradient(#699584 1px, transparent 1px); background-size: 15px 15px; opacity: .24; mask-image: radial-gradient(ellipse at 54% 55%, #000, transparent 80%); }
.checkout-frame { position: absolute; left: 8%; top: 17%; width: 57%; height: 65%; overflow: hidden; border: 1px solid #a8bca9; border-radius: 18px; background: var(--soft); box-shadow: 0 20px 55px #25403321; }
.frame-top { height: 13%; min-height: 20px; display: flex; align-items: center; gap: 5px; padding-inline: 12px; background: #f0f3e9; border-bottom: 1px solid var(--line); }
.frame-top i { width: 5px; height: 5px; border-radius: 50%; background: #9eb7a5; }
.checkout-content { height: 87%; display: grid; justify-items: center; align-content: center; gap: clamp(5px, 1vw, 12px); font-size: clamp(13px, 1.6vw, 22px); }
.mini-line { height: 5px; width: 36%; border-radius: 6px; background: #dce6da; }
.qr { position: relative; width: clamp(52px, 7vw, 102px); aspect-ratio: 1; border: 4px solid var(--soft); background: repeating-conic-gradient(#193a30 0% 25%, var(--soft) 0% 50%) 50% / 13px 13px; }
.qr b { position: absolute; width: 29%; aspect-ratio: 1; background: #193a30; border: 3px solid var(--soft); outline: 2px solid #193a30; outline-offset: -2px; box-shadow: 0 0 0 2px var(--soft); }
.qr b:first-child { top: 0; left: 0; }
.qr b:nth-child(2) { top: 0; right: 0; }
.qr b:nth-child(3) { bottom: 0; left: 0; }
.phone-frame { position: absolute; top: 21%; right: 8%; width: 24%; height: 57%; display: grid; justify-items: center; align-content: center; gap: 8%; border: clamp(3px, .45vw, 6px) solid var(--ink); border-radius: clamp(15px, 2.4vw, 30px); background: #f5fff0; box-shadow: 0 18px 42px #172e3052; font-size: clamp(11px, 1.2vw, 16px); }
.speaker { width: 30%; height: 4px; border-radius: 4px; background: var(--ink); position: absolute; top: 8px; }
.check-icon, .state-icon, .progress-icon { display: grid; place-items: center; font-weight: 830; }
.check-icon { width: 47%; aspect-ratio: 1; border-radius: 50%; background: var(--green); font-size: clamp(19px, 4vw, 43px); }
.hero-member { position: absolute; right: 6%; bottom: 5%; display: flex; align-items: center; gap: 9px; padding: clamp(5px, 1.2vw, 13px) clamp(10px, 1.5vw, 19px); border-radius: 999px; background: var(--ink); color: var(--soft); box-shadow: 0 8px 20px #173c3540; font-size: clamp(11px, 1.3vw, 16px); white-space: nowrap; }
.tiny-spark { color: var(--green); font-size: 1.35em; }

.flow-screen { background: var(--soft); border-top: 1px solid var(--line); }
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 27px; list-style: none; padding: 0; margin: 42px 0 0; }
.flow-step { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.flow-step + .flow-step::before { content: "→"; position: absolute; left: -29px; top: 47%; z-index: 1; display: grid; place-items: center; width: 30px; font-weight: 850; color: #39604e; }
.flow-step h3 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.04em; }
.step-art { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 170px; margin-top: 20px; border-radius: 16px; background: var(--mint); }
.plan-card { position: relative; width: 35%; min-width: 52px; max-width: 100px; min-height: 82px; display: grid; align-content: center; gap: 7px; border: 1px solid #9bb6a1; border-radius: 10px; padding: 9px; background: var(--soft); font-size: 13px; font-weight: 770; }
.plan-card.picked { border-color: #4b745a; background: var(--green); }
.plan-card i, .point-card i { display: block; height: 4px; border-radius: 6px; background: #a7c3ad; }
.plan-card i:last-of-type, .point-card i:last-of-type { width: 64%; }
.plan-card b { position: absolute; right: 8px; top: 9px; }
.scan-art { background: #f7e2c9; }
.scan-shell { position: relative; display: grid; place-items: center; width: 120px; aspect-ratio: 1; border: 1px solid #9eaa93; border-radius: 18px; background: var(--soft); }
.scan-shell .qr { width: 72px; }
.scan-line { position: absolute; width: 86%; top: 51%; height: 2px; background: #449361; box-shadow: 0 0 10px #4f9d68; }
.points-art { position: relative; gap: 0; background: #e6ecce; }
.point-card { width: 110px; height: 78px; padding: 12px 14px; display: grid; gap: 6px; border-radius: 10px; background: var(--ink); box-shadow: 0 8px 16px #142d2033; }
.point-card span { color: var(--green); font-size: 20px; }
.coin { z-index: 1; width: 42px; height: 42px; display: grid; place-items: center; margin-left: -12px; margin-top: 42px; border-radius: 50%; background: var(--green); border: 2px solid var(--ink); font-size: 25px; font-weight: 800; }
.short-note { display: flex; align-items: baseline; gap: 8px; margin-top: 24px; }
.short-note span { color: #29664c; font-size: 22px; line-height: 1; }

.wait-screen { background: var(--dark); color: var(--soft); }
.wait-grid { display: grid; grid-template-columns: .95fr 1.05fr; align-items: start; gap: clamp(26px, 5vw, 88px); }
.wait-grid > div > p { color: #dcf0e2; }
.switcher { display: inline-flex; background: #0f2b24; border: 1px solid #577567; border-radius: 999px; padding: 4px; gap: 5px; margin-top: 28px; }
.switcher button { min-height: 46px; padding-inline: 18px; border: 0; border-radius: 999px; color: #def2e4; background: transparent; transition: background .17s, color .17s; font-weight: 700; }
.switcher button:hover { background: #325f4f; }
.switcher button:active { transform: translateY(1px); }
.switcher button[aria-pressed="true"] { background: var(--green); color: var(--ink); }
.state-art { min-width: 0; display: grid; align-content: center; padding: clamp(22px, 5vw, 66px); min-height: clamp(290px, 35vw, 440px); border-radius: var(--radius); border: 1px solid #5c7a6c; background: #21493d; }
.state-card { display: flex; align-items: center; gap: 15px; min-height: 84px; padding: 14px 17px; border-radius: 16px; color: var(--ink); background: var(--soft); }
.state-card div { display: grid; gap: 2px; }
.state-card div span { color: var(--quiet); font-size: 13px; font-weight: 750; }
.state-card strong { font-size: clamp(19px, 2.4vw, 27px); line-height: 1.2; }
.state-icon { flex: 0 0 46px; aspect-ratio: 1; border-radius: 50%; background: var(--green); font-size: 25px; }
.state-pending { background: var(--peach); }
[data-step="complete"] .state-pending { background: var(--green); animation: confirm .34s ease both; }
@keyframes confirm { 45% { transform: scale(1.13); } }
.state-track { display: grid; gap: 3px; padding-block: 5px; margin-left: 38px; }
.state-track i { width: 4px; height: 4px; border-radius: 50%; background: #b2d3ac; }
.state-art p.state-note { margin-top: 14px; color: #e5f0e8; font-size: 15px; }

.renewal-screen { border-bottom: 1px solid var(--line); }
.renewal-wrap { display: grid; gap: clamp(35px, 7vw, 90px); }
.renewal-art { display: grid; grid-template-columns: 1fr minmax(36px, 8%) 1fr; align-items: stretch; position: relative; }
.term { min-width: 0; display: grid; align-content: center; justify-items: start; gap: 9px; min-height: clamp(170px, 24vw, 280px); padding: clamp(14px, 3.8vw, 42px); border: 1px solid #a8c2a5; border-radius: var(--radius); background: var(--mint); }
.term-next { background: var(--green); border-color: #91b26f; }
.term strong { font-size: clamp(19px, 3.6vw, 37px); line-height: 1.15; }
.term > span:last-child { color: var(--quiet); }
.term-symbol { display: grid; place-items: center; width: clamp(32px, 6vw, 68px); aspect-ratio: 1; border-radius: 50%; background: var(--ink); color: var(--green); font-size: clamp(19px, 4vw, 39px); line-height: 1; }
.term-arrow { align-self: center; text-align: center; font-size: clamp(26px, 5vw, 61px); font-weight: 850; line-height: 1; }

.progress-screen { background: var(--soft); }
.progress-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 42px; }
.progress-card { display: grid; align-content: center; justify-items: start; gap: 13px; min-height: 255px; padding: clamp(21px, 3.9vw, 46px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--mint); }
.progress-card.next { background: #f9ead8; border-color: #ead1b8; }
.progress-icon { width: 64px; aspect-ratio: 1; border-radius: 50%; background: var(--ink); color: var(--green); font-size: 35px; line-height: 1; }
.next .progress-icon { background: #79461f; color: #fff5e8; }
.progress-card h3 { font-size: clamp(24px, 3.2vw, 39px); }
.progress-card p { font-size: 17px; }
.end-button { margin-top: 23px; }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 56px); }
  .hero h1 { font-size: clamp(47px, 7.1vw, 78px); }
  .flow { gap: 17px; }
  .flow-step { padding: 17px; }
  .flow-step + .flow-step::before { width: 18px; left: -19px; }
  .step-art { min-height: 142px; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 40px); }
  .top-inner { min-height: 61px; }
  .wordmark { font-size: 19px; gap: 7px; }
  .wordmark span { padding-left: 7px; font-size: 11px; }
  .top-link { font-size: 12px; }
  .hero { min-height: 100svh; padding-block: 95px 40px; }
  .hero-grid, .wait-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero h1 { font-size: clamp(40px, 11.7vw, 64px); }
  .hero p, .wait-grid > div > p, .renewal-wrap > div > p { margin-top: 15px; }
  .hero-art { width: 100%; max-width: 520px; aspect-ratio: 1.26; }
  .button { margin-top: 22px; min-height: 47px; }
  .screen { padding-block: 62px; }
  .flow, .progress-list { grid-template-columns: 1fr; gap: 12px; margin-top: 26px; }
  .flow-step { display: grid; grid-template-columns: minmax(83px,.7fr) minmax(0,1fr); align-items: center; gap: 9px; }
  .flow-step + .flow-step::before { content: none; }
  .step-art { min-height: 108px; margin-top: 0; padding: 7px; }
  .scan-shell { width: 80px; border-radius: 14px; }
  .scan-shell .qr { width: 52px; }
  .point-card { width: min(82px, 80%); height: 66px; }
  .plan-card { min-width: 40px; padding: 5px; }
  .plan-card b { right: 4px; }
  .progress-card { min-height: 187px; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 32px); }
  .wordmark { font-size: 17px; }
  .wordmark span { font-size: 10px; }
  .top-link { font-size: 11px; }
  .flow-step h3 { font-size: 19px; }
  .term span:last-child { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

