/* ShardKeep — tokenomics.css */

/* ── Headline numbers ───────────────────────────────────────── */
.stat-band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-5);
    margin-block: var(--sp-7) var(--sp-9);
}
@media (max-width: 880px) {
    .stat-band { grid-template-columns: 1fr 1fr; }
}
.stat {
    padding: var(--sp-5);
    background: rgba(14, 12, 36, 0.5);
    border: 1px solid var(--line);
    border-radius: var(--r-3);
    position: relative;
    overflow: hidden;
}
.stat::before {
    content: '';
    position: absolute; top: 0; left: 10%; right: 10%;
    height: 2px;
    background: var(--grad-brand);
    border-radius: 2px;
}
.stat__label {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-3);
    margin-bottom: 0.5rem;
}
.stat__value {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem);
    color: var(--text-1);
    line-height: 1;
    margin-bottom: 0.3rem;
}
.stat__note {
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    color: var(--text-muted);
}

/* ── Allocation (donut + legend) ───────────────────────────── */
.alloc {
    display: grid;
    grid-template-columns: 1.1fr 1.3fr;
    gap: var(--sp-7);
    align-items: center;
}
@media (max-width: 960px) {
    .alloc { grid-template-columns: 1fr; }
}
.alloc__chart {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 460px;
    margin-inline: auto;
    width: 100%;
}
.alloc__chart canvas { width: 100%; height: 100%; }
.alloc__chart-center {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;
    flex-direction: column;
    text-align: center;
}
.alloc__chart-label {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-3);
    margin-bottom: 0.3rem;
}
.alloc__chart-value {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 2.5rem;
    color: var(--text-1);
    line-height: 1;
}
.alloc__chart-sub {
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
    color: var(--rose-soft);
    margin-top: 0.5rem;
}

.alloc__legend {
    display: grid;
    gap: 0.55rem;
    font-size: var(--fs-sm);
}
.alloc__legend-row {
    display: grid;
    grid-template-columns: 16px 1fr auto auto;
    align-items: center;
    gap: var(--sp-3);
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--line);
    transition: background var(--dur-1);
}
.alloc__legend-row:hover { background: rgba(139, 92, 246, 0.04); }
.alloc__legend-row:last-child { border-bottom: none; }
.alloc__swatch {
    width: 12px; height: 12px; border-radius: 3px;
    box-shadow: 0 0 10px currentColor;
}
.alloc__legend-label { color: var(--text-2); font-weight: 500; }
.alloc__legend-tokens { color: var(--text-3); font-family: var(--font-mono); font-size: var(--fs-xs); }
.alloc__legend-pct { color: var(--text-1); font-family: var(--font-mono); font-weight: 600; min-width: 3.5em; text-align: right; }

/* ── Subscription tiers ────────────────────────────────────── */
.sub-tiers {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--sp-4);
}
@media (max-width: 1080px) {
    .sub-tiers { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
    .sub-tiers { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
    .sub-tiers { grid-template-columns: 1fr; }
}
.sub-tier {
    padding: var(--sp-5);
    border-radius: var(--r-3);
    background: rgba(14, 12, 36, 0.6);
    border: 1px solid var(--line);
    position: relative;
    display: grid;
    gap: var(--sp-3);
    align-content: start;
    transition: transform var(--dur-2), border-color var(--dur-2);
}
.sub-tier:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.sub-tier__piece {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--r-2);
    background: rgba(139, 92, 246, 0.12);
    color: var(--violet-soft);
}
.sub-tier__piece svg { width: 28px; height: 28px; }
.sub-tier h4 { margin: 0; font-size: 1.05rem; }
.sub-tier__price {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.35rem;
    color: var(--text-1);
    line-height: 1;
}
.sub-tier__price small {
    font-size: 0.7em;
    color: var(--text-3);
    font-weight: 600;
    font-family: var(--font-body);
}
.sub-tier__shrd {
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    color: var(--rose-soft);
}
.sub-tier ul {
    list-style: none; padding: 0;
    display: grid; gap: 0.3rem;
    font-size: var(--fs-xs);
    color: var(--text-3);
}
.sub-tier ul li::before {
    content: '→ '; color: var(--rose); font-weight: 700;
}

/* colored by tier */
.sub-tier--pawn   { border-color: rgba(34, 197, 94, 0.3); }
.sub-tier--pawn   .sub-tier__piece { background: rgba(34, 197, 94, 0.12); color: #4ade80; }
.sub-tier--knight { border-color: rgba(59, 130, 246, 0.3); }
.sub-tier--knight .sub-tier__piece { background: rgba(59, 130, 246, 0.12); color: #60a5fa; }
.sub-tier--bishop { border-color: rgba(167, 139, 250, 0.3); }
.sub-tier--bishop .sub-tier__piece { background: rgba(167, 139, 250, 0.12); color: #a78bfa; }
.sub-tier--rook   { border-color: rgba(250, 204, 21, 0.3); }
.sub-tier--rook   .sub-tier__piece { background: rgba(250, 204, 21, 0.12); color: #facc15; }
.sub-tier--queen  { border-color: rgba(244, 63, 94, 0.4); }
.sub-tier--queen  .sub-tier__piece { background: var(--grad-brand); color: white; }
.sub-tier--queen::before {
    content: 'Flagship';
    position: absolute; top: 10px; right: 10px;
    font-size: var(--fs-micro);
    padding: 0.25em 0.6em;
    border-radius: var(--r-pill);
    background: var(--grad-brand);
    color: white;
    font-weight: 700;
    letter-spacing: 0.08em;
}

/* ── Fee formula callout ───────────────────────────────────── */
.fee-formula {
    background: rgba(244, 63, 94, 0.04);
    border: 1px solid rgba(244, 63, 94, 0.2);
    border-radius: var(--r-3);
    padding: var(--sp-6);
    font-family: var(--font-mono);
    text-align: center;
    margin-block: var(--sp-5);
}
.fee-formula__big {
    font-size: clamp(1.1rem, 0.9rem + 0.7vw, 1.4rem);
    color: var(--text-1);
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}
.fee-formula__note {
    color: var(--text-3);
    font-size: var(--fs-sm);
    font-family: var(--font-body);
}
