/* DigiPay public website + developer docs.
   Built only from the shared tokens in DigiByte.UI's ui.css (--ui-*), so light and dark follow the
   `dark` class theme.js puts on <html>. Loaded after digipay.css. Components: DocsLayout, DocsHeading,
   ParamList/Param, Endpoint, SiteFooter, plus a few page helpers (callouts, tables, roadmap). */

/* ----- Docs frame (DocsLayout) ----- */
.dp-docs {
    max-width: 72rem;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
}
@media (min-width: 640px) { .dp-docs { padding: 3rem 1.5rem; } }
@media (min-width: 1024px) { .dp-docs { grid-template-columns: 14rem minmax(0, 1fr); gap: 3rem; } }

.dp-docs-main { min-width: 0; }
.dp-docs-article { max-width: 48rem; min-width: 0; }

/* Left menu: wide screens only, stays in view while the page scrolls. */
.dp-docs-side { display: none; }
@media (min-width: 1024px) {
    .dp-docs-side {
        display: block;
        position: sticky;
        top: 5rem;              /* below the sticky site header */
        align-self: start;
        max-height: calc(100vh - 6rem);
        overflow-y: auto;
        padding-bottom: 1rem;
    }
}
.dp-docs-nav ul, .dp-docs-mobile ul { list-style: none; margin: 0; padding: 0; }
.dp-docs-nav-title {
    margin: 0 0 0.5rem;
    padding: 0 0.75rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ui-text-muted);
}
.dp-docs-nav-link {
    display: block;
    padding: 0.4375rem 0.75rem;
    border-radius: var(--ui-radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ui-text-muted);
    text-decoration: none;
}
.dp-docs-nav-link:hover { color: var(--ui-text); background: var(--ui-ghost-hover); }
.dp-docs-nav-link[aria-current="page"] { color: var(--ui-ghost-text); background: var(--ui-ghost-hover); font-weight: 600; }
.dp-docs-nav-link:focus-visible, .dp-docs-toc-link:focus-visible { outline: 2px solid var(--ui-focus); outline-offset: 2px; }

.dp-docs-toc { margin: 0.25rem 0 0.5rem 0.75rem !important; padding-left: 0.5rem !important; border-left: 1px solid var(--ui-border); }
.dp-docs-toc-link {
    display: block;
    padding: 0.3125rem 0.5rem;
    border-radius: var(--ui-radius-sm);
    font-size: 0.8125rem;
    line-height: 1.35;
    color: var(--ui-text-muted);
    text-decoration: none;
}
.dp-docs-toc-link:hover { color: var(--ui-text); background: var(--ui-ghost-hover); }
.dp-docs-toc-sub { padding-left: 1.125rem; font-size: 0.78125rem; }
.dp-docs-extra { margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--ui-border); }

/* Phones and tablets: the menu folds into one disclosure above the content. */
.dp-docs-mobile {
    margin-bottom: 1.5rem;
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius);
    background: var(--ui-surface);
}
@media (min-width: 1024px) { .dp-docs-mobile { display: none; } }
.dp-docs-mobile > summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ui-text);
    cursor: pointer;
    list-style: none;
}
.dp-docs-mobile > summary::-webkit-details-marker { display: none; }
.dp-docs-mobile > summary:focus-visible { outline: 2px solid var(--ui-focus); outline-offset: 2px; border-radius: var(--ui-radius); }
.dp-docs-mobile[open] .dp-docs-mobile-chevron { transform: rotate(180deg); }
.dp-docs-mobile-body {
    display: grid;
    gap: 1rem;
    padding: 0.25rem 0.5rem 0.875rem;
    border-top: 1px solid var(--ui-border);
    max-height: 60vh;
    overflow-y: auto;
}
.dp-docs-mobile-body .dp-docs-toc { margin: 0.5rem 0 0 !important; border-left: 0; padding-left: 0 !important; }
.dp-docs-mobile-body .dp-docs-nav-title { margin-top: 0.25rem; }

/* ----- Page header inside the docs frame ----- */
.dp-docs-eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ui-primary);
}
/* The brand blue is too dark to read on the dark background at this size; use the lighter blue the site's other
   dark-mode accents use (digipay.css). */
.dark .dp-docs-eyebrow { color: #80b3ff; }
.dp-docs-title { margin: 0 0 0.75rem; font-size: 1.75rem; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; color: var(--ui-text); }
@media (min-width: 640px) { .dp-docs-title { font-size: 2.25rem; } }
.dp-docs-lead { margin: 0 0 1.5rem; font-size: 1.0625rem; line-height: 1.6; color: var(--ui-text-muted); }

/* ----- Headings with anchor links (DocsHeading) ----- */
.dp-docs-h { position: relative; color: var(--ui-text); letter-spacing: -0.01em; scroll-margin-top: 1rem; }
.dp-docs-h2 { margin: 2.5rem 0 0.5rem; font-size: 1.125rem; font-weight: 700; line-height: 1.3; }
@media (min-width: 640px) { .dp-docs-h2 { font-size: 1.25rem; } }
.dp-docs-h3 { margin: 1.75rem 0 0.5rem; font-size: 1rem; font-weight: 700; line-height: 1.35; }
.dp-docs-anchor {
    margin-left: 0.375rem;
    padding: 0 0.25rem;
    border-radius: var(--ui-radius-sm);
    font-weight: 500;
    color: var(--ui-text-muted);
    text-decoration: none;
    opacity: 0;
    transition: opacity var(--motion-fast, 120ms) ease;
}
.dp-docs-h:hover .dp-docs-anchor, .dp-docs-anchor:focus-visible { opacity: 1; }
.dp-docs-anchor:hover { color: var(--ui-primary); }
.dp-docs-anchor:focus-visible { outline: 2px solid var(--ui-focus); outline-offset: 2px; }
@media (hover: none) { .dp-docs-anchor { opacity: 0.45; } }

/* Any linked target in the docs lands a little below the top of the window. */
.dp-docs-article [id], .dp-site section[id] { scroll-margin-top: 1rem; }

/* ----- Body text helpers ----- */
.dp-docs-article p, .dp-docs-article li { overflow-wrap: anywhere; }
.dp-docs-article a:not([class]) { color: var(--ui-primary); }
.dark .dp-docs-article a:not([class]) { color: #80b3ff; } /* readable on the dark background, like .dp-docs-eyebrow */
.dp-docs-article a:not([class]):hover { text-decoration: underline; }

.dp-callout {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border: 1px solid var(--ui-border);
    border-left: 3px solid var(--ui-primary);
    border-radius: var(--ui-radius-sm);
    background: var(--ui-surface);
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--ui-text);
}
.dp-callout p { margin: 0; }
.dp-callout p + p { margin-top: 0.5rem; }
.dp-callout-warn { border-left-color: #d97706; }

/* ----- Request/response field lists (ParamList, Param) ----- */
.dp-params { margin: 0.875rem 0; }
.dp-params-title {
    margin: 0 0 0.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ui-text-muted);
}
.dp-params-list { margin: 0; border-top: 1px solid var(--ui-border); }
.dp-param { padding: 0.5rem 0; border-bottom: 1px solid var(--ui-border); }
.dp-param dt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.375rem 0.5rem; }
.dp-param dd { margin: 0.125rem 0 0; font-size: 0.875rem; line-height: 1.55; color: var(--ui-text-muted); overflow-wrap: anywhere; }
.dp-param-name { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.8125rem; font-weight: 600; color: var(--ui-text); }
.dp-param-type { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.75rem; color: var(--ui-text-muted); }
.dp-param-req { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #b45309; }
.dark .dp-param-req { color: #fbbf24; }

/* ----- Endpoint card extras ----- */
.dp-endpoint { scroll-margin-top: 1rem; }
.dp-endpoint-auth {
    margin-left: auto;
    padding: 0.125rem 0.5rem;
    border: 1px solid var(--ui-border);
    border-radius: 999px;
    font-family: Inter, system-ui, sans-serif;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--ui-text-muted);
    white-space: nowrap;
}
.dp-endpoint > p:last-child, .dp-endpoint > .dp-params:last-child { margin-bottom: 0; }

/* ----- Plain data tables (events, status codes) ----- */
.dp-table-wrap { margin: 0.75rem 0 1rem; overflow-x: auto; border: 1px solid var(--ui-border); border-radius: var(--ui-radius); background: var(--ui-surface); }
.dp-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.dp-table th {
    padding: 0.625rem 0.875rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ui-text-muted);
    border-bottom: 1px solid var(--ui-border);
    white-space: nowrap;
}
.dp-table td { padding: 0.625rem 0.875rem; vertical-align: top; color: var(--ui-text); border-bottom: 1px solid var(--ui-border); line-height: 1.5; }
.dp-table tr:last-child td { border-bottom: 0; }
.dp-table td:first-child { white-space: nowrap; }

/* ----- Buttons that read as links (in-page actions) ----- */
.dp-linklike { padding: 0; border: 0; background: none; font: inherit; color: var(--ui-primary); cursor: pointer; text-align: left; }
.dp-linklike:hover { text-decoration: underline; }
.dp-linklike:focus-visible { outline: 2px solid var(--ui-focus); outline-offset: 2px; border-radius: 2px; }

/* ----- Site footer ----- */
.dp-footer { margin-top: 4rem; padding: 2.5rem 1rem 2rem; border-top: 1px solid var(--ui-border); font-size: 0.875rem; color: var(--ui-text-muted); }
.dp-footer-grid { max-width: 72rem; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; }
@media (min-width: 768px) { .dp-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; padding: 0 0.5rem; } }
.dp-footer-brand { grid-column: 1 / -1; }
@media (min-width: 768px) { .dp-footer-brand { grid-column: auto; } }
.dp-footer-brand p { margin: 0.625rem 0 0.875rem; max-width: 22rem; line-height: 1.55; }
.dp-footer a { color: inherit; text-decoration: none; }
.dp-footer a:hover { color: var(--ui-text); text-decoration: underline; }
.dp-footer a:focus-visible { outline: 2px solid var(--ui-focus); outline-offset: 2px; border-radius: 2px; }
.dp-footer-col h2 { margin: 0 0 0.625rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ui-text); }
.dp-footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.375rem; }
.dp-footer-col li a { display: inline-block; padding: 0.125rem 0; }
.dp-footer .dp-footer-telegram {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    background: rgba(34, 158, 217, 0.1);
    color: #166a94; /* 5.2:1 on its tint (WCAG AA); #1d7fb0 was 3.9:1 */
    font-size: 0.75rem;
    font-weight: 600;
}
.dark .dp-footer .dp-footer-telegram { color: #4ec0e6; }
.dp-footer .dp-footer-telegram:hover { background: rgba(34, 158, 217, 0.16); text-decoration: none; }
.dp-footer-credit { max-width: 72rem; margin: 2rem auto 0; padding: 1.25rem 0.5rem 0; border-top: 1px solid var(--ui-border); font-size: 0.75rem; }

/* ----- Roadmap (Features) and the home page's "recently shipped" strip ----- */
.dp-roadmap-group + .dp-roadmap-group { margin-top: 2rem; }
.dp-roadmap-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .dp-roadmap-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dp-roadmap-item { padding: 1rem 1.125rem; }
.dp-roadmap-item h4 { margin: 0 0 0.25rem; font-size: 0.9375rem; font-weight: 700; color: var(--ui-text); }
.dp-roadmap-item p { margin: 0; font-size: 0.875rem; line-height: 1.5; color: var(--ui-text-muted); }
.dp-shipped-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .dp-shipped-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .dp-shipped-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dp-shipped-item { display: flex; gap: 0.625rem; align-items: flex-start; padding: 0.875rem 1rem; }
.dp-shipped-item strong { display: block; font-size: 0.875rem; color: var(--ui-text); }
.dp-shipped-item span { display: block; margin-top: 0.125rem; font-size: 0.8125rem; line-height: 1.45; color: var(--ui-text-muted); }

/* ----- Static donation button demo (home page) ----- */
.dp-tip-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.125rem;
    border-radius: 10px;
    background: #0066ff;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}
.dp-tip-button:hover { background: #0052cc; color: #fff; }
.dp-tip-button:focus-visible { outline: 2px solid var(--ui-focus); outline-offset: 2px; }

/* =====================================================================================
   Home page stats strip: a live pill, then four tiles with an icon badge, a counting number,
   label and caption. Gradient border glow and lift on hover; staggered entrance.
   ===================================================================================== */
.dp-stats { max-width: 72rem; margin: 0 auto; padding: 0.5rem 1rem 0.75rem; }
@media (min-width: 640px) { .dp-stats { padding: 0.5rem 1.5rem 1rem; } }
/* Keep the strip close to the hero above it and the section below it. */
.dp-hero { padding-bottom: 1.75rem; }
.dp-after-stats { padding-top: 1.75rem; }
@media (min-width: 640px) { .dp-hero { padding-bottom: 2.25rem; } .dp-after-stats { padding-top: 2.25rem; } }
.dp-stats-head { display: flex; align-items: center; justify-content: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.dp-stats-live {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.3rem 0.75rem; border-radius: 9999px;
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em;
    color: #047857; background: color-mix(in srgb, #10b981 12%, transparent);
    border: 1px solid color-mix(in srgb, #10b981 30%, transparent);
}
.dark .dp-stats-live { color: #6ee7b7; }
.dp-stats-dot { position: relative; width: 0.5rem; height: 0.5rem; border-radius: 9999px; background: #10b981; }
.dp-stats-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 9999px; background: #10b981; opacity: 0.4; animation: dp-stats-ping 1.8s cubic-bezier(0, 0, .2, 1) infinite; }
.dp-stats-updated { font-size: 0.75rem; color: var(--ui-text-muted); }

.dp-stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
@media (min-width: 768px) { .dp-stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }

.dp-stat {
    position: relative; isolation: isolate; overflow: hidden;
    /* Compact: icon on the left, number / label / caption stacked beside it. */
    display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 0.75rem; row-gap: 0; align-items: center;
    padding: 0.875rem 1rem;
    border-radius: var(--ui-radius-lg);
    background: var(--ui-surface);
    border: 1px solid var(--ui-border);
    box-shadow: var(--ui-shadow-card);
    transition: transform 220ms cubic-bezier(.22, 1, .36, 1), box-shadow 220ms ease-out, border-color 220ms ease-out;
    animation: dp-stat-in 600ms cubic-bezier(.22, 1, .36, 1) both;
    animation-delay: calc(var(--i, 0) * 90ms);
}
/* Soft colour wash in the corner. */
.dp-stat::before {
    content: ""; position: absolute; z-index: -1; inset: auto -30% -60% auto; width: 75%; aspect-ratio: 1;
    border-radius: 9999px;
    background: radial-gradient(circle, color-mix(in srgb, var(--ui-primary) 22%, transparent), transparent 70%);
    transition: transform 400ms ease-out, opacity 400ms ease-out; opacity: 0.7;
}
/* Gradient border that lights up on hover. */
.dp-stat::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
    background: linear-gradient(135deg, var(--ui-primary), #10b981 50%, transparent 80%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity 220ms ease-out;
}
@media (hover: hover) {
    .dp-stat:hover { transform: translateY(-3px); box-shadow: var(--ui-shadow-raised); border-color: transparent; }
    .dp-stat:hover::after { opacity: 1; }
    .dp-stat:hover::before { transform: scale(1.25); opacity: 1; }
}
.dp-stat-icon {
    display: inline-flex; align-items: center; justify-content: center;
    grid-row: span 3; align-self: center;
    width: 2.5rem; height: 2.5rem; border-radius: 0.75rem;
    color: var(--ui-primary);
    background: color-mix(in srgb, var(--ui-primary) 12%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ui-primary) 22%, transparent);
}
.dp-stat-icon img { width: 1.375rem; height: 1.375rem; }
.dp-stat-value {
    margin: 0; font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em;
    background: linear-gradient(120deg, var(--ui-text) 30%, var(--ui-primary));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dp-stat-value.is-done { animation: dp-stat-pop 420ms cubic-bezier(.34, 1.56, .64, 1); }
.dp-stat-label { margin: 0.125rem 0 0; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ui-text); }
.dp-stat-caption { margin: 0; font-size: 0.75rem; line-height: 1.35; color: var(--ui-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@keyframes dp-stat-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
@keyframes dp-stat-pop { 40% { transform: scale(1.06); } }
@keyframes dp-stats-ping { 75%, 100% { transform: scale(2.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
    .dp-stat, .dp-stat-value.is-done, .dp-stats-dot::after { animation: none !important; }
    .dp-stat, .dp-stat::before, .dp-stat::after { transition: none !important; }
}
/* Two tiles per row on phones: smaller icon, captions may wrap rather than be cut off. */
@media (max-width: 767px) {
    .dp-stat { padding: 0.75rem; column-gap: 0.625rem; align-items: start; }
    .dp-stat-icon { width: 2rem; height: 2rem; border-radius: 0.625rem; align-self: start; margin-top: 0.125rem; }
    .dp-stat-icon img { width: 1.125rem; height: 1.125rem; }
    .dp-stat-caption { white-space: normal; }
}

/* =====================================================================================
   Use cases (/use-cases and the home page teaser). Cards share the stats strip's look:
   icon badge, gradient border on hover, staggered entrance.
   ===================================================================================== */
.dp-uc-hero { max-width: 56rem; margin: 0 auto; padding: 3rem 1rem 1.5rem; text-align: center; }
@media (min-width: 640px) { .dp-uc-hero { padding: 4rem 1.5rem 2rem; } }
.dp-uc-title { margin: 0.5rem 0 0.75rem; font-size: clamp(1.875rem, 5vw, 3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.dp-uc-lead { max-width: 40rem; margin: 0 auto; font-size: 1rem; line-height: 1.6; color: var(--ui-text-muted); }
.dp-uc-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }
.dp-uc-chip {
    display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.4rem 0.8rem; border-radius: 9999px;
    font-size: 0.8125rem; font-weight: 600; color: var(--ui-text); text-decoration: none;
    border: 1px solid var(--ui-border); background: var(--ui-surface);
    transition: border-color 150ms, background-color 150ms, transform 150ms;
}
.dp-uc-chip svg { color: var(--ui-primary); }
.dp-uc-chip:hover { border-color: var(--ui-primary); background: var(--ui-ghost-hover); transform: translateY(-1px); }

.dp-uc-list { max-width: 72rem; margin: 0 auto; padding: 0.5rem 1rem 2rem; display: grid; gap: 1rem; }
@media (min-width: 900px) { .dp-uc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; padding: 0.5rem 1.5rem 3rem; } }

.dp-uc-card, .dp-uc-mini {
    position: relative; isolation: isolate; overflow: hidden;
    border-radius: var(--ui-radius-lg); background: var(--ui-surface);
    border: 1px solid var(--ui-border); box-shadow: var(--ui-shadow-card);
    transition: transform 220ms cubic-bezier(.22, 1, .36, 1), box-shadow 220ms ease-out, border-color 220ms ease-out;
    animation: dp-stat-in 600ms cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(var(--i, 0) * 70ms);
}
.dp-uc-card::after, .dp-uc-mini::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
    background: linear-gradient(135deg, var(--ui-primary), #10b981 50%, transparent 80%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity 220ms ease-out;
}
@media (hover: hover) {
    .dp-uc-card:hover, .dp-uc-mini:hover { transform: translateY(-3px); box-shadow: var(--ui-shadow-raised); border-color: transparent; }
    .dp-uc-card:hover::after, .dp-uc-mini:hover::after { opacity: 1; }
}
.dp-uc-card { display: flex; flex-direction: column; gap: 0.875rem; padding: 1.25rem; scroll-margin-top: 1rem; }
@media (min-width: 640px) { .dp-uc-card { padding: 1.5rem; } }
.dp-uc-card:target { border-color: var(--ui-primary); box-shadow: var(--ui-shadow-raised), 0 0 0 3px color-mix(in srgb, var(--ui-primary) 25%, transparent); }
.dp-uc-card-head { display: flex; align-items: center; gap: 0.875rem; }
.dp-uc-icon {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 2.75rem; height: 2.75rem; border-radius: 0.875rem; color: var(--ui-primary);
    background: color-mix(in srgb, var(--ui-primary) 12%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ui-primary) 22%, transparent);
}
.dp-uc-audience { margin: 0; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ui-text-muted); }
.dp-uc-card-title { margin: 0.125rem 0 0; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.dp-uc-summary { margin: 0; font-size: 0.9375rem; line-height: 1.55; color: var(--ui-text); }
.dp-uc-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.dp-uc-points li { display: flex; gap: 0.5rem; font-size: 0.875rem; line-height: 1.5; color: var(--ui-text-muted); }
.dp-uc-points svg { flex-shrink: 0; margin-top: 0.2rem; color: #10b981; }
.dp-uc-foot { margin-top: auto; padding-top: 0.75rem; border-top: 1px solid var(--ui-border); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
.dp-uc-tools { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.dp-uc-tool {
    padding: 0.2rem 0.6rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; text-decoration: none;
    color: var(--ui-ghost-text); background: var(--ui-ghost-hover);
}
.dp-uc-tool:hover { background: var(--ui-ghost-active, var(--ui-ghost-hover)); }
.dp-uc-cta { display: inline-flex; align-items: center; gap: 0.375rem; }

.dp-uc-end { max-width: 48rem; margin: 0 auto; padding: 1rem 1rem 4rem; text-align: center; }
.dp-uc-end-title { margin: 0 0 0.5rem; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; }
.dp-uc-end-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1.25rem; }

/* Home teaser */
.dp-uc-teaser { max-width: 72rem; margin: 0 auto; padding: 2.5rem 1rem; }
@media (min-width: 640px) { .dp-uc-teaser { padding: 3.5rem 1.5rem; } }
.dp-uc-teaser .dp-uc-lead { margin-bottom: 1.5rem; }
.dp-uc-teaser-grid { display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .dp-uc-teaser-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .dp-uc-teaser-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }
.dp-uc-mini { display: flex; align-items: flex-start; gap: 0.75rem; padding: 1rem; color: inherit; text-decoration: none; }
.dp-uc-mini .dp-uc-icon { width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; }
.dp-uc-mini-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.dp-uc-mini-title { font-size: 0.9375rem; font-weight: 700; color: var(--ui-text); }
.dp-uc-mini-summary { font-size: 0.8125rem; line-height: 1.45; color: var(--ui-text-muted); }
.dp-uc-mini-arrow { flex-shrink: 0; margin-top: 0.25rem; color: var(--ui-text-muted); transition: transform 180ms ease-out, color 180ms; }
.dp-uc-mini:hover .dp-uc-mini-arrow { transform: translateX(3px); color: var(--ui-primary); }
.dp-uc-mini:focus-visible, .dp-uc-chip:focus-visible, .dp-uc-tool:focus-visible { outline: 2px solid var(--ui-focus); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    .dp-uc-card, .dp-uc-mini { animation: none !important; transition: none !important; }
    .dp-uc-chip, .dp-uc-mini-arrow { transition: none !important; }
}

/* =====================================================================================
   Home hero background: full width behind the hero. A soft blue/green glow, a grid that
   fades out towards the edges, and three blurred shapes drifting slowly.
   ===================================================================================== */
.dp-hero-wrap { position: relative; isolation: isolate; overflow: hidden; }
.dp-hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.dp-hero-bg::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(60% 55% at 50% 0%, color-mix(in srgb, var(--ui-primary) 20%, transparent), transparent 70%),
        radial-gradient(40% 40% at 85% 30%, rgba(16, 185, 129, 0.12), transparent 70%),
        radial-gradient(45% 45% at 10% 40%, rgba(124, 58, 237, 0.10), transparent 70%);
}
.dp-hero-grid {
    position: absolute; inset: -1px;
    background-image:
        linear-gradient(to right, color-mix(in srgb, var(--ui-text) 7%, transparent) 1px, transparent 1px),
        linear-gradient(to bottom, color-mix(in srgb, var(--ui-text) 7%, transparent) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 35%, #000 30%, transparent 75%);
            mask-image: radial-gradient(ellipse 70% 65% at 50% 35%, #000 30%, transparent 75%);
}
.dark .dp-hero-grid {
    background-image:
        linear-gradient(to right, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
}
/* Fade the bottom edge into the page so the stats strip sits on the plain background. */
.dp-hero-wrap::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6rem; z-index: -1; pointer-events: none;
    background: linear-gradient(to bottom, transparent, #f8fafc);
}
.dark .dp-hero-wrap::after { background: linear-gradient(to bottom, transparent, #001529); }

/* ----- Hero scenes: payment and merchant cards floating at the edges ----- */
.dp-hero-flow { position: absolute; inset: 6% 4% 10%; width: 92%; height: 84%; fill: none; }
.dp-hero-flow path { stroke: color-mix(in srgb, var(--ui-primary) 35%, transparent); stroke-width: 1.5; stroke-dasharray: 6 10; animation: dp-hf-flow 6s linear infinite; }
.dp-hf {
    position: absolute; display: flex; align-items: center; gap: 0.625rem;
    padding: 0.625rem 0.75rem; border-radius: 1rem;
    font-size: 0.75rem; color: var(--ui-text); text-align: left;
    background: color-mix(in srgb, var(--ui-surface) 78%, transparent);
    border: 1px solid color-mix(in srgb, var(--ui-border) 80%, transparent);
    box-shadow: 0 10px 30px -12px rgba(0, 21, 41, 0.35);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    opacity: 0.92;
    animation: dp-hf-float 7s ease-in-out infinite alternate;
}
.dp-hf-strong { font-weight: 700; font-size: 0.8125rem; }
.dp-hf-sub { color: var(--ui-text-muted); font-size: 0.6875rem; }
.dp-hf-row { display: flex; align-items: center; gap: 0.375rem; }

.dp-hf-receipt { left: 2.5%; top: 9%; flex-direction: column; align-items: flex-start; gap: 0.125rem; padding: 0.75rem 0.875rem; transform: rotate(-6deg); animation-delay: -1s; }
.dp-hf-store { display: inline-flex; padding: 0.2rem; border-radius: 0.4rem; color: var(--ui-primary); background: color-mix(in srgb, var(--ui-primary) 14%, transparent); }
.dp-hf-amount { margin-top: 0.25rem; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 1.125rem; font-weight: 800; letter-spacing: -0.02em; }
.dp-hf-paid { margin-top: 0.375rem; display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.125rem 0.5rem; border-radius: 9999px; font-weight: 700; font-size: 0.6875rem; color: #047857; background: rgba(16, 185, 129, 0.16); }
.dark .dp-hf-paid { color: #6ee7b7; }

.dp-hf-qr { left: 9%; bottom: 14%; flex-direction: column; gap: 0.375rem; transform: rotate(5deg); animation-delay: -3s; animation-duration: 8s; }
.dp-hf-qrcode {
    display: block; width: 4rem; height: 4rem; padding: 0.25rem; border-radius: 0.5rem;
    background: #fff; image-rendering: pixelated; /* crisp modules at any zoom */
}

.dp-hf-toast { right: 3%; top: 14%; transform: rotate(4deg); animation-delay: -2s; }
.dp-hf-check { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 9999px; color: #fff; background: #10b981; box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2); animation: dp-hf-ping 2.4s ease-out infinite; }

.dp-hf-confirm { right: 3%; top: 41%; flex-direction: column; align-items: flex-start; gap: 0.375rem; transform: rotate(-3deg); animation-delay: -4s; animation-duration: 9s; }
.dp-hf-dots { display: inline-flex; gap: 0.25rem; }
.dp-hf-dots i { width: 0.55rem; height: 0.55rem; border-radius: 9999px; background: #10b981; animation: dp-hf-dot 3.6s ease-in-out infinite; }
.dp-hf-dots i:nth-child(2) { animation-delay: 0.15s; } .dp-hf-dots i:nth-child(3) { animation-delay: 0.3s; }
.dp-hf-dots i:nth-child(4) { animation-delay: 0.45s; } .dp-hf-dots i:nth-child(5) { animation-delay: 0.6s; }
.dp-hf-dots i:nth-child(6) { animation-delay: 0.75s; }

.dp-hf-shop { right: 4%; bottom: 13%; transform: rotate(-5deg); animation-delay: -5s; animation-duration: 8.5s; }
.dp-hf-shopicon { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 0.6rem; color: var(--ui-primary); background: color-mix(in srgb, var(--ui-primary) 14%, transparent); }

.dp-hf-coin {
    position: absolute; display: inline-flex; align-items: center; justify-content: center;
    width: 3rem; height: 3rem; border-radius: 9999px;
    background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--ui-primary) 35%, #fff), var(--ui-primary));
    box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--ui-primary) 70%, transparent), inset 0 -3px 6px rgba(0, 0, 0, 0.2);
    animation: dp-hf-coin 6s ease-in-out infinite alternate;
}
.dp-hf-coin img { width: 70%; height: 70%; filter: drop-shadow(0 1px 1px rgba(0,0,0,.2)); }
.dp-hf-coin-a { left: 22%; top: 8%; width: 2.25rem; height: 2.25rem; opacity: 0.8; }
.dp-hf-coin-b { right: 23%; bottom: 8%; animation-delay: -3s; opacity: 0.85; }

@keyframes dp-hf-float { from { translate: 0 0; } to { translate: 0 -12px; } }
@keyframes dp-hf-coin { from { translate: 0 0; rotate: -8deg; } to { translate: 0 -16px; rotate: 10deg; } }
@keyframes dp-hf-flow { to { stroke-dashoffset: -64; } }
@keyframes dp-hf-ping { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45); } 70%, 100% { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); } }
@keyframes dp-hf-dot { 0%, 15% { opacity: 0.25; } 30%, 100% { opacity: 1; } }

/* Keep the middle clear for the headline: the scenes only show on wide screens. */
.dp-hf, .dp-hero-flow { display: none; }
@media (min-width: 1280px) { .dp-hf, .dp-hero-flow { display: flex; } .dp-hero-flow { display: block; } }
@media (max-width: 1279px) { .dp-hf-coin-a { left: 6%; top: 6%; } .dp-hf-coin-b { right: 6%; bottom: 6%; width: 2.25rem; height: 2.25rem; } }
@media (max-width: 640px) { .dp-hf-coin { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) {
    .dp-hf, .dp-hf-coin, .dp-hf-check, .dp-hf-dots i, .dp-hero-flow path { animation: none !important; }
}
