/* Excess Cash Overlay product family */
.product-hub-hero{padding:62px 0 28px;max-width:920px}
.product-hub-hero h1{max-width:820px}
.hub-principle{margin-top:20px;border:1px solid #d9e5f4;background:linear-gradient(90deg,#eef5ff,#f6f2ff);border-radius:18px;padding:16px 18px;display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.hub-principle strong{font-size:14px;color:#17375f}.hub-principle span{font-size:12px;color:var(--muted)}

.product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;padding:8px 0 30px;align-items:stretch}
.product-card{position:relative;overflow:hidden;display:flex;flex-direction:column;text-decoration:none;color:inherit;background:#fff;border:1px solid #d9e4f2;border-radius:26px;padding:28px;box-shadow:0 12px 36px rgba(17,45,83,.07);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.product-card::after{content:"";position:absolute;top:-72px;right:-62px;width:250px;height:250px;border-radius:50%;background:radial-gradient(circle at center,rgba(77,103,238,.11),rgba(77,103,238,0) 68%);pointer-events:none}
.product-card.defensive::after{background:radial-gradient(circle at center,rgba(24,176,124,.12),rgba(24,176,124,0) 68%)}
.product-card:hover{transform:translateY(-4px);box-shadow:0 20px 48px rgba(17,45,83,.12);border-color:#c2d4ec}
.product-card.live{background:linear-gradient(180deg,#fff 0%,#f8fbff 100%)}
.product-card.defensive{background:linear-gradient(180deg,#fff 0%,#f8fcfb 100%)}
.product-card-top{position:relative;z-index:1;display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}
.profile-badge{display:inline-flex;align-items:center;gap:7px;font-size:10px;font-weight:900;letter-spacing:.08em;background:#e7f7ef;color:#087a54;border-radius:999px;padding:7px 10px}
.profile-badge::before{content:"";width:7px;height:7px;border-radius:50%;background:#13a66c;box-shadow:0 0 0 3px rgba(19,166,108,.10)}
.muted-badge{background:#eef2f8;color:#536783}.profile-number{font-size:12px;color:#8390a6;font-weight:850}
.product-card h2{position:relative;z-index:1;font-size:30px;margin:0 0 10px;letter-spacing:-.8px;color:#071d49}
.product-card>p{position:relative;z-index:1;margin:0;color:var(--muted);font-size:13px;line-height:1.72;min-height:68px;max-width:94%}
.profile-divider{height:1px;background:var(--line);margin:22px 0 18px}
.profile-subhead{font-size:11px;text-transform:uppercase;letter-spacing:.14em;font-weight:900;color:#677aa1;margin-bottom:14px}
.profile-points{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.profile-points li{display:grid;grid-template-columns:34px 1fr;gap:12px;align-items:center;color:#20385f;font-size:13px;line-height:1.45;font-weight:650}
.point-icon{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#eef1ff;color:#5d62e8;font-size:16px;font-weight:900;box-shadow:inset 0 0 0 1px rgba(93,98,232,.06)}
.product-card.defensive .point-icon{background:#e8f8f2;color:#11966b;box-shadow:inset 0 0 0 1px rgba(17,150,107,.06)}
.profile-footer{border-top:1px solid var(--line);margin-top:auto;padding-top:17px;display:flex;justify-content:space-between;gap:12px;align-items:center}
.profile-footer span{font-size:10px;color:#7d8999}.profile-footer b{font-size:12px;color:#155fc9}.product-card:hover .profile-footer b{transform:translateX(2px)}

.profile-compare-section{margin:10px 0 36px}
.profile-compare-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin:7px 0 18px}
.profile-compare-heading h2{margin:0 0 7px;font-size:30px;letter-spacing:-.7px;color:#071d49}
.profile-compare-heading p{margin:0;max-width:800px;color:var(--muted);font-size:13px;line-height:1.65}
.profile-chart-key{display:flex;gap:14px;flex-wrap:wrap;justify-content:flex-end;white-space:nowrap}
.profile-chart-key span{display:inline-flex;align-items:center;gap:7px;font-size:11px;font-weight:850;color:#52637d}
.profile-chart-key i{display:inline-block;width:9px;height:9px;border-radius:50%}.core-dot{background:#4f62e8}.defensive-dot{background:#11a274}
.profile-chart-card{border:1px solid #d9e4f2;border-radius:26px;background:linear-gradient(180deg,#fff 0%,#f8fbff 100%);padding:22px 22px 18px;box-shadow:0 14px 38px rgba(17,45,83,.07)}
.profile-chart-meta{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:8px}
.profile-chart-meta>div:first-child{display:flex;flex-direction:column;gap:3px}.profile-chart-meta strong{font-size:13px;color:#17375f}.profile-chart-meta span{font-size:10px;color:#7b889b}
.profile-chart-status{font-size:10px;font-weight:800;color:#64758d;background:#f1f5fa;border:1px solid #e1e8f1;border-radius:999px;padding:7px 10px}.profile-chart-status.ready{color:#087a54;background:#eaf7f1;border-color:#d7efe4}.profile-chart-status.error{color:#a13d49;background:#fff1f3;border-color:#f5d9de}
.profile-chart-direction{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin:12px 0 2px}
.profile-chart-direction span{font-size:10px;font-weight:850;color:#60728d;background:#f0f4f9;border:1px solid #e0e7f0;border-radius:999px;padding:6px 9px}
.profile-chart-direction b{font-size:10px;font-weight:900;color:#087a54;background:#eaf7f1;border:1px solid #d7efe4;border-radius:999px;padding:6px 9px}
.profile-chart-wrap{height:440px;position:relative;padding:8px 0 4px}
.profile-chart-insights{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:10px}
.profile-chart-insights>div{border:1px solid #e1e8f1;border-radius:16px;background:rgba(255,255,255,.82);padding:14px 15px}
.profile-chart-insights b{display:block;font-size:13px;color:#17375f;margin:5px 0 4px}.profile-chart-insights p{margin:0;color:#68788e;font-size:11px;line-height:1.55}
.insight-label{font-size:9px;font-weight:900;letter-spacing:.09em}.insight-label.core{color:#4f62e8}.insight-label.defensive{color:#11966b}

.product-explainer{margin:12px 0 34px;border-radius:22px;padding:24px;background:#0d2146;color:#fff;box-shadow:0 16px 42px rgba(11,27,58,.13)}
.product-explainer .eyebrow{color:#b9cdf4}.product-explainer h2{margin:5px 0 18px;font-size:26px;max-width:780px}.product-explainer-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.mini-card{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:16px;padding:15px}.mini-card b{display:block;font-size:13px;margin-bottom:5px}.mini-card span{font-size:11px;line-height:1.55;opacity:.76}
.profile-switch{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 22px}.profile-switch a{font-size:11px;font-weight:850;text-decoration:none;color:#4d607a;background:#fff;border:1px solid var(--line);border-radius:999px;padding:7px 11px}.profile-switch a.active{background:#17375f;color:#fff;border-color:#17375f}
.profile-identity{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:12px}.profile-identity .profile-copy{max-width:760px}.profile-identity h1{margin-bottom:8px}.profile-tag{white-space:nowrap;border-radius:999px;padding:7px 11px;background:#eef4ff;color:#155fc9;font-size:10px;font-weight:900;letter-spacing:.05em}
.profile-private-note{font-size:11px;color:#66778c;margin-top:6px}.profile-private-note strong{color:#2c405e}
@media(max-width:900px){.product-explainer-grid{grid-template-columns:repeat(2,1fr)}.profile-compare-heading{align-items:flex-start;flex-direction:column}.profile-chart-key{justify-content:flex-start}.profile-chart-wrap{height:390px}}
@media(max-width:720px){.product-grid{grid-template-columns:1fr}.profile-identity{flex-direction:column}.product-explainer-grid{grid-template-columns:1fr}.product-card{padding:23px}.product-card>p{min-height:0}.profile-points li{grid-template-columns:32px 1fr}.point-icon{width:32px;height:32px}.profile-footer{align-items:flex-start;flex-direction:column}.profile-chart-card{padding:18px 14px 14px}.profile-chart-meta{align-items:flex-start;flex-direction:column}.profile-chart-direction{align-items:flex-start}.profile-chart-wrap{height:350px}.profile-chart-insights{grid-template-columns:1fr}.profile-compare-heading h2{font-size:26px}}


/* Maturity-aware profile simulator controls */
.maturity-control-panel{grid-template-columns:.78fr 1.25fr 1fr}
@media(max-width:900px){.maturity-control-panel{grid-template-columns:1fr}}


/* Phase 4 — Roll vs Hold public experience */
.roll-panel{display:none;margin-top:18px}
.roll-panel.active{display:block}
.roll-hero-card,.roll-chart-card,.roll-hurdle-card,.roll-table-card,.roll-explainer{border:1px solid #d9e4f2;border-radius:22px;background:#fff;box-shadow:0 12px 34px rgba(17,45,83,.06)}
.roll-hero-card{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;padding:24px;margin-bottom:16px;background:linear-gradient(135deg,#f7fbff 0%,#f6f2ff 100%)}
.roll-hero-card h2{margin:5px 0 9px;font-size:28px;letter-spacing:-.6px;color:#071d49}
.roll-hero-card p{margin:0;max-width:850px;color:#60708a;font-size:13px;line-height:1.65}
.roll-status{display:inline-flex;white-space:nowrap;border-radius:999px;padding:7px 10px;background:#eef3f8;color:#60718a;font-size:10px;font-weight:900}
.roll-status.ready{background:#eaf7f1;color:#087a54}
.roll-status.error{background:#fff1f3;color:#a13d49}
.roll-meta{max-width:310px;margin-top:8px;color:#74839a;font-size:10px;line-height:1.5;text-align:right}

.roll-compare-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,.7fr);gap:16px;margin-bottom:16px}
.roll-chart-card{padding:20px}
.roll-card-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:12px}
.roll-card-head h3{margin:0 0 5px;font-size:17px;color:#17375f}
.roll-card-head p{margin:0;color:#718097;font-size:11px;line-height:1.55;max-width:760px}
.roll-date-chip{white-space:nowrap;border-radius:999px;background:#eef4ff;color:#155fc9;font-size:10px;font-weight:900;padding:7px 10px}
.roll-chart-wrap{position:relative;height:360px}
#rollHoldChartFallback{font-size:12px;color:#8b5560;padding:10px 0}

.roll-hurdle-card{padding:22px;background:linear-gradient(180deg,#10274f,#0d2146);color:#fff}
.roll-hurdle-label{font-size:10px;font-weight:900;letter-spacing:.12em;text-transform:uppercase;color:#b7c9e7}
.roll-hurdle-value{font-size:44px;font-weight:900;letter-spacing:-1.7px;margin:8px 0 7px}
.roll-hurdle-card p{margin:0;color:#d5deeb;font-size:12px;line-height:1.65}
.roll-hurdle-grid{display:grid;gap:8px;margin-top:18px}
.roll-hurdle-grid span{display:flex;justify-content:space-between;gap:14px;align-items:center;border-top:1px solid rgba(255,255,255,.12);padding-top:9px}
.roll-hurdle-grid small{font-size:10px;color:#aebdd3}.roll-hurdle-grid b{font-size:12px}

.roll-table-card{overflow:hidden;margin-bottom:16px}
.roll-table-card .roll-card-head{padding:16px 17px 8px;margin:0}
.roll-table-card table{margin:0}
.roll-table-card tbody tr{cursor:pointer}
.roll-table-card tbody tr:hover{background:#f7f9fc}

.roll-explainer{padding:28px;margin:18px 0;background:linear-gradient(180deg,#fff 0%,#f8fbff 100%)}
.roll-explainer-head{max-width:900px;margin-bottom:20px}
.roll-explainer-head h2{margin:5px 0 8px;font-size:28px;color:#071d49;letter-spacing:-.6px}
.roll-explainer-head p{margin:0;color:#60708a;font-size:13px;line-height:1.7}
.roll-reason-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.roll-reason-grid article{border:1px solid #e1e8f1;border-radius:16px;background:rgba(255,255,255,.9);padding:16px}
.roll-reason-grid article>span{display:inline-flex;width:27px;height:27px;align-items:center;justify-content:center;border-radius:50%;background:#eef2ff;color:#4f62e8;font-size:10px;font-weight:900}
.roll-reason-grid h3{margin:10px 0 5px;font-size:14px;color:#17375f}
.roll-reason-grid p{margin:0;color:#6b7a90;font-size:11px;line-height:1.6}

.roll-method-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px}
.roll-method-card{border-radius:16px;background:#0d2146;color:#fff;padding:17px}
.roll-method-label{font-size:9px;font-weight:900;letter-spacing:.1em;text-transform:uppercase;color:#b9cdf4}
.roll-formula{margin:8px 0;font-size:15px;font-weight:900;line-height:1.45}
.roll-method-card p{margin:0;color:#cbd7e8;font-size:11px;line-height:1.6}
.roll-guardrail{margin-top:18px;border:1px solid #efd9a9;background:#fff9ec;border-radius:16px;padding:16px}
.roll-guardrail strong{display:block;color:#795b17;font-size:12px;margin-bottom:5px}
.roll-guardrail p{margin:5px 0 0;color:#725f39;font-size:11px;line-height:1.6}

.roll-kpi.roll strong{color:#155fc9}.roll-kpi.hold strong{color:#50627b}.roll-kpi.positive strong{color:#087a54}.roll-kpi.negative strong{color:#b42318}
.roll-kpi{background:#fff;border:1px solid #e1e8f1;border-radius:16px;padding:15px}
.roll-kpi small{display:block;color:#708097;font-size:10px;font-weight:800}
.roll-kpi strong{display:block;color:#17375f;font-size:23px;margin:5px 0 3px;letter-spacing:-.5px}
.roll-kpi span{display:block;color:#8190a4;font-size:10px}

.maturity-control-panel.roll-mode{grid-template-columns:1fr}
.maturity-control-panel.roll-mode #maturityControl,.maturity-control-panel.roll-mode #ddControl{display:none}
.maturity-control-panel.roll-mode #scenarioControl{max-width:760px}
.tabs .roll.active{background:#153d72;color:#fff}

@media(max-width:980px){
  .roll-compare-grid{grid-template-columns:1fr}
  .roll-reason-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .roll-meta{text-align:left;max-width:none}
  .roll-hero-card{flex-direction:column}
}
@media(max-width:720px){
  .roll-reason-grid,.roll-method-grid{grid-template-columns:1fr}
  .roll-chart-wrap{height:310px}
  .roll-explainer{padding:20px 16px}
  .roll-hero-card{padding:20px}
  .roll-card-head{flex-direction:column}
  .roll-hurdle-value{font-size:36px}
}

/* Five analytical views on profile pages */
.tabs{grid-template-columns:repeat(5,1fr)}
@media(max-width:900px){.tabs{grid-template-columns:repeat(3,1fr)}}
@media(max-width:620px){.tabs{grid-template-columns:repeat(2,1fr)}}

/* Client-facing strategy pages display market-data notices only on failure. */
.page-model #dataStatus[hidden] { display:none !important; }
.page-model #dataStatus:not([hidden]) { background:#fff6f4;border:1px solid #eed3d0;color:#913f3a; }
