:root {
  --ink: #10251d;
  --muted: #708078;
  --line: #d6e2dc;
  --paper: #f3f7f3;
  --panel: #ffffff;
  --forest: #0b3b31;
  --lime: #d9ff57;
  --blue: #78b7d9;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; margin: 0; }
body { background: var(--paper); }
button, a { font: inherit; }
button { cursor: pointer; }
.landing-shell { min-height: 100vh; max-width: 1180px; margin: 0 auto; padding: 28px 42px 30px; display: flex; flex-direction: column; }
.brand-bar { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-weight: 850; letter-spacing: .03em; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px 10px 10px 3px; background: var(--lime); transform: rotate(-6deg); }
.brand-mark span { width: 12px; height: 12px; border: 3px solid var(--forest); border-radius: 50%; position: relative; }
.brand-mark span::after { content: ""; position: absolute; right: -8px; bottom: -6px; width: 8px; height: 3px; background: var(--forest); transform: rotate(45deg); }
.brand-name { font-size: 18px; }
.brand-context { color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.launch-layout { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 480px); gap: clamp(60px, 10vw, 150px); align-items: center; padding: 70px 5vw 72px; }
.kicker { display: flex; align-items: center; gap: 9px; margin: 0 0 24px; color: var(--forest); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.kicker-dot { width: 7px; height: 7px; border-radius: 50%; background: #efb751; box-shadow: 0 0 0 5px rgba(239,183,81,.18); }
h1 { margin: 0; color: var(--forest); font-size: clamp(42px, 5.3vw, 72px); line-height: 1.04; letter-spacing: -.045em; font-weight: 850; }
h1 em { color: #31836a; font-style: normal; }
.intro-copy { max-width: 360px; margin: 25px 0 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.route-rail { position: relative; display: flex; align-items: center; width: min(330px, 90%); margin-top: 57px; }
.rail-node { position: relative; z-index: 1; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
.rail-source { border-color: #c6d7cf; }
.rail-target { border-color: var(--forest); background: var(--forest); color: var(--lime); }
.rail-line { width: 78px; height: 1px; margin: 0 13px; background: var(--line); }
.rail-labels { display: flex; flex-direction: column; gap: 4px; margin-left: 15px; color: var(--muted); font-size: 11px; line-height: 1.2; }
.rail-labels strong { color: var(--ink); font-size: 13px; }
.qr-glyph { width: 19px; height: 19px; background: conic-gradient(from 90deg, var(--forest) 0 25%, transparent 0 50%, var(--forest) 0 75%, transparent 0); border: 2px solid var(--forest); }
.arrow-glyph { font-size: 22px; line-height: 1; }
.action-column { padding: 31px; border: 1px solid var(--line); border-radius: 24px; background: var(--panel); box-shadow: 0 20px 55px rgba(24, 67, 49, .08); }
.target-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.target-label { color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.target-kind { padding: 6px 10px; border-radius: 999px; background: #eff5df; color: #466823; font-size: 11px; font-weight: 800; }
.target-panel { display: flex; align-items: center; gap: 16px; padding: 19px 18px; border-radius: 15px; background: #f5f8f5; }
.target-icon { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 14px; background: var(--forest); color: var(--lime); font-size: 25px; font-weight: 700; }
.target-icon-checkin { background: #387897; color: #e8fbff; }
.target-icon-page { background: #dfeec8; color: #406928; }
.target-panel h2 { margin: 0; font-size: 21px; letter-spacing: -.02em; }
.target-panel p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.action-area { min-height: 108px; display: flex; flex-direction: column; justify-content: center; margin-top: 24px; }
.open-tag { display: block; width: 100%; height: 58px; }
.action-hint { margin: 10px 0 0; color: var(--muted); text-align: center; font-size: 12px; }
.loading-state, .browser-state { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.browser-state { padding: 15px 0; }
.browser-state strong { display: block; color: var(--ink); font-size: 14px; }
.browser-state p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.browser-state-icon { width: 35px; height: 35px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; background: #e4eee8; color: var(--forest); font-size: 16px; font-weight: 800; }
.spinner { width: 17px; height: 17px; border: 2px solid #dbe7e0; border-top-color: var(--forest); border-radius: 50%; animation: spin .8s linear infinite; }
.secondary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border: 1px solid #b8cec2; border-radius: 10px; background: transparent; color: var(--forest); font-size: 13px; font-weight: 750; text-decoration: none; }
.secondary-button:hover { border-color: var(--forest); background: #f3f8f4; }
.privacy-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 4px 0 0; color: #93a099; font-size: 11px; }
.lock-glyph { color: #638073; font-size: 16px; }
.site-footer { display: flex; justify-content: center; gap: 9px; color: #8e9b94; font-size: 11px; }
.footer-separator { color: #c2cec7; }
.state-view { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 55px 20px; }
.state-view .kicker { margin-bottom: 22px; }
.state-view h1 { font-size: clamp(32px, 5vw, 54px); }
.state-view p:not(.kicker) { max-width: 330px; margin: 16px 0 28px; color: var(--muted); line-height: 1.7; }
.state-symbol { width: 62px; height: 62px; display: grid; place-items: center; margin-bottom: 28px; border-radius: 19px; font-size: 28px; font-weight: 850; }
.state-symbol-error { background: #fff0cf; color: #9a641c; }
.is-hidden { display: none !important; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
  .landing-shell { padding: 22px 20px 24px; }
  .brand-context { display: none; }
  .launch-layout { display: block; padding: 65px 0 58px; }
  .intro-copy { font-size: 15px; }
  .route-rail { margin-top: 35px; }
  .action-column { margin-top: 55px; padding: 22px; border-radius: 18px; }
  .target-panel h2 { font-size: 19px; }
  .site-footer { padding-bottom: env(safe-area-inset-bottom); }
}
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
