/* ============================================================
   HyperStrategy — Bonds page
   Bonds-specific components. Loaded after styles.css + enhance.css.
   Inherits the full design system (mint glass, Fraunces/JetBrains,
   --ink palette). Nothing here re-declares the palette — it extends it.
   ============================================================ */

/* ============================================================
   Typography override — institutional grotesk, no editorial serif.
   This is a treasury product: clean, confident, data-first.
   ============================================================ */
:root {
    --font-display: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
    --font-primary: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
    --font-secondary: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
body { font-family: var(--font-primary); }

/* normalize every heading/number off the variable serif + italics */
.bonds-hero h1, .panel-title, .tranche-name, .modal-title, .howto-step h4,
.section-header h2, .bonds-main section h2, .faq-question h3,
.stats-hero-value, .stats-bar .stat-value, .glance-v, .tm-v, .ro-v, .fw-center-v,
.howto-num, .logo > div, header .logo div, .loading-screen .loading-fade > div {
    font-family: var(--font-display) !important;
    font-style: normal !important;
    font-variation-settings: normal !important;
    -webkit-text-fill-color: currentColor !important;
}

/* sensible weights for a grotesk (Fraunces ran very light) */
.bonds-hero h1 { font-weight: 720 !important; letter-spacing: -0.03em !important; }
.bonds-hero h1 em { font-style: normal !important; color: var(--ink-soft) !important; font-weight: 720 !important; }
.section-header h2, .bonds-main section h2 { font-weight: 680 !important; letter-spacing: -0.02em !important; }
.panel-title, .tranche-name, .modal-title { font-weight: 680 !important; letter-spacing: -0.015em !important; }
.howto-step h4, .faq-question h3 { font-weight: 650 !important; letter-spacing: -0.01em !important; }
.logo > div, header .logo div { font-weight: 800 !important; letter-spacing: -0.02em !important; }
.stats-hero-value, .stats-bar .stat-value, .glance-v, .tm-v, .ro-v, .ro-v small, .fw-center-v {
    font-weight: 700 !important; letter-spacing: -0.02em !important; font-feature-settings: 'tnum','lnum' !important;
}
.stats-hero-value { font-weight: 720 !important; letter-spacing: -0.035em !important; }
.ro-v small { font-weight: 500 !important; }

/* ----- Page rhythm ----- */
.bonds-main { padding-bottom: 2rem; }

/* Product links remain visible on mobile, outside the site's collapsed nav. */
/* Shared product navigation stays readable at every breakpoint. */
.bond-products { display:flex; align-items:stretch; flex-wrap:wrap; gap:8px; padding:16px 0 0; margin:0; }
.bond-products a { display:flex; align-items:center; justify-content:center; gap:10px; min-height:44px; padding:10px 16px; border-radius:999px; border:1px solid var(--glass-rim); color:var(--ink); background:var(--glass-tint); box-shadow:var(--glass-shadow-pill); font-size:13px; font-weight:600; text-decoration:none; transition:transform var(--glass-ease), box-shadow var(--glass-ease), background var(--glass-ease); }
/* "You are here" is the one place a chip takes the live variant. */
.bond-products a[aria-current="page"] { background:var(--glass-live-tint); border-color:var(--glass-live-rim); box-shadow:var(--glass-live-shadow); }
@media (hover:hover) and (prefers-reduced-motion:no-preference) { .bond-products a:hover { transform:translateY(-1px); box-shadow:var(--glass-shadow); } }
.bond-products .product-code { font:500 10px/1.3 var(--font-mono); letter-spacing:1px; color:var(--ink-soft); }
.bond-products a:focus-visible, .product-button:focus-visible { outline:2px solid var(--ink); outline-offset:3px; }
.product-actions { display:flex; justify-content:flex-start; flex-wrap:wrap; align-items:center; gap:10px; margin-top:24px; }
.product-button { display:inline-flex; justify-content:center; align-items:center; min-height:44px; padding:12px 18px; border:1px solid var(--glass-rim); border-radius:999px; background:var(--glass-tint-strong); box-shadow:var(--glass-shadow-pill); color:var(--ink); font:500 11px/1.4 var(--font-mono); letter-spacing:.06em; text-transform:uppercase; }
.product-button:first-child { background:var(--glass-accent-tint); border-color:var(--glass-accent-rim); box-shadow:var(--glass-accent-shadow); }
.product-button:hover { color:var(--ink); background:#EAFFF8; }
.bond-products + .bonds-hero { padding-top:34px; }
@media (max-width:680px) {
    .bond-products { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; padding-top:8px; }
    .bond-products a { flex-direction:column-reverse; gap:5px; padding:10px 6px; border-radius:14px; text-align:center; font-size:11px; line-height:1.25; }
    .bond-products .product-code { font-size:12px; font-weight:600; }
}

.section-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-mute);
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.9rem;
}
.section-eyebrow::before {
    content: '';
    width: 26px;
    height: 1px;
    background: var(--ink-mute);
    display: inline-block;
}

.section-note {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.7;
    letter-spacing: 0.01em;
    color: var(--ink-soft);
    max-width: 58ch;
}

/* ----- Bonds hero ----- */
.bonds-hero {
    padding-top: 0.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
}
.bonds-hero h1 {
    font-family: var(--font-display);
    font-weight: 360;
    font-style: normal;
    font-variation-settings: 'opsz' 144, 'SOFT' 30;
    font-size: clamp(2.6rem, 5.4vw, 4.6rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin: 0;
}
.bonds-hero h1 em {
    font-style: italic;
    font-variation-settings: 'opsz' 144, 'SOFT' 80;
    color: #FFFFFF;
}
.bonds-hero p {
    margin-top: 1.4rem;
    color: var(--ink-soft);
    font-size: 1.05rem;
    line-height: 1.72;
    max-width: 46ch;
}
.bonds-hero-aside {
    justify-self: end;
    width: 100%;
    max-width: 440px;
}

/* compact at-a-glance card in hero */
.glance-card {
    background: var(--glass-tint);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-rim);
    border-radius: 22px;
    padding: 1.5rem 1.6rem;
    box-shadow: var(--glass-shadow);
}
.glance-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--rule-soft);
}
.glance-row:last-child { border-bottom: none; padding-bottom: 0; }
.glance-row:first-child { padding-top: 0; }
.glance-k {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-mute);
}
.glance-v {
    font-family: var(--font-display);
    font-variation-settings: 'opsz' 60, 'SOFT' 20;
    font-size: 1.3rem;
    color: var(--ink);
    font-feature-settings: 'tnum','lnum';
}

@media (max-width: 900px) {
    .bonds-hero { grid-template-columns: 1fr; }
    .bonds-hero-aside { justify-self: stretch; max-width: none; margin-top: 1.5rem; }
}

/* ============================================================
   Generic glass panel used by visualizations
   ============================================================ */
.panel {
    background: var(--glass-tint);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-rim);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    position: relative;
    overflow: hidden;
}
.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.4rem;
}
.panel-title {
    font-family: var(--font-display);
    font-style: italic;
    font-variation-settings: 'opsz' 144, 'SOFT' 50;
    font-weight: 400;
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    letter-spacing: -0.015em;
    color: var(--ink);
    margin: 0;
}
.panel-sub {
    margin-top: 0.45rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: var(--ink-mute);
    line-height: 1.6;
}

/* Two-up layout: payoff + flywheel */
.viz-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.95fr;
    gap: 1.25rem;
    margin-top: clamp(1.75rem, 3vw, 2.5rem);
}
@media (max-width: 980px) {
    .viz-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Convertible bond payoff diagram (signature visualization)
   ============================================================ */
.payoff {
    display: flex;
    flex-direction: column;
}
.payoff-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 240px;
}
.payoff-stage svg { width: 100%; height: 100%; display: block; overflow: visible; }

.payoff-axis { stroke: var(--rule); stroke-width: 1; }
.payoff-axis-label {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.08em;
    fill: var(--ink-mute);
    text-transform: uppercase;
}
.payoff-grid-line { stroke: var(--rule-soft); stroke-width: 1; stroke-dasharray: 2 5; }
.payoff-floor { stroke: var(--ink-mute); stroke-width: 2; stroke-dasharray: 5 5; fill: none; opacity: 0.55; }
.payoff-curve { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.payoff-area { fill: url(#payoffFill); opacity: 0.9; }
.payoff-strike-line { stroke: rgba(15,61,56,0.4); stroke-width: 1; stroke-dasharray: 3 4; }
.payoff-strike-tag {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.06em;
    fill: var(--ink-soft);
}
.payoff-marker-line { stroke: #0F3D38; stroke-width: 1.5; }
.payoff-marker-dot {
    fill: #2AFEB7;
    stroke: #0F3D38;
    stroke-width: 2;
    filter: drop-shadow(0 4px 10px rgba(15,61,56,0.35));
}

/* readout + control */
.payoff-readout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 1.25rem;
    border-top: 1px solid var(--rule-soft);
    padding-top: 1.1rem;
}
.payoff-readout .ro {
    padding: 0 1.1rem;
    border-right: 1px solid var(--rule-soft);
}
.payoff-readout .ro:first-child { padding-left: 0; }
.payoff-readout .ro:last-child { border-right: none; padding-right: 0; }
.ro-k {
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-bottom: 0.4rem;
}
.ro-v {
    font-family: var(--font-display);
    font-variation-settings: 'opsz' 60, 'SOFT' 20;
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    color: var(--ink);
    font-feature-settings: 'tnum','lnum';
    line-height: 1.05;
}
.ro-v small { font-size: 0.62em; color: var(--ink-mute); letter-spacing: 0; }

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--rule);
}
.status-pill::before { content:''; width:6px; height:6px; border-radius:50%; background: currentColor; }
.status-pill.itm { color: #0a7d5e; background: rgba(42,254,183,0.14); border-color: rgba(42,254,183,0.55); }
.status-pill.otm { color: var(--ink-soft); background: var(--surface-deep); }

.payoff-control { margin-top: 1.3rem; }
.payoff-control-label {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    color: var(--ink-mute);
    margin-bottom: 0.6rem;
}
.payoff-control-label b { color: var(--ink); font-weight: 600; }

/* range slider, themed */
input[type="range"].slider {
    -webkit-appearance: none; appearance: none;
    width: 100%; height: 4px; border-radius: 999px;
    background: linear-gradient(to right, var(--ink) 0%, var(--ink) var(--fill,40%), rgba(15,61,56,0.15) var(--fill,40%), rgba(15,61,56,0.15) 100%);
    outline: none; cursor: pointer;
}
input[type="range"].slider::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 20px; height: 20px; border-radius: 50%;
    background: #F4F8F2; border: 2px solid var(--ink);
    box-shadow: 0 4px 12px -4px rgba(15,61,56,0.5);
    cursor: grab; transition: transform 0.15s ease;
}
input[type="range"].slider::-webkit-slider-thumb:active { transform: scale(1.12); cursor: grabbing; }
input[type="range"].slider::-moz-range-thumb {
    width: 20px; height: 20px; border-radius: 50%;
    background: #F4F8F2; border: 2px solid var(--ink); cursor: grab;
}

/* ============================================================
   Treasury flywheel
   ============================================================ */
.flywheel { display: flex; flex-direction: column; }
.flywheel-stage {
    position: relative; flex: 1;
    display: grid; place-items: center;
    min-height: 300px; padding: 0.25rem 0;
}
.flywheel-stage svg { width: 100%; max-width: 330px; height: auto; overflow: visible; }

/* track + animated progress comet */
.fw-track { fill: none; stroke: var(--rule); stroke-width: 6; }
.fw-comet {
    fill: none; stroke: url(#fwGrad); stroke-width: 6; stroke-linecap: round;
    transform-box: fill-box; transform-origin: center;   /* rotate exactly about the ring centre */
    animation: fw-spin 9s linear infinite;
    filter: drop-shadow(0 0 5px rgba(42,254,183,0.5));
}
.fw-comet-dot { fill: #2AFEB7; transform-box: fill-box; transform-origin: center; }
@keyframes fw-spin { to { transform: rotate(360deg); } }
.fw-acc { fill: #2AFEB7; stroke: none; opacity: 0.9; transition: fill 240ms ease; }
.fw-node.active .fw-acc { fill: #06302a; }

/* connector arcs between steps */
.fw-conn { fill: none; stroke: var(--ink-mute); stroke-width: 1.25; opacity: 0.35; marker-end: url(#fwArrow); }

/* nodes */
.fw-node circle.fw-disc {
    fill: var(--surface-glass-strong); stroke: var(--rule); stroke-width: 1.25;
    transition: fill 240ms ease, stroke 240ms ease;
}
.fw-node .fw-ico { stroke: var(--ink-soft); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: stroke 240ms ease; }
.fw-node .fw-lab {
    font-family: var(--font-mono); font-size: 6.6px; letter-spacing: 0.06em; text-transform: uppercase;
    fill: var(--ink-mute); text-anchor: middle; transition: fill 240ms ease;
}
.fw-node.active circle.fw-disc { fill: #2AFEB7; stroke: #0a7d5e; filter: drop-shadow(0 6px 16px rgba(42,254,183,0.6)); }
.fw-node.active .fw-ico { stroke: #06302a; }
.fw-node.active .fw-lab { fill: var(--ink); }

/* center hub */
.fw-hub-outer { fill: url(#fwHub); stroke: var(--rule); stroke-width: 1; }
.fw-hub-ring { fill: none; stroke: var(--rule-soft); stroke-width: 1; }
.fw-center-k { font-family: var(--font-mono); font-size: 6.5px; letter-spacing: 0.18em; fill: var(--ink-mute); text-anchor: middle; }
.fw-center-v { font-family: var(--font-display); font-weight: 750; font-size: 23px; fill: var(--ink); text-anchor: middle; letter-spacing: -0.02em; }
.fw-center-u { font-family: var(--font-mono); font-size: 6.5px; letter-spacing: 0.16em; fill: var(--ink-soft); text-anchor: middle; }

.fw-legend {
    margin-top: 0.4rem;
    font-family: var(--font-mono); font-size: 0.7rem; line-height: 1.6; color: var(--ink-soft);
    border-top: 1px solid var(--rule-soft); padding-top: 0.9rem; min-height: 2.6em;
}
.fw-legend b { color: var(--ink); font-weight: 700; }

@media (prefers-reduced-motion: reduce) { .fw-comet { animation: none; } }

/* ============================================================
   Bond tranche cards
   ============================================================ */
.tranches { margin-top: clamp(2rem, 3.5vw, 3rem); }

/* tab bar */
.tranche-bar {
    display: flex; justify-content: space-between; align-items: flex-end;
    gap: 1rem; flex-wrap: wrap; margin-bottom: 0.4rem;
}
.tranche-bar h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--ink); margin-top: 0.45rem; line-height: 1;
}
.tranche-tabs {
    display: inline-flex; gap: 4px;
    background: var(--surface-deep);
    border: 1px solid var(--rule);
    border-radius: 999px; padding: 4px;
}
.tranche-tabs .tab {
    font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
    color: var(--ink-mute); background: transparent; border: none; border-radius: 999px;
    padding: 0.55rem 1.1rem; cursor: pointer; transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.tranche-tabs .tab:hover { color: var(--ink); }
.tranche-tabs .tab.active {
    background: var(--glass-tint-strong); color: var(--ink);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.85), 0 6px 16px -10px rgba(15,61,56,0.5);
}
.tranche-tabs .tab .count {
    font-variant-numeric: tabular-nums; opacity: 0.5; margin-left: 0.35rem;
}
.tranche-tabs .tab.active .count { opacity: 0.7; }

.tab-panel[hidden] { display: none !important; }

.tranche-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 1.5rem;
    margin-top: clamp(1.1rem, 2.2vw, 1.6rem);
}
.tranche {
    background: var(--glass-tint);
    border: 1px solid var(--glass-rim);
    border-radius: 22px;
    padding: 1.6rem 1.6rem 1.5rem;
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
    transition: transform 260ms cubic-bezier(.2,.7,.2,1), border-color 260ms ease, box-shadow 260ms ease;
}
.tranche::before {
    content: '';
    position: absolute; inset: 0 0 auto 0; height: 3px;
    background: linear-gradient(90deg, transparent, rgba(42,254,183,0.0));
}
/* A tranche that can be bought right now is the live variant: accent wash, accent rim, accent glow. */
.tranche.is-live { background: var(--glass-live-tint); border-color: var(--glass-live-rim); box-shadow: var(--glass-live-shadow); }
.tranche.is-live::before { background: linear-gradient(90deg, #2AFEB7, rgba(42,254,183,0)); }
.tranche:hover {
    transform: translateY(-3px);
    border-color: rgba(15,61,56,0.3);
    box-shadow: var(--glass-shadow-lift);
}
.tranche-top {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
    margin-bottom: 1.3rem;
}
.tranche-name {
    font-family: var(--font-display);
    font-variation-settings: 'opsz' 144,'SOFT' 30;
    font-weight: 420; font-style: italic;
    font-size: 1.5rem; color: var(--ink); line-height: 1; margin: 0;
}
.tranche-ticker {
    font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em;
    color: var(--ink-mute); text-transform: uppercase; margin-top: 0.4rem; display: block;
}
.badge {
    font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em;
    text-transform: uppercase; padding: 0.32rem 0.6rem; border-radius: 999px;
    white-space: nowrap; border: 1px solid var(--rule);
    display: inline-flex; align-items: center; gap: 0.4rem;
}
.badge::before { content:''; width:6px; height:6px; border-radius:50%; background: currentColor; }
.badge.live { color:#0a7d5e; background: rgba(42,254,183,0.16); border-color: rgba(42,254,183,0.55); }
.badge.live::before { animation: pulse 2.4s ease-out infinite; box-shadow: 0 0 0 0 rgba(42,254,183,0.7); }
.badge.matured { color: var(--ink-soft); background: var(--surface-deep); }
.badge.upcoming { color:#7a5a12; background: rgba(245,196,86,0.18); border-color: rgba(245,196,86,0.55); }

/* metric pair grid inside card */
.tranche-metrics {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
    background: var(--rule-soft);
    border: 1px solid var(--rule-soft);
    border-radius: 14px; overflow: hidden; margin-bottom: 1.3rem;
}
.tm {
    background: rgba(244,248,242,0.35);
    padding: 0.85rem 0.95rem;
}
.tm-k {
    font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--ink-mute); margin-bottom: 0.35rem;
}
.tm-v {
    font-family: var(--font-display);
    font-variation-settings: 'opsz' 60,'SOFT' 20;
    font-size: 1.18rem; color: var(--ink); font-feature-settings: 'tnum','lnum'; line-height: 1.1;
}

/* strike distance gauge */
.gauge { margin-bottom: 1.2rem; }
.gauge-head {
    display: flex; justify-content: space-between; align-items: baseline;
    font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.04em;
    color: var(--ink-mute); margin-bottom: 0.55rem;
}
.gauge-head b { color: var(--ink); font-weight: 600; }
.gauge-track {
    position: relative; height: 8px; border-radius: 999px;
    background: rgba(15,61,56,0.12); overflow: visible;
}
.gauge-fill {
    position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px;
    background: linear-gradient(90deg, #69C0B1, #2AFEB7);
    transition: width 700ms cubic-bezier(.2,.7,.2,1);
}
.gauge-strike {
    position: absolute; top: -4px; bottom: -4px; width: 2px;
    background: var(--ink); border-radius: 2px;
}
.gauge-strike::after {
    content: ''; position: absolute; top: -5px; left: 50%; transform: translateX(-50%);
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--ink);
}

/* capacity bar */
.capacity { margin-bottom: 1.4rem; }
.capacity-head {
    display: flex; justify-content: space-between; align-items: baseline;
    font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.04em;
    color: var(--ink-mute); margin-bottom: 0.5rem;
}
.capacity-head b { color: var(--ink); font-weight: 600; }
.capacity-track {
    height: 10px; border-radius: 999px; background: rgba(15,61,56,0.1); overflow: hidden;
}
.capacity-fill {
    height: 100%; border-radius: 999px;
    background: repeating-linear-gradient(45deg, #2AFEB7, #2AFEB7 8px, #69C0B1 8px, #69C0B1 16px);
    background-size: 200% 100%;
    width: 0; transition: width 900ms cubic-bezier(.2,.7,.2,1);
}
.tranche.is-live .capacity-fill { animation: cap-flow 2.4s linear infinite; }
@keyframes cap-flow { to { background-position: 32px 0; } }

/* action button (uses animated-button base but full-width) */
.tranche-action {
    display: flex; align-items: center; justify-content: center;
    width: 100%;
    font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
    font-weight: 600; color: var(--ink);
    padding: 0.95rem 1.2rem; border-radius: 14px;
    background: var(--glass-tint-strong);
    border: 1px solid var(--glass-rim);
    box-shadow: var(--glass-shadow-pill);
    cursor: pointer; transition: transform 200ms ease, background 200ms ease, border-color 200ms ease;
}
.tranche.is-live .tranche-action {
    background: var(--glass-accent-tint); border-color: var(--glass-accent-rim); color: #06302a;
    box-shadow: var(--glass-accent-shadow);
}
.tranche-action:hover { transform: translateY(-2px); border-color: rgba(15,61,56,0.32); }
.tranche.is-live .tranche-action:hover { background: var(--glass-accent-tint-hover); }
.tranche-action:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.tranche-foot {
    margin-top: 0.85rem; text-align: center;
    font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.03em; color: var(--ink-mute);
}

/* countdown chip */
.countdown {
    font-variant-numeric: tabular-nums;
    font-family: var(--font-mono);
}

/* empty state for the current-tranches section */
.tranche-empty {
    grid-column: 1 / -1;
    display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem;
    background: var(--surface-deep);
    border: 1px dashed var(--rule);
    border-radius: 18px;
    padding: 1.8rem 1.8rem;
}
.tranche-empty .te-badge {
    font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--ink-soft); background: var(--surface-glass-strong);
    border: 1px solid var(--rule); border-radius: 999px; padding: 0.3rem 0.7rem;
}
.tranche-empty h4 {
    font-family: var(--font-display); font-weight: 680; font-size: 1.25rem; color: var(--ink); letter-spacing: -0.015em;
}
.tranche-empty p { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.6; max-width: 52ch; }
.tranche-empty a {
    font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
    color: #06302a; background: var(--glass-accent-tint); border:1px solid var(--glass-accent-rim); box-shadow:var(--glass-accent-shadow); border-radius:999px; padding: 0.7rem 1.1rem; text-decoration: none;
    transition: transform 160ms ease, background 160ms ease;
}
.tranche-empty a:hover { transform: translateY(-1px); background:var(--glass-accent-tint-hover); }

/* ============================================================
   Maturity ladder — Gantt (label column + dated track)
   ============================================================ */
.ladder { margin-top: clamp(2rem, 3.5vw, 3rem); }
.ladder-panel {
    margin-top: 1.4rem;
    background: var(--glass-tint);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-rim);
    border-radius: 20px;
    padding: 1.4rem 1.5rem 1rem;
    box-shadow: var(--glass-shadow);
}
.ladder-grid { position: relative; }
.ladder-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    align-items: center;
    gap: 14px;
    padding: 7px 0;
}
.ladder-rl { text-align: right; line-height: 1.15; }
.ladder-rl .lname {
    display: block; font-family: var(--font-display); font-weight: 650;
    font-size: 0.92rem; color: var(--ink); letter-spacing: -0.01em;
}
.ladder-rl .lstrike {
    font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.04em; color: var(--ink-mute);
}
.ladder-rt { position: relative; height: 30px; }
.ladder-rt::before {  /* faint baseline track */
    content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px;
    background: var(--rule-soft);
}
.ladder-seg {
    position: absolute; top: 50%; transform: translateY(-50%);
    height: 22px; min-width: 6px; border-radius: 7px;
    border: 1px solid var(--rule);
    background: var(--surface-glass-strong);
    box-shadow: 0 6px 14px -10px rgba(15,61,56,0.5);
}
.ladder-seg.live {
    background: linear-gradient(90deg, #2AFEB7, #69C0B1);
    border-color: #2AFEB7;
    box-shadow: 0 8px 18px -8px rgba(42,254,183,0.7);
}
.ladder-seg.upcoming { background: rgba(245,196,86,0.30); border-color: rgba(245,196,86,0.7); }
.ladder-seg.matured { background: rgba(15,61,56,0.16); border-color: rgba(15,61,56,0.28); }
.ladder-seg-label {
    position: absolute; top: 50%; transform: translateY(-50%);
    left: calc(100% + 8px); white-space: nowrap;
    font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.02em; color: var(--ink-soft);
}
.ladder-seg-label.flip { left: auto; right: calc(100% + 8px); }
.ladder-today {
    position: absolute; top: -2px; bottom: -2px; width: 2px; z-index: 3;
    background: #14b88f;
}
.ladder-today::before {
    content: ''; position: absolute; top: -3px; left: 50%; transform: translateX(-50%);
    width: 7px; height: 7px; border-radius: 50%; background: #14b88f;
    box-shadow: 0 0 0 3px rgba(20,184,143,0.22);
}
.ladder-axisrow { padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--rule-soft); }
.ladder-scale {
    position: relative; height: 14px;
    font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.04em; color: var(--ink-mute);
}
.ladder-tick { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.ladder-tick:first-child { transform: none; }
.ladder-tick:last-child { transform: translateX(-100%); }
.ladder-legend {
    display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: 0.9rem;
    font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.04em; color: var(--ink-mute);
}
.ladder-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.ladder-legend i { width: 12px; height: 8px; border-radius: 3px; display: inline-block; }
.lg-live { background: linear-gradient(90deg,#2AFEB7,#69C0B1); }
.lg-mat { background: rgba(15,61,56,0.22); }
.lg-up { background: rgba(245,196,86,0.45); }

@media (max-width: 600px) {
    .ladder-row { grid-template-columns: 96px 1fr; gap: 8px; }
    .ladder-rl .lname { font-size: 0.78rem; }
    .ladder-seg-label { font-size: 0.56rem; }
}

@media (max-width: 720px) {
    .payoff-readout { grid-template-columns: 1fr; }
    .payoff-readout .ro { border-right: none; border-bottom: 1px solid var(--rule-soft); padding: 0.7rem 0; }
    .payoff-readout .ro:first-child { padding-top: 0; }
    .payoff-readout .ro:last-child { border-bottom: none; padding-bottom: 0; }
    .tranche-metrics { grid-template-columns: 1fr 1fr; }
}

/* ----- how it works steps (reuses strategy vibe) ----- */
.howto { margin-top: clamp(2rem, 3.5vw, 3rem); }
.howto-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem;
}
.howto-step { position: relative; padding-top: 1.4rem; border-top: 1px solid var(--rule); }
.howto-num {
    font-family: var(--font-display); font-variation-settings:'opsz' 144,'SOFT' 20;
    font-size: 2.4rem; color: var(--ink); opacity: 0.25; line-height: 1; margin-bottom: 0.6rem;
}
.howto-step h4 {
    font-family: var(--font-display); font-style: italic; font-weight: 420;
    font-size: 1.2rem; color: var(--ink); margin-bottom: 0.5rem;
}
.howto-step p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.65; }
@media (max-width: 760px) { .howto-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Wallet button + mint/redeem modal
   ============================================================ */
.wallet-btn {
    font-family: var(--font-mono);
    font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
    color: #06302a; background: var(--glass-accent-tint);
    border: 1px solid var(--glass-accent-rim); border-radius: 999px;
    padding: 0.5rem 1rem; cursor: pointer;
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
    box-shadow: var(--glass-accent-shadow);
    white-space: nowrap;
}
.wallet-btn:hover { transform: translateY(-1px); background: var(--glass-accent-tint-hover); }
.wallet-btn.connected {
    background: var(--glass-tint-strong); color: var(--ink);
    border-color: var(--glass-rim); box-shadow: var(--glass-shadow-pill);
}
.wallet-btn.connected::before {
    content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
    background: #2AFEB7; margin-right: 0.5rem; vertical-align: middle;
}

.modal-overlay {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(15, 61, 56, 0.34);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    display: none; align-items: center; justify-content: center;
    padding: 1.2rem; opacity: 0; transition: opacity 200ms ease;
}
.modal-overlay.open { display: flex; opacity: 1; }
.modal-card {
    width: 100%; max-width: 430px; position: relative;
    background: var(--glass-tint-strong); background-color: #DCF1E8;
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    border: 1px solid var(--rule);
    border-radius: 24px; padding: 1.9rem 1.8rem 1.6rem;
    box-shadow: var(--glass-specular), 0 50px 90px -40px rgba(9,52,45,0.7);
    transform: translateY(8px) scale(0.98); transition: transform 220ms cubic-bezier(.2,.7,.2,1);
}
.modal-overlay.open .modal-card { transform: translateY(0) scale(1); }
.modal-close {
    position: absolute; top: 1rem; right: 1.1rem;
    background: none; border: none; font-size: 1.6rem; line-height: 1;
    color: var(--ink-mute); cursor: pointer; transition: color 160ms ease;
}
.modal-close:hover { color: var(--ink); }
.modal-eyebrow {
    font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--ink-mute); margin-bottom: 0.5rem;
}
.modal-title {
    font-family: var(--font-display); font-style: italic; font-weight: 420;
    font-size: 1.7rem; color: var(--ink); margin: 0 0 0.6rem;
}
.modal-meta {
    font-family: var(--font-mono); font-size: 0.72rem; line-height: 1.7; color: var(--ink-soft);
    border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft);
    padding: 0.8rem 0; margin-bottom: 1.2rem;
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem 1rem;
}
.modal-meta b { color: var(--ink); font-weight: 600; }
.modal-label {
    display: block; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--ink-mute); margin-bottom: 0.5rem;
}
.modal-input-row { position: relative; display: flex; align-items: center; }
.modal-input {
    width: 100%; font-family: var(--font-display); font-size: 1.6rem; color: var(--ink);
    background: rgba(15,61,56,0.05); border: 1px solid var(--rule);
    border-radius: 14px; padding: 0.8rem 4rem 0.8rem 1rem; outline: none;
    font-feature-settings: 'tnum','lnum';
}
.modal-input:focus { border-color: rgba(42,254,183,0.7); }
.modal-max {
    position: absolute; right: 0.6rem;
    font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; font-weight: 600;
    color: #06302a; background:var(--glass-accent-tint); border:1px solid var(--glass-accent-rim); box-shadow:var(--glass-accent-shadow); border-radius:999px;
    padding: 0.35rem 0.55rem; cursor: pointer;
}
.modal-balance {
    font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-mute);
    margin: 0.6rem 0 1.3rem;
}
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.modal-btn {
    font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
    font-weight: 600; padding: 0.9rem 1rem; border-radius: 12px; cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, opacity 160ms ease; border: 1px solid var(--rule);
}
.modal-btn.ghost { background: var(--glass-tint-strong); border-color: var(--glass-rim); box-shadow: var(--glass-shadow-pill); color: var(--ink); }
.modal-btn.primary { background: var(--glass-accent-tint); color: #06302a; border-color: var(--glass-accent-rim); box-shadow: var(--glass-accent-shadow); }
.modal-btn:hover:not(:disabled) { transform: translateY(-1px); }
.modal-btn.primary:hover:not(:disabled) { background: var(--glass-accent-tint-hover); }
.modal-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.modal-status {
    margin-top: 1rem; min-height: 1.1rem;
    font-family: var(--font-mono); font-size: 0.7rem; line-height: 1.6; color: var(--ink-soft);
    word-break: break-word;
}
.modal-status a { color: var(--ink); }
.modal-status.err { color: #b4451f; }
.modal-status.ok { color: #0a7d5e; }
@media (max-width: 480px) { .modal-actions { grid-template-columns: 1fr; } }

/* disclaimer */
.disclaimer {
    margin-top: 3rem; padding: 1.1rem 1.3rem;
    border: 1px dashed var(--rule); border-radius: 14px;
    font-family: var(--font-mono); font-size: 0.68rem; line-height: 1.7; letter-spacing: 0.01em;
    color: var(--ink-mute); background: var(--surface-deep);
}

/* ============================================================
   Tighter, denser rhythm (treasury dashboard, not a landing page)
   ============================================================ */
.bonds-main .faqs { margin-top: clamp(2rem, 3.5vw, 3rem) !important; margin-bottom: 2.5rem !important; }
.bonds-main .section-header { margin-bottom: 0.9rem; }
.bonds-main .section-note { margin-bottom: 0.25rem; }
.tranche-grid { margin-top: clamp(1.1rem, 2.2vw, 1.6rem); gap: 1.25rem; }
.howto-grid { margin-top: 1.4rem; gap: 1.25rem; }
.panel { padding: clamp(1.3rem, 2.4vw, 1.85rem); }
.bonds-hero p { margin-top: 1rem; }
.bonds-hero .cta-buttons { margin-top: 1.6rem !important; }
.disclaimer { margin-top: 2rem; }

/* ============================================================
   Win-win section
   ============================================================ */
.winwin { margin-top: clamp(2rem, 3.5vw, 3rem); }
.winwin-grid {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch;
    gap: 1.1rem; margin-top: clamp(1.1rem, 2.2vw, 1.6rem);
}
.ww-card {
    position: relative; overflow: hidden;
    background: var(--glass-tint);
    border: 1px solid var(--glass-rim); border-radius: 20px;
    padding: 1.5rem 1.6rem 1.4rem;
    box-shadow: var(--glass-shadow);
}
.ww-card.treasury { border-color: rgba(42,254,183,0.4); }
.ww-tag {
    font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--ink-mute); margin-bottom: 1rem;
}
.ww-big {
    font-family: var(--font-display); font-weight: 760; letter-spacing: -0.03em;
    font-size: clamp(2.2rem, 4vw, 3rem); color: var(--ink); line-height: 1;
    display: flex; align-items: baseline; gap: 0.55rem; flex-wrap: wrap;
}
.ww-big span:not(.ww-num) {
    font-family: var(--font-mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--ink-mute);
}
.ww-num { font-variant-numeric: tabular-nums; }

.ww-asym { margin: 1.3rem 0 1.1rem; display: grid; gap: 0.7rem; }
.ww-asym-row { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 0.7rem; }
.ww-asym-k { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); }
.ww-bar { height: 9px; border-radius: 999px; background: rgba(15,61,56,0.1); overflow: hidden; }
.ww-floor { display: block; height: 100%; width: 12%; border-radius: 999px; background: rgba(15,61,56,0.32); }
.ww-up { display: block; height: 100%; width: 100%; border-radius: 999px; background: linear-gradient(90deg, #69C0B1, #2AFEB7); }
.ww-asym-v { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600; color: var(--ink); }

.ww-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule-soft); border: 1px solid var(--rule-soft); border-radius: 12px; overflow: hidden; margin: 1.3rem 0 1.1rem; }
.ww-stat { background: rgba(244,248,242,0.4); padding: 0.8rem 0.9rem; }
.ww-k { display: block; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 0.3rem; }
.ww-v { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); font-feature-settings: 'tnum','lnum'; }

.ww-line { font-family: var(--font-mono); font-size: 0.72rem; line-height: 1.7; color: var(--ink-soft); }

.ww-join { display: flex; align-items: center; justify-content: center; }
.ww-join span {
    width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--surface-glass-strong); border: 1px solid var(--rule);
    color: var(--ink-soft); font-size: 1rem; font-weight: 700;
}
.ww-spark { display: block; width: 100%; height: 48px; margin-top: 1rem; opacity: 0.9; }

@media (max-width: 760px) {
    .winwin-grid { grid-template-columns: 1fr; }
    .ww-join { transform: rotate(90deg); margin: -0.2rem 0; }
}

/* breathing room on the sides of the How-bonding-works section */
.howto { padding-inline: clamp(0.5rem, 5vw, 4rem); }
@media (max-width: 760px) { .howto { padding-inline: 0.5rem; } }

/* Tranche III outcome details and transaction feedback. */
.tranche-settlement { display:grid; grid-template-columns:minmax(0,1fr); gap:4px; margin:18px 0; padding-top:14px; border-top:1px solid rgba(15,61,56,.16); font-size:12px; }
.tranche-settlement span { margin-top:7px; color:#376b64; font-family:'JetBrains Mono',monospace; font-size:10px; text-transform:uppercase; letter-spacing:.6px; }
.tranche-settlement b, .tranche-settlement a { overflow-wrap:anywhere; font-weight:600; }
.tranche-settlement a, .bond-status a { color:var(--ink); text-decoration:underline; text-underline-offset:3px; }
.bond-status { padding:14px 18px; margin:14px 0; background:var(--glass-tint-strong); color:#0f3d38; border:1px solid var(--glass-rim); border-radius:14px; overflow-wrap:anywhere; }
.bond-status[hidden] { display:none; }

/* This page has no mobile menu drawer: keep wallet access in the header. */
@media (max-width:768px) {
    .bonds-main .tranche-grid { grid-template-columns:minmax(0,1fr); }
    .bonds-main header .logo div { font-size:clamp(20px,5.8vw,26px) !important; }
    .bonds-main header nav { margin-left:auto; }
    .bonds-main header .social-nav {
        position:static; display:flex; flex-direction:row; width:auto; height:auto;
        opacity:1; transform:none; overflow:visible; margin:0; padding:0; gap:0;
        background:none; border:0; border-radius:0; box-shadow:none; backdrop-filter:none;
    }
    .bonds-main header .social-nav > li:not(:first-child) { display:none; }
    .bonds-main header .wallet-btn { min-height:40px; padding:10px 12px; font-size:10px; letter-spacing:1px; }
}

/* BLB is an issuance desk: compact introduction, issuance first, supporting context below. */
.blb-main { max-width:1160px; }
.blb-main > section { margin:0; padding:28px 0; }
.blb-main > .bonds-hero { grid-template-columns:minmax(0,1fr); padding:36px 0 28px; }
.blb-main .bonds-hero h1 { font-size:clamp(34px,4.1vw,52px); }
.blb-main .bonds-hero p { font-size:15px; line-height:1.7; max-width:76ch; }
.blb-main .bonds-hero-aside { max-width:440px; margin:0; }
.blb-main .tranches { border-top:1px solid var(--rule); scroll-margin-top:90px; }
.blb-main .section-note { max-width:88ch; font-size:13px; line-height:1.7; }
.blb-main .tranche-empty { padding:24px; text-align:left; }
.blb-main .tranche-empty p { max-width:80ch; margin:12px 0; }
.blb-main .tranche-empty h4 { font-size:24px; }
.blb-main > .stats-bar { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.6fr); gap:24px; padding:22px 24px; margin:8px 0 28px; }
.blb-main .stats-hero { padding:0 24px 0 0; margin:0; border-bottom:0; border-right:1px solid var(--rule-soft); }
.blb-main .stats-hero-meta { font-size:10px; margin-bottom:8px; letter-spacing:.1em; }
.blb-main .stats-hero-value { font-size:32px; }
.blb-main .stats-hero-sub { font-size:10px; gap:6px; margin-top:8px; }
.blb-main .stats-hero-divider, .blb-main .stats-hero-sub > span:last-child { display:none; }
.blb-main .stats-bar .stats-grid { align-items:center; }
.blb-main .stats-bar .stat-card { padding:4px 12px !important; }
.blb-main .stats-bar .stat-label { font-size:9px !important; letter-spacing:.08em !important; }
.blb-main .stats-bar .stat-value { font-size:21px !important; }
.blb-main .viz-grid { margin:0 0 8px; }
.blb-main .panel { min-width:0; padding:24px; margin:0; }
.blb-main .payoff-stage { height:auto; min-height:0; aspect-ratio:auto; }
.blb-main .howto { padding-inline:0; }
.blb-main .faqs { margin:0 !important; padding:28px 0; }
.blb-main .winwin { margin-top:0; }
@media(max-width:900px) {
  .blb-main > .bonds-hero { grid-template-columns:minmax(0,1fr); gap:24px; }
  .blb-main .bonds-hero-aside { max-width:none; }
  .blb-main > .stats-bar { grid-template-columns:minmax(0,1fr); gap:18px; }
  .blb-main .stats-hero { border-right:0; border-bottom:1px solid var(--rule-soft); padding:0 0 16px; }
}
@media(max-width:600px) {
  .blb-main > .bonds-hero { padding:28px 0; }
  .blb-main > section, .blb-main .faqs { padding:24px 0; }
  .blb-main .product-actions { gap:8px; margin-top:20px; }
  .blb-main .product-button { font-size:10px; padding:12px 14px; }
  .blb-main .panel, .blb-main .tranche-empty { padding:20px; }
  .blb-main .panel-head { flex-wrap:wrap; gap:12px; }
  .blb-main > .stats-bar { padding:20px; }
  .blb-main .stats-bar .stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:18px 0 !important; }
  .blb-main .stats-bar .stat-card:nth-child(odd) { padding-left:0 !important; }
  .blb-main .stats-bar .stat-card:nth-child(even) { border-right:0 !important; }
}

/* BLB combines a fixed bond outcome with a separate participation reward. */
.blb-reward-strip { display:flex; flex-direction:column; gap:5px; padding:14px 18px; margin-top:12px; border:1px solid var(--glass-rim); border-radius:14px; color:var(--ink); background:var(--glass-tint); box-shadow:var(--glass-shadow-pill); }
.blb-reward-strip b { font-size:15px; }
.blb-reward-strip span { font-size:12px; color:var(--ink-soft); }
.blb-main .blb-payoff-grid { grid-template-columns:minmax(0,1fr); }
.blb-main .payoff { scroll-margin-top:90px; }
.blb-main .payoff .panel-head { align-items:flex-start; flex-wrap:wrap; gap:14px; }
.blb-main .payoff .panel-head > div { flex:1 1 420px; }
.blb-main .payoff .panel-sub { max-width:85ch; }
.blb-main .payoff .status-pill { flex-shrink:0; }
.blb-main .payoff-stage svg { overflow:hidden; }
.blb-main .payoff-axis-label { font-size:11px; letter-spacing:0; text-transform:none; }
.blb-main .payoff-strike-tag { font-size:11px; letter-spacing:0; }
.blb-main .payoff-hstr-curve { stroke:#13836A; }
.payoff-legend { display:flex; flex-wrap:wrap; align-items:center; gap:10px 18px; margin-top:14px; font-size:12px; color:var(--ink-soft); }
.payoff-legend span { display:inline-flex; gap:7px; align-items:center; }
.payoff-legend i { width:18px; height:3px; background:#0F3D38; border-radius:2px; }
.payoff-legend .hstr-key { background:#13836A; }
.payoff-legend b { color:var(--ink); }
.payoff-chart-note { margin:12px 0 0; font-size:12px; line-height:1.6; color:var(--ink-soft); max-width:90ch; }
.ro-reward { font-size:14px; line-height:1.4; margin-top:8px; font-weight:650; color:#12644F; }
.payoff-reward-note { margin-top:20px; padding:14px 16px; border:1px solid var(--rule-soft); border-radius:12px; background:rgba(234,255,248,.5); color:var(--ink); font-size:13px; }
.payoff-reward-note p { font-size:12px; line-height:1.6; color:var(--ink-soft); margin:6px 0 0; max-width:100ch; }
@media(min-width:601px) {
  .blb-main .payoff-readout { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .blb-main .payoff-readout .ro { border-bottom:0; padding:0 16px; border-right:1px solid var(--rule-soft); }
  .blb-main .payoff-readout .ro:first-child { padding-left:0; }
  .blb-main .payoff-readout .ro:last-child { border-right:0; padding-right:0; }
}

.payoff-reward-note summary { cursor:pointer; font-weight:650; line-height:1.5; }
.payoff-reward-note summary:focus-visible { outline:2px solid var(--ink); outline-offset:4px; }

/* The allocation diagram follows the article's glass panel, 75/25 split and zap flow. */
.blb-allocation { background:linear-gradient(160deg,rgba(255,255,255,.72),rgba(255,255,255,.45)); border-radius:24px; padding:clamp(20px,3vw,32px); box-shadow:0 24px 70px -36px rgba(9,42,37,.55); color:var(--ink); }
.blb-allocation .ochead { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.blb-allocation .ochead b { font-size:18px; letter-spacing:-.015em; }
.blb-allocation .pill { font:500 10px/1.5 var(--font-mono); padding:4px 10px; border-radius:99px; background:rgba(42,254,183,.22); }
.blb-allocation .split-bar { display:flex; height:72px; border-radius:14px; overflow:hidden; margin:20px 0 16px; }
.blb-allocation .seg { position:relative; display:flex; flex-direction:column; justify-content:center; padding:0 18px; min-width:0; }
.blb-allocation .seg b { font-size:25px; line-height:1.1; font-weight:600; }
.blb-allocation .seg span { font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.blb-allocation .seg.hype { flex:3; background:linear-gradient(135deg,#0E4F47,#0B362F); color:#EAFFF8; }
.blb-allocation .seg.hype b { color:#2AFEB7; }
.blb-allocation .seg.lp { flex:1; background:linear-gradient(135deg,#2AFEB7,#69C0B1); color:#06231E; }
.blb-allocation .bolt { position:absolute; top:7px; right:9px; font-style:normal; font-size:13px; }
.blb-allocation .snotes { display:grid; gap:8px; }
.blb-allocation .snote { position:relative; font:12px/1.65 var(--font-mono); color:var(--ink-soft); padding-left:17px; }
.blb-allocation .snote::before { content:''; position:absolute; left:0; top:7px; width:7px; height:7px; border-radius:50%; background:#0A9E7C; }
.blb-allocation .snote.zap::before { background:#2AFEB7; box-shadow:0 0 0 3px rgba(42,254,183,.28); }
.blb-allocation .zapflow { display:grid; grid-template-columns:minmax(230px,320px) 1fr; gap:24px; margin-top:24px; padding-top:22px; border-top:1px dashed var(--rule); }
.blb-allocation .zf-head { font:10px/1.6 var(--font-mono); letter-spacing:.12em; text-transform:uppercase; color:var(--ink-mute); }
.blb-allocation .zf-chart svg { width:100%; height:auto; display:block; margin-top:8px; }
.blb-allocation .zline { fill:none; stroke:#0E4F47; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }
.blb-allocation .zmark { stroke:rgba(15,61,56,.4); stroke-dasharray:2 3; }
.blb-allocation .zdot-core { fill:#06231E; }
.blb-allocation .zdot-halo { fill:none; stroke:#2AFEB7; stroke-width:2; }
.blb-allocation .ztag { font:7px var(--font-mono); fill:#0A463D; letter-spacing:.02em; }
.blb-allocation .axl { font:8px var(--font-mono); fill:var(--ink-mute); }
.blb-allocation .zf-steps { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.blb-allocation .zf-steps li { display:flex; gap:14px; align-items:flex-start; border-radius:14px; padding:12px 15px; background:rgba(255,255,255,.52); }
.blb-allocation .zf-ico { flex:0 0 32px; height:32px; border-radius:10px; display:flex; align-items:center; justify-content:center; font:600 11px var(--font-mono); background:linear-gradient(135deg,#0E4F47,#0B362F); color:#2AFEB7; }
.blb-allocation .hot .zf-ico { background:linear-gradient(135deg,#2AFEB7,#69C0B1); color:#06231E; }
.blb-allocation .zf-steps b { display:block; font-size:15px; }
.blb-allocation .zf-steps p { margin:3px 0 0; font-size:13px; line-height:1.5; color:var(--ink-soft); }
.blb-allocation .upsides { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; margin-top:21px; }
.blb-allocation .upside { border-radius:14px; padding:14px 16px; background:linear-gradient(160deg,rgba(42,254,183,.13),rgba(42,254,183,.04)); border:1px solid rgba(42,254,183,.3); }
.blb-allocation .upside b { display:block; font-size:14px; margin-bottom:3px; }
.blb-allocation .upside span { font-size:12px; line-height:1.5; color:var(--ink-soft); }
.blb-main > .blb-reward-strip { margin-bottom:28px; }
@media(max-width:760px) { .blb-allocation .zapflow { grid-template-columns:1fr; } .blb-allocation .zf-chart { max-width:320px; } }
@media(max-width:560px) { .blb-allocation .seg { padding:0 14px; } .blb-allocation .seg span { display:none; } .blb-allocation .upsides { grid-template-columns:1fr; } }
/* Each payout branch has its own plot with solid bond and dotted total-value curves. */
.blb-chart-panel { fill:rgba(234,255,248,.25); stroke:var(--rule); stroke-width:1; }
.blb-chart-panel.is-selected { fill:rgba(234,255,248,.65); stroke:#13836A; stroke-width:2; }
.blb-chart-heading { font:650 15px var(--font-display); fill:var(--ink); }
.blb-main .payoff-axis-label { font-size:10px; }
.blb-main .payoff-readout { gap:16px; }
.blb-main .ro-v { font-size:25px; overflow-wrap:anywhere; }
.blb-main .ro-total { font-size:21px; }
.blb-main .ro-token { color:#12644F; }
.blb-main .ro-detail { color:var(--ink-soft); font-size:12px; line-height:1.5; margin-top:8px; }

.blb-main .payoff-axis-caption { margin:0 0 12px; font-size:11px; line-height:1.6; color:var(--ink-soft); }

/* The example reward is included in both the dotted curves and the combined readout. */
.blb-example-terms { display:flex; flex-direction:column; gap:5px; margin:0 0 14px; padding:12px 16px; border:1px solid var(--rule); border-radius:12px; background:rgba(234,255,248,.55); color:var(--ink); font-size:13px; line-height:1.5; }
.blb-example-terms span { font-size:12px; }
.blb-example-terms > span { color:var(--ink-soft); }
.blb-main .payoff-legend { margin:0 0 10px; }
.payoff-legend .reward-key { background:none; height:0; border-top:3px dotted #007A5F; border-radius:0; }
.blb-main .payoff-hstr-curve { stroke:var(--ink); }
.payoff-reward-curve { fill:none; stroke:#007A5F; stroke-width:3; stroke-dasharray:1 6; stroke-linecap:round; }
.payoff-reward-dot { fill:#2AFEB7; stroke:#007A5F; stroke-width:2; }
.payoff-reward-connector { stroke:#007A5F; stroke-width:1; stroke-dasharray:2 3; }

/* The next BLB issuance remains explorable before a contract is configured. */
.blb-upcoming { grid-column:1 / -1; padding:0; border-color:rgba(15,61,56,.22); }
.blb-upcoming:hover { transform:none; }
.bu-header { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:24px 28px; border-bottom:1px solid var(--rule-soft); }
.bu-eyebrow, .bu-label, .bu-metrics dt, .bu-example, .bu-status { font-family:var(--font-mono); font-size:10px; letter-spacing:.08em; text-transform:uppercase; }
.bu-eyebrow { color:var(--ink-mute); }
.blb-upcoming .bu-header h3 { font-family:var(--font-display); font-size:26px; font-style:normal; font-weight:700; line-height:1.15; margin:7px 0 0; color:var(--ink); }
.bu-status { border:1px solid var(--rule); background:rgba(244,248,242,.5); border-radius:999px; padding:8px 12px; color:var(--ink-soft); white-space:nowrap; }
.bu-body { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
.bu-terms, .bu-deposit { min-width:0; padding:26px 28px; }
.bu-label { color:var(--ink-soft); margin:0; font-weight:500; }
.bu-metrics { display:grid; grid-template-columns:1fr 1fr; gap:24px 16px; margin:22px 0 28px; }
.bu-metrics div { min-width:0; }
.bu-metrics dt { color:var(--ink-mute); margin-bottom:8px; }
.bu-metrics dd { color:var(--ink); font:600 24px/1.15 var(--font-display); margin:0; }
.bu-metrics dd small { font:500 11px var(--font-mono); }
.bu-metrics .bu-pending { font-size:15px; font-weight:500; }
.bu-capacity { border-top:1px solid var(--rule-soft); padding-top:20px; }
.bu-capacity > div:first-child { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; color:var(--ink-soft); font-size:12px; }
.bu-capacity b { color:var(--ink); }
.bu-capacity-track { height:6px; border-radius:99px; background:rgba(15,61,56,.12); margin:14px 0 8px; }
.bu-hint { display:block; color:var(--ink-soft); font-size:11px; line-height:1.5; }
.bu-analysis { display:inline-block; color:var(--ink); font-size:12px; font-weight:600; text-underline-offset:4px; margin-top:28px; }
.bu-deposit { border-left:1px solid var(--rule-soft); background:rgba(244,248,242,.28); }
.bu-deposit-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.bu-example { color:var(--ink-soft); font-size:9px; }
.bu-input-row { display:flex; align-items:center; gap:12px; border-bottom:1px solid var(--rule); margin-top:12px; padding-bottom:8px; }
.bu-input-row input { width:100%; min-width:0; padding:0; background:transparent; border:0; border-radius:4px; color:var(--ink); font:600 36px/1.2 var(--font-display); box-shadow:none; }
.bu-input-row > span { color:var(--ink-soft); font:500 12px var(--font-mono); }
.bu-input-row input:focus-visible { outline:2px solid #0e816e; outline-offset:4px; }
.bu-deposit .bu-hint { margin:8px 0 18px; min-height:17px; }
.bu-estimates { display:grid; gap:14px; }
.bu-estimates > div { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:6px 12px; }
.bu-estimates > div > span { font-size:12px; color:var(--ink-soft); }
.bu-estimates b { color:var(--ink); font-size:19px; line-height:1.2; }
.bu-estimates small { font:500 10px var(--font-mono); }
.bu-reward { display:flex; flex-direction:column; gap:4px; margin:20px 0; padding-top:16px; border-top:1px solid var(--rule-soft); }
.bu-reward b { font-size:14px; color:#0b6b57; }
.bu-reward span { font-size:11px; color:var(--ink-soft); line-height:1.5; }
.bu-submit { width:100%; border-radius:999px; padding:14px 18px; border:1px solid var(--rule); font:500 11px var(--font-mono); letter-spacing:.06em; text-transform:uppercase; }
.bu-submit:disabled { background:rgba(15,61,56,.10); color:var(--ink-soft); cursor:not-allowed; opacity:1; }
@media (max-width:760px) {
    .bu-body { grid-template-columns:minmax(0,1fr); }
    .bu-deposit { border-left:0; border-top:1px solid var(--rule-soft); }
    .bu-header, .bu-terms, .bu-deposit { padding:22px; }
    .bu-header { flex-wrap:wrap; }
    .bu-metrics { gap:20px 16px; margin:20px 0; }
    .bu-analysis { margin-top:20px; }
}
@media (max-width:380px) {
    .bu-header, .bu-terms, .bu-deposit { padding:18px; }
    .bu-metrics dd { font-size:21px; }
    .bu-metrics .bu-pending { font-size:13px; }
    .bu-input-row input { font-size:32px; }
}

/* Editable predeployment example and reward-inclusive outcomes. */
.bu-strike-row { display:flex; align-items:center; gap:3px; }
.bu-strike-row input { width:100%; min-width:0; max-width:160px; font:inherit; color:inherit; background:rgba(255,255,255,.18); border:0; border-bottom:1px solid var(--rule); border-radius:0; }
.bu-strike-row input:focus { outline:2px solid #13836a; outline-offset:3px; }
.bu-estimates b { display:flex; flex-wrap:wrap; justify-content:flex-end; align-items:baseline; gap:4px; }
.bu-reward-inline { font:600 12px var(--font-display); color:#0b6b57; white-space:nowrap; }

/* Water glass, blur rationing on phones: only the header, the hero card and dialogs really blur. Every other panel
   keeps its tint, rim, specular edge and glow — which is most of the look — and costs nothing to scroll. */
@media (max-width: 768px) {
    .panel, .ladder-panel, .faq-container, footer { -webkit-backdrop-filter: none; backdrop-filter: none; }
}
