/* Verified Custody — shared tokens + base. Page-specific CSS lives in each page's <style>. */
:root {
  --bg: #F3F1EA;
  --surface: #FFFFFF;
  --ink: #12201A;
  --muted: #5E6B64;
  --line: #DAD6CA;
  --accent: #1F6B4A;
  --accent-soft: #DCEBE2;
  --accent-deep: #174F37;
  --mint: #9FD9B9;
  --warn: #B5541B;
  --warn-soft: #F6E3D6;
  --on-dark: #F3F1EA;
  --on-dark-muted: #B9C4BE;
  --on-dark-faint: #8FA098;
  --dark-line: rgba(243, 241, 234, 0.15);

  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --serif: "Fraunces", Georgia, serif;

  --gutter: clamp(16px, 5vw, 80px);
  --section: clamp(56px, 9vw, 112px);
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { padding-inline: var(--gutter); max-width: 1440px; margin-inline: auto; }
.section { padding-block: var(--section); }
.dark { background: var(--ink); color: var(--on-dark); }

.serif { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }
.h1 { font-size: clamp(42px, 6vw, 72px); }
.h2 { font-size: clamp(30px, 4vw, 52px); }
.h3 { font-size: clamp(24px, 2.4vw, 32px); }
.lede { font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); max-width: 36em; }
.dark .lede { color: var(--on-dark-muted); }
.eyebrow { font: 500 12px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.dark .eyebrow { color: var(--mint); }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border-radius: 10px; border: 1.5px solid transparent; font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 12px rgba(31, 107, 74, .25); }
.btn-primary:hover { background: var(--accent-deep); }
.btn-dark { background: var(--ink); color: var(--on-dark); }
.btn-outline { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn-mint { background: var(--mint); color: var(--ink); }
.btn-ghost-dark { border-color: rgba(243, 241, 234, .25); color: var(--on-dark); }
.btn-block { width: 100%; }

/* Badge (same component as the drum label) */
.badge { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.badge-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: var(--accent); color: #fff; flex: none; }
.badge-mark svg { width: 18px; height: 18px; }
.badge-word { font: 600 21px/1 var(--serif); letter-spacing: -0.01em; }

/* Nav */
.nav { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.nav-links { display: flex; gap: 32px; font-weight: 500; font-size: 15px; }
.nav-links a { text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-actions .btn { min-height: 42px; padding: 0 16px; font-size: 14px; }
.nav-signin { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-menu { display: none; }
@media (max-width: 960px) {
  .nav-links, .nav-signin, .nav-brands { display: none; }
  .nav-menu { display: block; position: relative; }
  .nav-menu summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; }
  .nav-menu summary::-webkit-details-marker { display: none; }
  .nav-menu[open] .nav-sheet { display: flex; }
  .nav-sheet { display: none; position: absolute; right: 0; top: 52px; flex-direction: column; gap: 4px; min-width: 220px; padding: 8px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(18, 32, 26, .12); }
  .nav-sheet a { padding: 12px; text-decoration: none; font-weight: 500; border-radius: 8px; }
  .nav-sheet a:hover { background: var(--bg); }
}
@media (max-width: 520px) {
  .nav-actions .btn-primary span { display: none; }  /* icon-only check button on small phones */
  .badge-word { font-size: 18px; }
}

/* Footer */
.footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 40px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; color: var(--muted); }
.footer-links a { text-decoration: none; }

/* Floating way back to the demo overview (every page except index.html) */
.proto-pill { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px 9px 12px; border: 1px solid rgba(243, 241, 234, .22); border-radius: 999px; background: var(--ink); color: var(--on-dark); text-decoration: none;
  font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 8px 24px rgba(18, 32, 26, .28); transition: transform .15s; }
.proto-pill::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 19-7-7 7-7'/%3E%3Cpath d='M19 12H5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 19-7-7 7-7'/%3E%3Cpath d='M19 12H5'/%3E%3C/svg%3E") center / contain no-repeat; transition: translate .15s; }
.proto-pill:hover::before { translate: -2px 0; }
.proto-pill span { color: var(--on-dark-faint); text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 13px; }
.proto-pill:hover { transform: translateY(-2px); }
@media (max-width: 760px) { body:has(.bar:not([hidden])) .proto-pill { bottom: calc(88px + env(safe-area-inset-bottom)); } } /* verify.html mobile action bar */
@media print { .proto-pill { display: none; } }
.framed .proto-pill { display: none; } /* shown inside the field app walkthrough */
.framed a[href]:not([href^="#"]) { cursor: default; }
