/*! A652 LinPick site craft — visual + chrome layer (compliance-safe) */
:root {
  --lp-ink: #0D0A07;
  --lp-card: #FFFFFF;
  --lp-mist: #7A7268;
  --lp-mist-light: #F9F6F0;
  --lp-dim: #7A7268;
  --lp-gold: #B8944C;
  --lp-gold-bright: #D4B87A;
  --lp-red: #8B1A1A;
  --lp-border: rgba(26, 20, 16, 0.08);
  --lp-border-gold: rgba(184, 148, 76, 0.28);
  --lp-radius: 2px;
  --lp-space: 16px;
  --lp-max: 1100px;
  --lp-nav-h: 64px;
  --lp-bottom-h: 56px;
  --lp-font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, serif;
  --lp-font-sans: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --lp-font-mono: "JetBrains Mono", "SF Mono", Consolas, monospace;
}

html { scroll-behavior: smooth; }
body.lp-a652 {
  margin: 0;
  background: var(--paper, #F9F6F0);
  color: var(--ink, #1A1410);
  font-family: var(--font-sans, var(--lp-font-sans));
  line-height: 1.55;
  padding-bottom: calc(var(--lp-bottom-h) + 48px);
}

.lp-compliance-top {
  background: rgba(200, 16, 46, 0.14);
  border-bottom: 1px solid rgba(200, 16, 46, 0.35);
  padding: 8px 14px;
  text-align: center;
  font-size: 12px;
  color: #e8d9a8;
  line-height: 1.6;
}

/* Override / inject unified top nav */
#lp-a652-nav.qilin-topnav,
nav.qilin-topnav.lp-nav-unified {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(10px);
  background: rgba(249, 246, 240, 0.94);
  border-bottom: 1px solid var(--lp-border-gold);
}
#lp-a652-nav .qilin-topnav-inner,
nav.qilin-topnav.lp-nav-unified .qilin-topnav-inner {
  max-width: var(--lp-max);
  margin: 0 auto;
  min-height: var(--lp-nav-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
}
#lp-a652-nav .logo-seal,
nav.qilin-topnav.lp-nav-unified .logo-seal {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--lp-red); color: var(--lp-gold);
  display: grid; place-items: center;
  font-family: var(--lp-font-serif); font-weight: 900; font-size: 18px;
}
#lp-a652-nav .brand-name,
nav.qilin-topnav.lp-nav-unified .brand-name {
  font-family: var(--lp-font-serif); font-weight: 800; color: var(--ink, #1A1410); font-size: 16px;
}
#lp-a652-nav .brand-tag,
nav.qilin-topnav.lp-nav-unified .brand-tag {
  font-size: 11px; color: var(--lp-dim); letter-spacing: 0.08em;
}
#lp-a652-nav .qilin-topnav-menu,
nav.qilin-topnav.lp-nav-unified .qilin-topnav-menu {
  display: flex; flex-wrap: wrap; gap: 4px 10px; flex: 1; align-items: center;
}
#lp-a652-nav .qilin-nav-link,
nav.qilin-topnav.lp-nav-unified .qilin-nav-link {
  color: var(--lp-mist); text-decoration: none; font-size: 13px; padding: 6px 8px; border-radius: 6px;
}
#lp-a652-nav .qilin-nav-link:hover,
#lp-a652-nav .qilin-nav-link.active,
nav.qilin-topnav.lp-nav-unified .qilin-nav-link:hover,
nav.qilin-topnav.lp-nav-unified .qilin-nav-link.active {
  color: var(--lp-gold-bright); background: rgba(212, 175, 55, 0.08);
}
#lp-a652-nav .qilin-topnav-actions { display: flex; gap: 8px; align-items: center; }
#lp-a652-nav .lp-btn,
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 14px; border-radius: 8px; border: 1px solid var(--lp-gold);
  color: var(--lp-gold); text-decoration: none; font-size: 13px; background: transparent; cursor: pointer;
}
.lp-btn.solid { background: var(--lp-red); border-color: var(--lp-red); color: #fff; }
.lp-btn.gold { background: var(--lp-gold); border-color: var(--lp-gold); color: #1a1408; font-weight: 700; }
@media (max-width: 900px) {
  #lp-a652-nav .qilin-topnav-menu { display: none; }
  #lp-a652-nav .qilin-topnav-menu.mobile-open {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: var(--lp-nav-h);
    background: rgba(10, 14, 26, 0.98); padding: 12px 16px 20px; border-bottom: 1px solid var(--lp-border-gold);
  }
}

/* Mobile bottom IA */
#lp-a652-bottom {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: none; height: var(--lp-bottom-h);
  background: rgba(11, 13, 18, 0.96);
  border-top: 1px solid rgba(200, 16, 46, 0.35);
}
#lp-a652-bottom a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-decoration: none; color: var(--lp-dim); font-size: 10px; gap: 2px;
}
#lp-a652-bottom a.active { color: var(--lp-gold-bright); }
#lp-a652-bottom .ico { font-size: 15px; line-height: 1; }
@media (max-width: 900px) {
  #lp-a652-bottom { display: flex; }
  body.lp-a652 { padding-bottom: calc(var(--lp-bottom-h) + 52px); }
}

/* Page shells */
.lp-wrap { max-width: var(--lp-max); margin: 0 auto; padding: 28px 16px 48px; }
.lp-h1 {
  font-family: var(--font-serif, var(--lp-font-serif));
  font-size: clamp(24px, 4vw, 34px); color: var(--lp-mist-light); margin: 0 0 8px; font-weight: 900;
}
.lp-sub { color: var(--lp-dim); font-size: 14px; line-height: 1.7; margin: 0 0 20px; }
.lp-banner {
  background: rgba(200, 16, 46, 0.12);
  border: 1px solid rgba(200, 16, 46, 0.35);
  border-radius: var(--lp-radius);
  padding: 12px 14px; font-size: 13px; line-height: 1.65; margin-bottom: 20px;
}
.lp-card {
  background: var(--ink-card, var(--lp-card));
  border: 1px solid var(--lp-border-gold);
  border-radius: var(--lp-radius);
  padding: 16px;
}
.lp-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 800px) { .lp-grid-2 { grid-template-columns: 1fr; } }

.lp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.lp-table th, .lp-table td { padding: 10px 8px; border-bottom: 1px solid var(--lp-border); text-align: left; }
.lp-table th { color: var(--lp-gold); font-size: 11px; letter-spacing: 0.08em; font-weight: 700; }

.lp-state { text-align: center; padding: 28px 16px; color: var(--lp-dim); font-size: 13px; }
.lp-state.error { color: #f87171; }
.lp-spinner {
  width: 22px; height: 22px; margin: 0 auto 10px;
  border: 2px solid rgba(212, 175, 55, 0.25); border-top-color: var(--lp-gold);
  border-radius: 50%; animation: lp-spin .7s linear infinite;
}
@keyframes lp-spin { to { transform: rotate(360deg); } }

.lp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 20px; }
.lp-tag {
  font-family: var(--lp-font-mono); font-size: 11px; color: var(--lp-gold);
  letter-spacing: 0.1em;
}
.lp-foot-note { font-size: 11px; color: #6b7280; margin-top: 24px; line-height: 1.7; }

/* Footer unify */
#lp-a652-footer, footer.qilin-footer.lp-footer-unified {
  margin-top: 48px; border-top: 1px solid var(--lp-border); padding: 28px 16px 20px;
  background: rgba(0, 0, 0, 0.2);
}
#lp-a652-footer .inner, footer.qilin-footer.lp-footer-unified .qilin-footer-inner {
  max-width: var(--lp-max); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 20px;
}
@media (max-width: 800px) {
  #lp-a652-footer .inner, footer.qilin-footer.lp-footer-unified .qilin-footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}
#lp-a652-footer .name { font-family: var(--lp-font-serif); color: var(--lp-mist-light); font-weight: 800; }
#lp-a652-footer .tag, footer.qilin-footer .tag { color: var(--lp-dim); font-size: 12px; line-height: 1.6; margin-top: 6px; }
#lp-a652-footer h4, footer.qilin-footer h4 { color: var(--lp-gold); font-size: 12px; letter-spacing: 0.12em; margin: 0 0 10px; }
#lp-a652-footer ul, footer.qilin-footer ul { list-style: none; padding: 0; margin: 0; }
#lp-a652-footer a, footer.qilin-footer a { color: var(--lp-mist); text-decoration: none; font-size: 13px; line-height: 1.9; }
#lp-a652-footer a:hover { color: var(--lp-gold-bright); }
#lp-a652-footer .bottom {
  max-width: var(--lp-max); margin: 18px auto 0; padding-top: 14px;
  border-top: 1px solid var(--lp-border); font-size: 12px; color: var(--lp-dim);
  display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: space-between;
}

/* Screener emphasis */
.lp-screener-hero { margin-bottom: 8px; }
.lp-screener-hero .badge {
  display: inline-block; font-family: var(--lp-font-mono); font-size: 11px;
  color: var(--lp-gold); letter-spacing: 0.2em; margin-bottom: 10px;
}
.lp-form label { display: block; font-size: 12px; color: var(--lp-dim); margin: 8px 0 4px; }
.lp-form input, .lp-form select {
  width: 100%; box-sizing: border-box; background: #0b0d12;
  border: 1px solid rgba(255, 255, 255, 0.12); color: var(--lp-mist-light);
  border-radius: 8px; padding: 10px 12px; font-size: 14px;
}
.lp-form input:focus { outline: 1px solid var(--lp-gold); border-color: var(--lp-gold); }

/* Pricing compare table */
.lp-quota-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 28px; }
.lp-quota-table th, .lp-quota-table td {
  border: 1px solid var(--lp-border); padding: 10px 12px; text-align: center;
}
.lp-quota-table th { background: rgba(212, 175, 55, 0.08); color: var(--lp-gold); }
.lp-quota-table td:first-child, .lp-quota-table th:first-child { text-align: left; color: var(--lp-mist); }
.lp-quota-table .yes { color: #86efac; }
.lp-quota-table .no { color: #6b7280; }

/* App shell readability */
body.lp-app-shell { font-size: 15px; }
body.lp-app-shell .lp-wrap { padding-top: 16px; }

/* ── A653b visual tokens ── */
.lp-same-rank-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--lp-font-mono); font-size: 11px; letter-spacing: 0.12em;
  color: #86efac; background: rgba(134, 239, 172, 0.08);
  border: 1px solid rgba(134, 239, 172, 0.35); border-radius: 999px;
  padding: 4px 10px; margin: 0 0 12px;
}
.lp-same-rank-badge::before { content: "≡"; font-weight: 900; }

.lp-sell-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0;
}
@media (max-width: 700px) { .lp-sell-panel { grid-template-columns: 1fr; } }
.lp-sell-panel .col {
  border-radius: var(--lp-radius); padding: 16px 18px; border: 1px solid var(--lp-border);
}
.lp-sell-panel .sell {
  background: rgba(212, 175, 55, 0.07); border-color: var(--lp-border-gold);
}
.lp-sell-panel .nosell {
  background: rgba(200, 16, 46, 0.08); border-color: rgba(200, 16, 46, 0.35);
}
.lp-sell-panel h3 {
  margin: 0 0 10px; font-size: 14px; font-family: var(--lp-font-serif); color: var(--lp-mist-light);
}
.lp-sell-panel ul { margin: 0; padding: 0; list-style: none; font-size: 13px; line-height: 1.85; color: var(--lp-mist); }
.lp-sell-panel .sell li::before { content: "✓ "; color: #86efac; }
.lp-sell-panel .nosell li::before { content: "✗ "; color: #f87171; }

.lp-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; }
.lp-tab {
  appearance: none; cursor: pointer;
  background: transparent; border: 1px solid var(--lp-border);
  color: var(--lp-mist); border-radius: 999px; padding: 7px 14px; font-size: 13px;
}
.lp-tab.active {
  border-color: var(--lp-gold); color: var(--lp-gold-bright);
  background: rgba(212, 175, 55, 0.1);
}

.lp-mobile-cards { display: none; }
.lp-sample-card {
  border: 1px solid var(--lp-border); border-radius: 10px;
  padding: 12px 14px; margin-bottom: 10px; background: rgba(0,0,0,0.18);
}
.lp-sample-card .row1 {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
}
.lp-sample-card .code { font-family: var(--lp-font-mono); font-size: 16px; font-weight: 700; color: var(--lp-mist-light); }
.lp-sample-card .name { font-size: 14px; color: var(--lp-mist); }
.lp-sample-card .meta { font-size: 12px; color: var(--lp-dim); margin-top: 6px; display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 800px) {
  .lp-table-desktop { display: none; }
  .lp-mobile-cards { display: block; }
}

.lp-legal-pending {
  background: rgba(232, 197, 71, 0.12);
  border: 1px dashed rgba(232, 197, 71, 0.55);
  border-radius: var(--lp-radius);
  padding: 12px 14px; font-size: 13px; line-height: 1.7; color: #e8d9a8; margin-bottom: 20px;
}
