/* DarkProof site, new style: the shell every page shares. The floating menu, the footer, the one narrow column, and
   the parts the text pages are made of (page head, sections, folds, steps, long documents). The capsule buttons and
   the other pieces are in pieces.css. Every class here starts with "s-". */

/* The column: everything sits on one axis. Messages and buttons are capped at 400px, text at 560px. */
.s-col, .s-thread { width: 100%; max-width: 400px; }

/* ---- Menu: the name, the six pages, and Download. The same on every page, and it needs no script. The pages are
        words, large and near white, each with a hover and the page you are on lit: they are the way around the
        site, and they are not more grey buttons. Download is the one white capsule in the bar, as the main action
        is white on every page. On a phone the pages are behind one menu button (below). ---- */
.s-nav { position: fixed; top: var(--sp-75); left: 0; right: 0; z-index: 50; display: flex; justify-content: center; padding: 0 var(--sp-75); pointer-events: none; }
.s-bar {
  display: flex; align-items: center; gap: var(--sp-100); width: 100%; max-width: 920px; min-height: 56px;
  padding: var(--sp-50) var(--sp-100) var(--sp-50) var(--sp-200); border-radius: var(--r-xl); background: rgba(36, 36, 36, 0.92);
  -webkit-backdrop-filter: blur(40px); backdrop-filter: blur(40px); pointer-events: auto;
}
.s-brand { position: relative; display: inline-flex; align-items: center; gap: var(--sp-75); min-height: 40px; margin-right: auto; font-size: 18px; line-height: 28px; text-decoration: none; transition: opacity 300ms var(--ease); }
.s-brand::before { content: ""; position: absolute; inset: -2px -8px; }
.s-brand .dots { --dot: 1px; --pitch: 3px; }
.s-brand:hover { opacity: 0.7; }
.s-links { display: flex; align-items: center; gap: var(--sp-25); min-width: 0; }
.s-links a { position: relative; display: inline-flex; align-items: center; flex: none; height: 40px; padding: 0 var(--sp-100); border-radius: var(--r-full); font-size: 14.5px; line-height: 1; font-weight: 500; letter-spacing: -0.005em; color: #EDEDED; white-space: nowrap; text-decoration: none; transition: color 200ms var(--ease), background-color 200ms var(--ease); }
/* 40px to look at, 44px to hit */
.s-links a::before { content: ""; position: absolute; inset: -2px 0; }
.s-links a:hover { color: var(--fg); background: rgba(255, 255, 255, 0.1); }
.s-links a[aria-current="page"] { color: var(--fg); background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.s-links a:focus-visible { outline: 2px solid var(--fg); outline-offset: -2px; border-radius: var(--r-full); }
.s-dl { flex: none; height: 36px; padding: 0 var(--sp-200); font-size: 14px; }
.s-dl:focus-visible { outline-offset: 2px; }
/* A screen too narrow for one row, in a browser that can't open the menu below: the pages go on a second row that
   can be swiped sideways, fading out at its right edge, and the page you are on comes first. */
@media (max-width: 899px) {
  .s-bar { flex-wrap: wrap; row-gap: 0; padding-bottom: 0; }
  .s-links { order: 3; flex: 0 0 calc(100% + var(--sp-200) + var(--sp-100)); margin: 0 calc(var(--sp-100) * -1) 0 calc(var(--sp-200) * -1); padding: 6px var(--sp-500) 10px var(--sp-200); overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); }
  .s-links::-webkit-scrollbar { display: none; }
  .s-links a[aria-current="page"] { order: -1; }
}

/* ---- The phone's menu: one button, and the bar unrolls into all the pages. No script: the button names the sheet
        (popovertarget) and the browser opens and closes it, also on a tap beside it and on Esc. The sheet lies
        exactly over the bar and its first row repeats the bar, so what the eye sees is the bar growing downward
        (the idea of a "morphing popover", as in Motion Primitives, done in plain CSS): the sheet is cut down to
        the bar's height and the cut opens; the two lines of the button turn into a cross in place; the pages
        come up one after another; the page behind dims and blurs. With "reduce motion" it just appears.
        All of it is inside @supports, so a browser that can't open the sheet keeps the row of chips above. ---- */
/* (.s-nav in front: the capsule's own "display" in pieces.css would win otherwise, and the button would show on a computer too) */
.s-nav .s-menu-btn, .s-menu { display: none; }
.s-burger { position: relative; display: block; flex: none; width: 18px; height: 16px; }
.s-burger i { position: absolute; left: 0; right: 0; height: 1.5px; border-radius: 1px; background: currentColor; transition: transform 420ms cubic-bezier(0.23, 1, 0.32, 1); }
.s-burger i:first-child { top: 4.5px; }
.s-burger i:last-child { top: 10px; }
@supports selector(:popover-open) {
  @media (max-width: 899px) {
    .s-bar { flex-wrap: nowrap; padding-bottom: var(--sp-50); }
    .s-links { display: none; }
    /* (.s-nav in front: the chip's own size in pieces.css would win otherwise) */
    .s-nav .s-menu-btn { display: inline-flex; flex: none; width: 38px; height: 38px; padding: 0; color: var(--fg); }
    .s-nav .s-menu-btn::before { inset: -3px; }
    .s-menu {
      position: fixed; inset: var(--sp-75) var(--sp-75) auto var(--sp-75); width: auto; max-width: 480px; height: auto; margin: 0 0 0 auto; padding: var(--sp-50) var(--sp-100) var(--sp-100) var(--sp-200); border: 0; border-radius: var(--r-xl);
      overflow: hidden; color: var(--fg); background: rgba(36, 36, 36, 0.97); -webkit-backdrop-filter: blur(40px); backdrop-filter: blur(40px);
      box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.95), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
      clip-path: inset(0 0 calc(100% - 56px) 0 round 12px);
      transition: clip-path 460ms cubic-bezier(0.23, 1, 0.32, 1), display 460ms, overlay 460ms; transition-behavior: allow-discrete;
    }
    .s-menu:popover-open { display: block; clip-path: inset(0 0 0 0 round 12px); }
    @starting-style { .s-menu:popover-open { clip-path: inset(0 0 calc(100% - 56px) 0 round 12px); } }
    .s-menu::backdrop { background-color: rgba(0, 0, 0, 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); transition: background-color 460ms cubic-bezier(0.22, 1, 0.36, 1), -webkit-backdrop-filter 460ms cubic-bezier(0.22, 1, 0.36, 1), backdrop-filter 460ms cubic-bezier(0.22, 1, 0.36, 1), display 460ms, overlay 460ms; transition-behavior: allow-discrete; }
    .s-menu:popover-open::backdrop { background-color: rgba(0, 0, 0, 0.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
    @starting-style { .s-menu:popover-open::backdrop { background-color: rgba(0, 0, 0, 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); } }
    /* The first row is the bar again: the name, Download, and the button, now a cross */
    .s-menu-top { display: flex; align-items: center; gap: var(--sp-100); min-height: 48px; }
    .s-menu:popover-open .s-menu-x .s-burger i:first-child { transform: translateY(2.75px) rotate(45deg); }
    .s-menu:popover-open .s-menu-x .s-burger i:last-child { transform: translateY(-2.75px) rotate(-45deg); }
    @starting-style { .s-menu:popover-open .s-menu-x .s-burger i:first-child, .s-menu:popover-open .s-menu-x .s-burger i:last-child { transform: none; } }
    /* The pages: large, one under another; the page you are on is lit */
    .s-menu-list { display: grid; gap: var(--sp-25); margin: var(--sp-75) 0 0 calc(var(--sp-100) * -1); padding-top: var(--sp-75); border-top: 1px solid rgba(255, 255, 255, 0.08); }
    .s-menu-list a {
      display: flex; align-items: center; min-height: 52px; padding: 0 var(--sp-200); border-radius: var(--r-xl); font-size: 18px; line-height: 1; font-weight: 500; letter-spacing: -0.01em; color: #F2F2F2; text-decoration: none;
      opacity: 0; transform: translateY(10px);
      transition: opacity 320ms cubic-bezier(0.22, 1, 0.36, 1), transform 460ms cubic-bezier(0.23, 1, 0.32, 1), background-color 200ms cubic-bezier(0.22, 1, 0.36, 1); transition-delay: var(--d, 0ms), var(--d, 0ms), 0ms;
    }
    .s-menu-list a:hover, .s-menu-list a:active { background: rgba(255, 255, 255, 0.08); color: var(--fg); }
    .s-menu-list a[aria-current="page"] { color: var(--fg); background: rgba(255, 255, 255, 0.13); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
    .s-menu:popover-open .s-menu-list a { opacity: 1; transform: none; }
    .s-menu:popover-open .s-menu-list a:nth-child(1) { --d: 70ms; }
    .s-menu:popover-open .s-menu-list a:nth-child(2) { --d: 110ms; }
    .s-menu:popover-open .s-menu-list a:nth-child(3) { --d: 150ms; }
    .s-menu:popover-open .s-menu-list a:nth-child(4) { --d: 190ms; }
    .s-menu:popover-open .s-menu-list a:nth-child(5) { --d: 230ms; }
    .s-menu:popover-open .s-menu-list a:nth-child(6) { --d: 270ms; }
    .s-menu:popover-open .s-menu-list a:nth-child(7) { --d: 310ms; }
    @starting-style { .s-menu:popover-open .s-menu-list a { opacity: 0; transform: translateY(10px); } }
  }
}
@media (prefers-reduced-motion: reduce) {
  .s-menu, .s-menu::backdrop, .s-menu-list a, .s-burger i { transition: none !important; }
}

/* ---- Footer: the two legal pages and the contact address, then one line. The same on every page. The pages
        themselves are in the menu. Room under the last row, so a floating bar never covers these links. ---- */
.s-end { display: flex; justify-content: center; padding: 0 var(--sp-200) calc(var(--sp-900) + env(safe-area-inset-bottom, 0px)); }
.s-legal { display: flex; flex-wrap: wrap; gap: 0 var(--sp-300); }
.s-legal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--dim); text-underline-offset: 4px; transition: color 300ms var(--ease); }
.s-legal a:hover, .s-legal a[aria-current="page"] { color: var(--fg); text-decoration-style: dotted; }
.s-legal-note { margin-top: var(--sp-100); color: var(--faint); }

/* ---- A page other than the home page: one column of text under the menu ---- */
.s-page { display: flex; flex-direction: column; align-items: center; gap: var(--sp-700); padding: calc(var(--sp-900) + var(--sp-600)) var(--sp-200) var(--sp-900); }
.s-page > * { width: 100%; max-width: 560px; }
.s-page > .s-wide { max-width: 720px; }
/* The page head: a bracket label, the title, one or two lines under it */
.s-head { display: flex; flex-direction: column; gap: var(--sp-200); }
.s-head h1, .s-doc h1 { font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.s-lead { color: var(--soft); }
/* A section: its title, then what it says */
.s-sec { display: flex; flex-direction: column; gap: var(--sp-200); }
.s-sec h2, .s-h2 { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }
.s-sec p, .s-sec li { color: var(--soft); }
.s-sec a:not(.p-b), .s-note a { text-underline-offset: 4px; }
.s-sec a:not(.p-b):hover, .s-note a:hover { text-decoration-style: dotted; }
.s-note { font-size: 14px; line-height: 20px; color: var(--faint); }
.s-list { display: flex; flex-direction: column; gap: var(--sp-100); margin: 0; padding-left: var(--sp-300); }
/* Actions in a row: the one main action, and the quiet ones beside it */
.s-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-100); }
.s-acts .p-sheen { flex: 1 1 240px; }

/* ---- A fold: a row of dark glass that opens. Questions, and the longer lists. ---- */
.s-folds { display: flex; flex-direction: column; gap: var(--sp-75); }
.s-fold { border-radius: var(--r-2xl); background: var(--s1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); transition: background-color 300ms var(--ease); }
.s-fold:hover, .s-fold[open] { background: var(--s2); }
.s-fold > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-200); min-height: 56px; padding: var(--sp-200) var(--sp-300); border-radius: var(--r-2xl); cursor: pointer; list-style: none; font-weight: 500; }
.s-fold > summary::-webkit-details-marker { display: none; }
.s-fold > summary:focus-visible { border-radius: var(--r-2xl); }
/* The mark at the end of the row: a plus that turns into a cross */
.s-fold > summary::after { content: ""; flex: none; width: 12px; height: 12px; background: linear-gradient(var(--dim), var(--dim)) center / 12px 1.5px no-repeat, linear-gradient(var(--dim), var(--dim)) center / 1.5px 12px no-repeat; transition: transform 500ms var(--ease); }
.s-fold[open] > summary::after { transform: rotate(45deg); }
.s-fold-in { display: flex; flex-direction: column; gap: var(--sp-200); padding: 0 var(--sp-300) var(--sp-300); color: var(--soft); }
.s-fold-in h3 { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--fg); }
.s-fold-in ol, .s-fold-in ul { display: flex; flex-direction: column; gap: var(--sp-200); margin: 0; padding: 0; list-style: none; }

/* ---- Steps: numbered in mono, as on a panel ---- */
.s-steps { display: flex; flex-direction: column; gap: var(--sp-100); margin: 0; padding: 0; list-style: none; counter-reset: s; }
.s-steps > li { position: relative; padding-left: var(--sp-500); color: var(--soft); counter-increment: s; }
.s-steps > li::before { content: "(" counter(s) ")"; position: absolute; left: 0; top: 4px; font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--faint); }
/* A fact sheet: name on the left, value on the right, in mono capitals */
.s-spec { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.s-spec li { display: flex; justify-content: space-between; gap: var(--sp-200); padding: var(--sp-100) 0; box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08); }
.s-spec li:last-child { box-shadow: none; }
.s-spec b { font-weight: 400; color: var(--fg); text-align: right; }
/* Something to copy or to type: mono on dark glass, wrapped so nothing runs off a phone */
.s-code { margin: 0; padding: var(--sp-200); border-radius: var(--r-xl); background: #0E0E0F; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); font-family: var(--mono); font-size: 13px; line-height: 20px; color: var(--soft); white-space: pre-wrap; overflow-wrap: anywhere; }
.s-steps .s-code { margin-top: var(--sp-75); }
/* A prompt with its Copy button in the corner */
.s-prompt { position: relative; }
.s-prompt .s-code { padding-top: calc(var(--sp-200) + 34px + var(--sp-100)); }
.s-prompt .p-chip { position: absolute; top: var(--sp-200); right: var(--sp-200); }
.p-chip.ok { color: var(--fg); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.4), 0 2px 6px rgba(0, 0, 0, 0.3); }
.s-h3 { margin-top: var(--sp-300); font-size: 16px; line-height: 24px; font-weight: 600; }
/* The coin's contract address as a chip: in full where there is room, shortened on a phone; a tap copies all of it */
.s-ca { gap: var(--sp-100); max-width: 100%; font-family: var(--mono); font-size: 12px; font-weight: 400; }
.s-ca .label { color: var(--faint); }
.s-ca-full { display: none; }
.s-ca.all .s-ca-full { display: inline; overflow-wrap: anywhere; white-space: normal; }
.s-ca.all .s-ca-short { display: none; }
.s-ca.all { height: auto; min-height: 34px; padding-block: var(--sp-75); white-space: normal; }
@media (min-width: 640px) { .s-ca-full { display: inline; } .s-ca-short { display: none; } }
/* A file's fingerprint: long, mono, allowed to break anywhere */
.s-sum { font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--faint); overflow-wrap: anywhere; }

/* ---- A long document (privacy policy, terms of use): the text exactly as written, on a comfortable measure ---- */
.s-doc { display: flex; flex-direction: column; gap: var(--sp-200); }
.s-doc h1 { margin-bottom: var(--sp-75); }
.s-doc h2 { margin-top: var(--sp-400); font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; scroll-margin-top: var(--sp-900); }
.s-doc h3 { margin-top: var(--sp-200); font-size: 16px; line-height: 24px; font-weight: 600; }
.s-doc p, .s-doc li { color: var(--soft); }
.s-doc strong { color: var(--fg); font-weight: 600; }
.s-doc ul { display: flex; flex-direction: column; gap: var(--sp-75); margin: 0; padding-left: var(--sp-300); }
.s-doc ul ul { margin-top: var(--sp-75); }
.s-doc a { text-underline-offset: 4px; overflow-wrap: anywhere; }
.s-doc a:hover { text-decoration-style: dotted; }
.s-doc code { padding: var(--sp-25) var(--sp-50); border-radius: 4px; background: var(--s2); font-family: var(--mono); font-size: 14px; overflow-wrap: anywhere; }

/* ---- The download page: the device switch, and one device's panel ---- */
.p-chips.s-tabs { justify-content: flex-start; margin-top: var(--sp-200); }
.s-panel { scroll-margin-top: var(--sp-900); }
.s-panel .s-acts .p-sheen { flex: 1 1 100%; }
.s-fine { margin-top: calc(var(--sp-75) * -1); }

/* ---- How it travels: the picture of one hop, with its note ---- */
.s-hop-pic { display: flex; flex-direction: column; align-items: center; gap: var(--sp-300); }
.s-band-note { padding: 0 var(--sp-200); text-align: center; color: var(--faint); }

@media (prefers-reduced-motion: reduce) {
  .s-links a::after, .s-fold, .s-fold > summary::after { transition: none; }
}
