:root {
  --ink: #111827;
  --muted: #667085;
  --line: #e5e7eb;
  --soft: #f5f7f8;
  --panel: #ffffff;
  --green: #10a36a;
  --green-dark: #087a50;
  --green-soft: #e7f7f0;
  --blue: #2675e2;
  --shadow: 0 18px 50px rgba(17, 24, 39, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font:inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.landingHeader{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 4vw;border-bottom:1px solid #e5e7eb;background:#fff;position:sticky;top:0;z-index:50;font-family:Inter,system-ui,"Segoe UI",Roboto,"Noto Sans SC","Microsoft YaHei",Arial,sans-serif}.landingBrand{display:flex;align-items:center;width:auto;height:60px;gap:11px;flex:0 0 auto;color:#0f172a;text-decoration:none}.landingBrand>img{width:48px;height:48px;object-fit:contain;flex:0 0 48px}.landingBrand>.brandCopy{display:flex;align-items:flex-start;justify-content:center;flex-direction:column}.landingBrand .brandCopy b{font-size:16.5px;line-height:1.15;font-weight:900;letter-spacing:.005em;white-space:nowrap}.landingBrand .brandCopy small{font-size:9.9px;line-height:1.2;color:#64748b;margin-top:4px;white-space:nowrap}.landingHeader .serviceNav{display:flex;flex:1;justify-content:center;gap:17px;margin:0 22px}.landingHeader .serviceNav a{display:flex;flex-direction:column;color:#0f172a;text-decoration:none;font-size:12.1px;font-weight:400;line-height:1.15;text-align:center;white-space:nowrap}.landingHeader .serviceNav a.active{color:#0a7a71}.landingHeader .serviceNav small{font-size:8.8px;color:#64748b;margin-top:3px}.landingTools.headerMemberActions{display:flex;gap:8px;flex:0 0 auto}.landingTools.headerMemberActions a{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;padding:7px 10px;border:1px solid #e5e7eb;border-radius:999px;line-height:1.05;text-decoration:none;font-size:9.9px}.landingTools.headerMemberActions a small{display:block;margin-top:3px;font-size:7.7px;line-height:1;color:inherit;opacity:.82;white-space:nowrap}.landingTools .joinPlanButton{background:#03a49c;color:#fff;border-color:#03a49c}.landingTools .memberLoginButton{background:#fff;color:#0a7a71;border-color:#b7e2cf}

.page { width: min(1200px, calc(100% - 48px)); margin: 0 auto; padding: 24px 0 40px; }
.hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, .68fr); gap: 56px; min-height: 390px; }
.passport-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.eyebrow { color: var(--muted); font-size:14.3px; font-weight: 700; letter-spacing: .01em; }
.did { margin-top: 8px; max-width: 780px; font-size:16.5px; line-height: 1.5; word-break: break-all; }
.verified { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; color: #08724c; background: var(--green-soft); border-radius: 999px; font-size:13.2px; font-weight: 750; }
.verified i { width: 15px; height: 15px; display: grid; place-items: center; color: white; background: var(--green); border-radius: 50%; font-style: normal; font-size:10px; }
.signature { margin-top: 14px; color: #98a2b3; font:10px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; word-spacing: .24em; }

.identity-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 30px 36px; margin-top: 34px; }
.datum { min-width: 0; }
.datum.wide { grid-column: span 2; }
.datum-label { display: flex; gap: 7px; align-items: center; margin-bottom: 8px; color: var(--muted); font-size:13.2px; font-weight: 650; }
.info-dot { width: 15px; height: 15px; display: inline-grid; place-items: center; border: 1px solid #b8c0ca; border-radius: 50%; font-size:9px; cursor: help; }
.datum-value { font-size:26.4px; line-height: 1.22; font-weight: 650; letter-spacing: -.025em; overflow-wrap: anywhere; }
.datum-value.compact { font-size:17.6px; line-height: 1.5; letter-spacing: 0; }
.datum-sub { margin-top: 3px; color: var(--muted); font-size:14.3px; }
.category-chip { display: inline-flex; padding: 5px 10px; color: #fff; background: var(--ink); border-radius: 6px; font-size:14.3px; font-weight: 750; letter-spacing: .04em; }

.passport-card { align-self: start; min-height: 342px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); box-shadow: var(--shadow); }
.qr { width: 150px; height: 150px; display:block; padding:7px; background:#fff; border:1px solid var(--line); border-radius:9px; transition:transform .18s, box-shadow .18s; }
.qr:hover { transform:scale(1.025); box-shadow:0 10px 24px rgba(15,23,42,.12); }
.qr img { width:100%; height:100%; display:block; object-fit:contain; image-rendering:pixelated; }
.qr-hint { margin-top:9px; color:var(--muted); font-size:11px; }
.card-title { margin-top: 18px; font-size:15.4px; font-weight: 750; }
.card-sub { margin-top: 6px; color: var(--muted); font-size:13.2px; text-align: center; }
.view-more { width: 100%; margin-top: 22px; padding: 12px 16px; border: 1px solid var(--ink); border-radius: 8px; background: var(--ink); color: white; font-weight: 700; cursor: pointer; transition: transform .18s, background .18s; }
.view-more:hover { transform: translateY(-1px); background: #303846; }

.summary { margin-top: 38px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 22px 0 17px; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin: 0; font-size:18.7px; letter-spacing: -.01em; }
.section-heading p { margin: 0; color: var(--muted); font-size:13.2px; }
.metrics { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 22px; padding: 26px 0 38px; }
.metric { min-height: 214px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.metric h3 { margin: 0; font-size:14.3px; }
.metric-description { min-height: 42px; margin: 8px 0 20px; color: var(--muted); font-size:12.1px; line-height: 1.55; }
.big-number { margin-top: 34px; font-size:41.8px; font-weight: 700; letter-spacing: -.05em; }
.big-number small { margin-left: 6px; color: var(--muted); font-size:15.4px; font-weight: 600; letter-spacing: 0; }
.meter { height: 7px; margin-top: 18px; overflow: hidden; background: #edf0f2; border-radius: 99px; }
.meter span { display: block; height: 100%; background: var(--green); border-radius: inherit; }
.donut-wrap { display: flex; align-items: center; gap: 22px; }
.donut { --p: 60; width: 96px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--green) calc(var(--p)*1%), #edf0f2 0); position: relative; }
.donut::before { content:""; position:absolute; inset: 12px; border-radius:50%; background:#fff; }
.donut strong { z-index:1; font-size:19.8px; }
.legend { display: grid; gap: 7px; color: var(--muted); font-size:12.1px; }
.legend span::before { content:""; width: 7px; height: 7px; margin-right: 7px; display:inline-block; border-radius:50%; background: var(--green); }
.materials { display: grid; gap: 13px; }
.material-row { display: grid; grid-template-columns: 58px 1fr 36px; gap: 8px; align-items: center; font-size:11px; font-weight: 750; }
.material-row .bar { height: 6px; background: #edf0f2; border-radius: 99px; overflow: hidden; }
.material-row .bar i { height: 100%; display: block; background: var(--blue); border-radius: inherit; }
.material-row b { text-align: right; }

.details { padding-top: 16px; scroll-margin-top: 76px; animation: details-in .34s ease both; }
@keyframes details-in { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:none; } }
.details-toolbar { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 0; }
.details-toolbar h2 { margin: 0; font-size:28.6px; letter-spacing: -.04em; }
.tools { display: flex; gap: 8px; }
.search { width: min(320px, 34vw); padding: 10px 13px; border: 1px solid var(--line); border-radius: 8px; outline: 0; }
.search:focus { border-color: #8aa6cf; box-shadow: 0 0 0 3px #edf4ff; }
.ghost { padding: 10px 13px; border: 1px solid var(--line); border-radius: 8px; background:#fff; cursor:pointer; font-size:13.2px; font-weight:700; }
.passport-tabs { display:flex; gap:6px; overflow-x:auto; padding:7px; margin:6px 0 20px; border:1px solid var(--line); border-radius:12px; background:var(--soft); scrollbar-width:thin; }
.passport-tab { flex:0 0 auto; display:flex; align-items:center; gap:9px; min-height:44px; padding:9px 13px; border:1px solid transparent; border-radius:8px; color:var(--muted); background:transparent; cursor:pointer; font-size:13.2px; font-weight:700; white-space:nowrap; transition:background .18s,color .18s,box-shadow .18s; }
.passport-tab small { min-width:20px; padding:2px 5px; border-radius:999px; color:inherit; background:rgba(148,163,184,.14); font-size:9.9px; text-align:center; }
.passport-tab:hover { color:var(--ink); background:rgba(255,255,255,.72); }
.passport-tab.active { color:var(--ink); background:var(--panel); border-color:var(--line); box-shadow:0 3px 10px rgba(15,23,42,.06); }
.groups { min-height:300px; }
.group { overflow:hidden; border:1px solid var(--line); border-radius:14px; background:var(--panel); }
.group-heading { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:20px 22px; border-bottom:1px solid var(--line); }
.group-heading > div { display:flex; align-items:center; gap:12px; }
.group-index { color: var(--muted); font-size:12.1px; font-weight: 750; }
.group-title { margin:0; font-size:18.7px; font-weight: 700; }
.group-count { color: var(--muted); font-size:12.1px; }
.group-content { display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap:1px; background:var(--line); }
.field { min-height: 82px; padding: 14px 16px; background:#fff; }
.field-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.field-name { color: var(--muted); font-size:11px; font-weight:700; letter-spacing:.02em; line-height:1.4; }
.field-actions { display:flex; align-items:center; gap:6px; flex:0 0 auto; }
.requirement-badge { padding:3px 6px; border-radius:999px; font-size:8.8px; font-weight:800; white-space:nowrap; }
.requirement-badge.mandatory, .tip-status.mandatory { color:#08724c; background:#e7f7f0; }
.requirement-badge.voluntary, .tip-status.voluntary { color:#265ea8; background:#eaf2ff; }
.requirement-badge.conditional, .tip-status.conditional { color:#875c08; background:#fff5d9; }
.requirement-badge.unspecified, .tip-status.unspecified { color:var(--muted); background:var(--soft); }
.field-info { width:20px; height:20px; display:grid; place-items:center; padding:0; border:1px solid #bdc5cf; border-radius:50%; color:var(--muted); background:transparent; font-size:10px; font-weight:800; font-style:normal; cursor:pointer; }
.field-info:hover, .field-info:focus-visible { color:var(--ink); border-color:var(--ink); outline:none; }
.field-value { margin-top:7px; font-size:15.4px; font-weight:600; line-height:1.5; overflow-wrap:anywhere; }
.field-value a { color: #1668c7; }
.hidden { display:none !important; }

.footer { margin-top: 54px; padding: 28px 0 12px; border-top: 1px solid var(--line); color: var(--muted); font-size:11px; line-height: 1.6; }
.footer-row { display:flex; justify-content:space-between; gap:18px; align-items:end; margin-top:18px; }
.footer img { width: 44px; opacity:.7; }

.modal { position:fixed; inset:0; z-index:100; display:none; place-items:center; padding:24px; background:rgba(15,23,42,.56); backdrop-filter:blur(8px); }
.modal.open { display:grid; }
.modal-card { width:min(840px,100%); max-height:86vh; display:flex; flex-direction:column; border-radius:16px; background:#fff; box-shadow:0 28px 80px rgba(0,0,0,.22); }
.modal-head { display:flex; align-items:center; justify-content:space-between; padding:16px 20px; border-bottom:1px solid var(--line); font-weight:750; }
.modal-close { border:0;background:transparent;font-size:24px;cursor:pointer; }
.modal pre { margin:0; padding:22px; overflow:auto; color:#d6e1ff; background:#101827; font:11px/1.65 ui-monospace,SFMono-Regular,Menlo,monospace; }
.modal-open { overflow:hidden; }
.tip-modal-card { width:min(940px,100%); }
.tip-body { overflow:auto; padding:22px; }
.tip-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1px; overflow:hidden; margin-bottom:12px; border:1px solid var(--line); border-radius:10px; background:var(--line); }
.tip-summary > div { display:grid; gap:5px; padding:13px 15px; background:var(--panel); }
.tip-summary span { color:var(--muted); font-size:9.9px; font-weight:750; text-transform:uppercase; letter-spacing:.06em; }
.tip-summary strong { font-size:13.2px; line-height:1.45; }
.tip-status { width:max-content; padding:4px 8px; border-radius:999px; }
.tip-legend { margin-bottom:14px; padding:10px 12px; border-radius:8px; color:var(--muted); background:var(--soft); font-size:11px; line-height:1.5; }
.tip-section { padding:15px 0; border-bottom:1px solid var(--line); }
.tip-section:last-child { border-bottom:0; }
.tip-section h4 { margin:0 0 8px; color:var(--muted); font-size:11px; letter-spacing:.025em; }
.tip-section > div { font-size:13.2px; line-height:1.65; }
.tip-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 24px; }
.granularity-table { display:grid; grid-template-columns:repeat(3,1fr); gap:1px; overflow:hidden; border:1px solid var(--line); border-radius:8px; background:var(--line); }
.granularity-table > div { display:grid; gap:5px; padding:12px; background:var(--panel); text-align:center; }
.granularity-table span { color:var(--muted); font-size:9.9px; text-transform:uppercase; }
.granularity-table b { font-size:14.3px; }
.granularity-note { margin:8px 0 0; color:var(--muted); font-size:9.9px; }

body.dark { --ink:#f6f7f9; --muted:#98a2b3; --line:#303744; --panel:#181e27; --soft:#11161e; background:#11161e; }
body.dark .ghost, body.dark .search { color:var(--ink); background:#181e27; }
body.dark .donut::before, body.dark .field { background:#181e27; }
body.dark .passport-tab:hover { background:#202733; }
body.dark .modal-card { background:#181e27; }

@media(max-width:1180px){.landingHeader .serviceNav{display:none}}
@media(max-width:680px){.landingHeader{padding:0 16px}.landingBrand{height:56px;gap:8px}.landingBrand>img{width:42px;height:42px;flex-basis:42px}.landingBrand .brandCopy b{font-size:13.2px}.landingBrand .brandCopy small{display:none}.landingTools.headerMemberActions{gap:5px}.landingTools.headerMemberActions a{padding:6px 7px;font-size:8.8px}.landingTools.headerMemberActions a small{font-size:6.6px}}

@media (max-width: 850px) {
  .page { width:min(100% - 32px, 680px); padding-top:24px; }
  .hero { grid-template-columns:1fr; gap:28px; }
  .identity-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .passport-card { min-height:auto; }
  .metrics { grid-template-columns:1fr; }
  .metric { min-height:0; }
  .metric-description { min-height:0; }
  .details-toolbar { align-items:flex-start; flex-direction:column; }
  .tools { width:100%; flex-wrap:wrap; }
  .search { width:100%; }
}
@media (max-width: 520px) {
  .page { width:calc(100% - 24px); }
  .identity-grid { grid-template-columns:1fr 1fr; gap:24px 18px; }
  .datum.wide { grid-column:1/-1; }
  .datum-value { font-size:22px; }
  .passport-tabs { margin-inline:-2px; }
  .group-content { grid-template-columns:1fr; }
  .group-heading { align-items:flex-start; padding:17px 16px; }
  .tip-summary, .tip-grid { grid-template-columns:1fr; }
  .tip-body { padding:15px; }
  .footer-row { align-items:flex-start; flex-direction:column; }
}

@media print {
  .landingHeader, .passport-card, .details-toolbar .tools { display:none; }
  .page { width:100%; padding:16px; }
  .hero { display:block; min-height:0; }
  .details[hidden] { display:block; }
  .passport-tabs { display:none; }
  .group { display:block !important; margin-bottom:16px; }
  .metric, .field { break-inside:avoid; }
}
