@charset "UTF-8";

:root {
  color-scheme: light;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #242c29;
  background: #f5f4ee;
  font-synthesis: none;
  --accent: #226a57;
  --muted: #69736c;
  --line: #dddfd6;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 3px solid #529a83; outline-offset: 5px; }
button:disabled { cursor: default; }
.page-shell { width: min(1184px, calc(100% - 112px)); margin: 0 auto; }
.skip-link { position: fixed; top: 16px; left: 16px; z-index: 10; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; background: #fff; border: 0; }
.skip-link:focus { width: auto; height: auto; padding: 12px 18px; overflow: visible; clip: auto; clip-path: none; white-space: normal; border: 1px solid var(--accent); }
.site-header { min-height: 110px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 20px; font-weight: 700; letter-spacing: -.65px; }
.wordmark-suffix { color: #7e877f; font-weight: 400; }
.brand-mark { display: flex; align-items: flex-end; gap: 3px; width: 26px; height: 25px; transform: skew(-13deg); }
.brand-mark i { display: block; background: var(--accent); width: 6px; height: 19px; border-radius: 1px; }
.brand-mark i:nth-child(2) { height: 25px; }
.brand-mark i:nth-child(3) { height: 15px; }
.header-label { color: var(--muted); font-size: 12px; letter-spacing: 2px; }
.demo-banner { padding: 12px 17px; margin: 20px 0 0; border: 1px solid #e1c89b; background: #fff5df; color: #805a22; font-size: 13px; line-height: 1.65; border-radius: 6px; text-align: center; }
.demo-banner span { margin-right: 6px; }
.main-layout { display: grid; grid-template-columns: minmax(0, 1fr) 410px; column-gap: clamp(40px, 7vw, 112px); padding: 68px 0 70px; align-items: center; }
.introduction { padding: 8px 0; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--accent); font-size: 10px; letter-spacing: 1.6px; font-weight: 650; margin: 0 0 26px; }
.eyebrow > span { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; flex: 0 0 auto; }
h1 { font-size: clamp(35px, 3.9vw, 53px); line-height: 1.42; letter-spacing: -2px; font-weight: 650; margin: 0; }
.title-accent { color: var(--accent); }
.intro-copy { color: var(--muted); font-size: 15px; line-height: 1.95; margin: 22px 0 33px; }
.steps { margin: 0 0 36px; padding: 0; display: grid; gap: 21px; list-style: none; }
.steps li { display: flex; align-items: flex-start; gap: 17px; }
.step-number { padding-top: 1px; color: #85958a; font-size: 12px; letter-spacing: 1px; font-family: ui-monospace, "Cascadia Code", monospace; }
.steps h2 { font-size: 14px; font-weight: 600; margin: 0 0 5px; }
.steps p { font-size: 12px; color: #788077; margin: 0; line-height: 1.7; }
.pool-note { max-width: 435px; padding: 21px 0 0; border-top: 1px solid var(--line); display: flex; gap: 12px; }
.pool-note svg { flex: 0 0 19px; height: 20px; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.pool-note h2 { font-size: 12px; margin: 0 0 7px; font-weight: 650; }
.pool-note p { font-size: 12px; line-height: 1.85; color: var(--muted); margin: 0; }
.login-panel { background: #fffefa; border: 1px solid #e1e3d9; border-radius: 16px; padding: 29px 30px 23px; box-shadow: 0 12px 50px -24px #344c3538; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; }
.panel-kicker { font-size: 10px; color: #7a847b; letter-spacing: 1px; margin: 0 0 8px; }
.panel-heading h2 { margin: 0; font-weight: 600; font-size: 21px; letter-spacing: -.5px; }
.panel-index { font-size: 29px; line-height: 1; color: #a8b6a4; font-weight: 300; }
.session-state { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #748077; margin-top: 23px; }
.state-dot { width: 6px; height: 6px; border-radius: 50%; background: #9da79a; }
.session-state[data-state="pending"], .session-state[data-state="success"] { color: var(--accent); }
.session-state[data-state="pending"] .state-dot, .session-state[data-state="success"] .state-dot { background: var(--accent); }
.session-state[data-state="failed"], .session-state[data-state="expired"] { color: #987031; }
.session-state[data-state="failed"] .state-dot, .session-state[data-state="expired"] .state-dot { background: #b5894c; }
.qr-stage { min-height: 256px; width: 100%; display: grid; place-items: center; background: #f5f6f0; border: 1px solid #e5e8df; border-radius: 8px; margin-top: 12px; overflow: hidden; }
.qr-stage[data-state="pending"] { background: #fff; }
.qr-stage[data-state="success"] { background: #f0f6ef; }
#qr-canvas { display: block; width: 244px; height: 244px; max-width: 100%; object-fit: contain; }
.stage-placeholder { text-align: center; padding: 24px 12px; }
.stage-symbol { width: 56px; height: 56px; display: grid; place-items: center; margin: 0 auto 20px; color: #4f795e; background: #e8eee1; border-radius: 50%; font-family: "Segoe UI", sans-serif; font-size: 28px; font-weight: 300; line-height: 1; }
.stage-placeholder p { font-size: 14px; margin: 0 0 9px; font-weight: 500; }
.stage-placeholder > span:last-child { font-size: 11px; color: #83907f; line-height: 1.7; }
.qr-stage[data-state="loading"] .stage-symbol { animation: pulse 1.4s ease-in-out infinite; }
.status-area { text-align: center; margin: 18px 0 0; min-height: 56px; }
.status-area h3 { font-size: 13px; font-weight: 600; margin: 0 0 7px; }
.status-area p { font-size: 11px; color: var(--muted); line-height: 1.7; margin: 0; overflow-wrap: anywhere; }
.countdown { font-family: ui-monospace, "Cascadia Code", monospace; font-size: 11px; font-variant-numeric: tabular-nums; text-align: center; color: var(--muted); margin: 10px 0 0; }
.auth-link { display: block; text-align: center; font-size: 12px; color: var(--accent); margin: 13px 0 5px; text-decoration-color: #b4cab9; text-underline-offset: 4px; line-height: 1.7; }
.auth-link:hover { text-decoration-color: var(--accent); }
.auth-link span { padding-left: 3px; }
.account-result { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px; background: #f3f7f0; border-radius: 6px; font-size: 13px; overflow-wrap: anywhere; text-align: center; }
.uid-label { font-family: ui-monospace, "Cascadia Code", monospace; color: var(--muted); font-size: 11px; }
.start-button { width: 100%; min-height: 49px; display: flex; align-items: center; justify-content: center; position: relative; margin: 18px 0 0; padding: 13px 35px; background: var(--accent); color: #fff; border: 1px solid var(--accent); border-radius: 6px; cursor: pointer; font-weight: 500; font-size: 13px; letter-spacing: .5px; transition: background .15s, border-color .15s; }
.start-button:hover:not(:disabled) { background: #185542; border-color: #185542; }
.button-arrow { position: absolute; right: 17px; font-size: 19px; font-weight: 400; }
.start-button:disabled { background: #edf1e9; border-color: #e2e8dd; color: #71816f; }
.start-button:disabled .button-arrow { display: none; }
.consent { text-align: center; color: #626c62; font-size: 12px; line-height: 1.85; margin: 13px 5px 0; }
.noscript-note { font-size: 13px; color: #9a5a27; }
.site-footer { display: flex; justify-content: space-between; gap: 16px; padding: 24px 0 30px; border-top: 1px solid var(--line); color: #899085; font-size: 10px; line-height: 1.8; }
.footer-divider { margin: 0 9px; color: #b1b8a9; }

@keyframes pulse { 50% { opacity: .4; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 1050px) {
  .page-shell { width: calc(100% - 64px); }
  .main-layout { grid-template-columns: minmax(0, 1fr) 370px; gap: 38px; padding: 48px 0; }
  .login-panel { padding: 25px 24px 21px; }
  h1 { font-size: 37px; letter-spacing: -1.3px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.1px; }
}
@media (max-width: 780px) {
  .page-shell { width: min(560px, calc(100% - 40px)); }
  .site-header { min-height: 82px; }
  .wordmark { font-size: 18px; }
  .main-layout { grid-template-columns: minmax(0, 1fr); padding: 35px 0 34px; gap: 28px; }
  .introduction { padding: 0; }
  .eyebrow { margin-bottom: 17px; }
  h1 { font-size: 38px; line-height: 1.35; }
  .intro-copy { margin: 18px 0 23px; font-size: 14px; }
  .desktop-break { display: none; }
  .steps { display: flex; gap: 16px; justify-content: space-between; margin-bottom: 23px; }
  .steps li { display: block; flex: 1; }
  .step-number { display: block; margin-bottom: 9px; }
  .steps h2 { font-size: 12px; line-height: 1.6; }
  .steps p { display: none; }
  .pool-note { padding-top: 16px; max-width: none; }
  .pool-note p { font-size: 11px; }
  .pool-note h2 { font-size: 11px; margin-bottom: 4px; }
  .login-panel { padding: 24px; border-radius: 12px; }
  .qr-stage { min-height: 260px; }
  .consent { max-width: 300px; margin-left: auto; margin-right: auto; }
  .site-footer { padding: 20px 0; font-size: 9px; gap: 10px; flex-wrap: wrap; }
}
@media (max-width: 375px) {
  .page-shell { width: calc(100% - 32px); }
  h1 { font-size: 33px; }
  .header-label { font-size: 10px; }
  .login-panel { padding: 21px 18px; }
  .qr-stage { min-height: 245px; }
  #qr-canvas { width: 230px; height: 230px; }
  .steps { gap: 8px; }
}
