:root {
  --color-ink-black: #1a1a1a;
  --color-paper-white: #fff;
  --color-graphite: #6a6a6a;
  --color-warm-charcoal: #4d3f32;
  --color-fog: #f6f6f6;
  --color-linen: #ececec;
  --color-hairline: #e3e3e3;
  --color-pebble: #8d8d8d;
  --color-sage: #547e69;
  --color-mint-wash: #f1fcf6;
  --font-crimson-pro: "Crimson Pro", Georgia, serif;
  --font-inter: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-georgia: Georgia, serif;
  --text-caption: 11px;
  --text-body-lg: 16px;
  --text-heading-sm: 26px;
  --text-heading: 32px;
  --page-max-width: 1080px;
  --section-gap: 80px;
  --shadow-sm: rgba(0, 0, 0, .06) 0 2px 6px 0;
  --shadow-subtle: rgba(0, 0, 0, .03) 0 1px 3px 0, rgba(0, 0, 0, .03) 0 5px 5px 0, rgba(0, 0, 0, .02) 0 10px 6px 0;
}

* { box-sizing: border-box; }
html { background: var(--color-paper-white); color: var(--color-ink-black); font-family: var(--font-inter); }
body { margin: 0; min-width: 320px; font-size: 15px; line-height: 1.55; }
a { color: inherit; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--color-sage); outline-offset: 3px; }
.page-shell { width: min(calc(100% - 48px), var(--page-max-width)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--color-fog); background: var(--color-paper-white); }
.nav-shell { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { font-size: 16px; font-weight: 500; text-decoration: none; letter-spacing: -.02em; }
.nav-links { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.nav-links a { text-decoration: none; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--color-sage); }
.language-link { border-left: 1px solid var(--color-hairline); padding-left: 16px; }
.sandbox-banner { padding: 8px 16px; background: var(--color-mint-wash); color: var(--color-sage); text-align: center; font-size: 12px; }
.hero { padding: 104px 0 80px; text-align: center; }
h1, h2, h3 { margin: 0; font-family: var(--font-crimson-pro); font-weight: 300; letter-spacing: -.015em; line-height: 1; }
h1 { font-size: clamp(42px, 7vw, 72px); }
h2 { font-size: var(--text-heading); }
h3 { font-size: var(--text-heading-sm); }
.hero-copy { max-width: 600px; margin: 24px auto 32px; color: var(--color-graphite); font-size: 16px; }
.eyebrow { margin: 0 0 16px; color: var(--color-sage); font-size: var(--text-caption); letter-spacing: .08em; text-transform: uppercase; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; border-radius: 8px; padding: 8px 16px; font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; transition: background .16s ease, border-color .16s ease, color .16s ease; }
.button-ghost { border: 1px solid transparent; }
.button-ghost:hover { background: var(--color-fog); }
.button-outline { border: 1px solid var(--color-ink-black); background: var(--color-paper-white); color: var(--color-ink-black); }
.button-outline:hover { border-color: var(--color-sage); color: var(--color-sage); }
.full-width { width: 100%; }
.preview-section { padding-bottom: var(--section-gap); }
.product-preview { overflow: hidden; border: 1px solid var(--color-hairline); border-radius: 8px; box-shadow: var(--shadow-subtle); }
.preview-chrome { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--color-hairline); color: var(--color-pebble); font-size: 12px; }
.preview-chrome span { width: 7px; height: 7px; border: 1px solid var(--color-pebble); border-radius: 50%; }
.preview-chrome small { margin-left: 12px; }
.preview-body { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; min-height: 300px; padding: 56px; background: var(--color-fog); }
.preview-copy { align-self: center; display: grid; gap: 12px; max-width: 300px; }
.preview-copy strong { font-family: var(--font-crimson-pro); font-size: 32px; font-weight: 300; line-height: 1; }
.preview-copy small { color: var(--color-graphite); }
.sage-line { width: 42px; height: 2px; background: var(--color-sage); }
.preview-document { position: relative; align-self: center; justify-self: center; width: min(100%, 320px); height: 190px; padding: 38px 36px; border: 1px solid var(--color-hairline); border-radius: 8px; background: var(--color-paper-white); box-shadow: var(--shadow-sm); }
.preview-document div { width: 100%; height: 6px; margin-bottom: 13px; background: var(--color-linen); }
.preview-document .short { width: 62%; }
.preview-document span { position: absolute; right: 18px; bottom: 16px; color: var(--color-sage); font-size: 11px; }
.content-section { padding: var(--section-gap) 0; }
.section-fog { background: var(--color-fog); }
.section-heading { max-width: 620px; margin-bottom: 32px; }
.section-heading h2 { margin-bottom: 16px; }
.section-heading p:last-child { color: var(--color-graphite); }
.editorial-card, .feature-card, .viewer-panel, .sign-panel { border-radius: 12px; background: var(--color-paper-white); box-shadow: var(--shadow-subtle); }
.upload-form { display: grid; gap: 24px; padding: 24px; }
.drop-zone { display: flex; align-items: center; gap: 16px; min-height: 104px; padding: 20px; border: 1px dashed var(--color-pebble); border-radius: 8px; cursor: pointer; }
.drop-zone:hover { border-color: var(--color-sage); background: var(--color-mint-wash); }
.drop-zone input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.drop-mark { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--color-hairline); border-radius: 50%; color: var(--color-sage); font-size: 24px; line-height: 1; }
.drop-zone span:nth-child(2) { display: grid; gap: 4px; }
.drop-zone small, .muted-copy, .viewer-note { color: var(--color-graphite); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
label { display: grid; gap: 8px; color: var(--color-graphite); font-size: 13px; }
input[type="text"], input[type="email"], select { width: 100%; min-height: 44px; border: 1px solid var(--color-hairline); border-radius: 8px; padding: 8px 12px; background: var(--color-paper-white); color: var(--color-ink-black); }
input[type="text"]:focus, input[type="email"]:focus, select:focus { border-color: var(--color-sage); outline: none; }
.check-row { display: flex; grid-template-columns: none; align-items: flex-start; gap: 10px; color: var(--color-ink-black); }
.check-row input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--color-sage); }
.form-result { padding: 12px; border-left: 2px solid var(--color-sage); background: var(--color-mint-wash); }
.form-result a { color: var(--color-sage); overflow-wrap: anywhere; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feature-card { min-height: 220px; padding: 24px; }
.feature-index { margin: 0 0 44px; color: var(--color-sage); font-size: 12px; }
.feature-card h3 { margin-bottom: 12px; }
.feature-card p:last-child { margin: 0; color: var(--color-graphite); }
.site-footer { border-top: 1px solid var(--color-fog); padding: 24px 0; color: var(--color-graphite); font-size: 12px; }
.footer-grid { display: flex; justify-content: space-between; gap: 16px; }
.footer-grid a { text-decoration: none; }
.document-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 72px 0 40px; }
.document-header h1 { font-size: clamp(34px, 5vw, 54px); }
.status-pill { display: inline-flex; align-items: center; min-height: 28px; border: 1px solid var(--color-sage); border-radius: 9999px; padding: 4px 10px; color: var(--color-sage); font-size: 12px; font-weight: 500; white-space: nowrap; }
.document-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .7fr); gap: 24px; padding-bottom: var(--section-gap); }
.viewer-panel { min-width: 0; padding: 16px; }
.viewer-toolbar { display: flex; justify-content: space-between; gap: 12px; padding: 8px 8px 16px; color: var(--color-graphite); font-size: 12px; }
.hash-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82em; }
.pdf-frame { display: block; width: 100%; min-height: 680px; border: 1px solid var(--color-hairline); border-radius: 8px; background: var(--color-fog); }
.viewer-note { margin: 12px 8px 0; font-size: 12px; }
.sign-panel { align-self: start; padding: 24px; }
.sign-panel-heading { margin-bottom: 24px; }
.sign-panel > p { color: var(--color-graphite); }
.claim-list { display: grid; gap: 8px; margin: 20px 0 24px; padding: 0; list-style: none; }
.claim-list li { border-bottom: 1px solid var(--color-fog); padding: 8px 0; font-size: 13px; }
.consent-row { margin-bottom: 20px; }
.wallet-panel { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--color-hairline); text-align: center; }
.status-line { color: var(--color-graphite); font-size: 13px; }
.qr-wrap { min-height: 220px; margin: 16px auto; }
.qr-wrap svg { max-width: 220px; height: auto; }
.level-notice { margin-top: 24px; border-top: 1px solid var(--color-hairline); padding-top: 16px; font-size: 12px; }
.owner-actions { margin-top: 24px; border-top: 1px solid var(--color-hairline); padding-top: 16px; }
.text-button { border: 0; padding: 0; background: transparent; color: var(--color-graphite); font-size: 12px; text-decoration: underline; cursor: pointer; }
.narrow-page { max-width: 760px; }
.verify-card { padding: 24px; }
.detail-list { display: grid; gap: 16px; margin: 0; }
.detail-list div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--color-fog); padding-bottom: 12px; }
.detail-list dt { color: var(--color-graphite); }
.detail-list dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.legal-page .editorial-card { padding: 32px; }
.human-note { color: var(--color-sage); font-size: 13px; }
@media (max-width: 760px) {
  .page-shell { width: min(calc(100% - 32px), var(--page-max-width)); }
  .nav-shell { min-height: 64px; }
  .nav-links a:not(.language-link) { display: none; }
  .hero { padding-top: 72px; }
  .preview-body, .document-layout { grid-template-columns: 1fr; }
  .preview-body { padding: 32px; }
  .document-header { align-items: flex-start; flex-direction: column; padding-top: 48px; }
  .form-grid, .feature-grid { grid-template-columns: 1fr; }
  .pdf-frame { min-height: 560px; }
  .footer-grid { align-items: flex-start; flex-direction: column; }
}
