/* CashFlowLab premium consolidation layer.
   Kept separate from historical CSS so rollback is low-risk. */

/* Restore the intentional display face. home.css still contains a legacy
   Times New Roman override even though Playfair Display is already loaded. */
h1,h2,h3,.brand,.button.primary,.inscription,.price,.review-score,.priority-number{
  font-family:'Playfair Display',Georgia,serif;
}

/* Improve hierarchy without changing the established purple/gold art direction. */
.hero h1,.section-heading h2,.review-intro h1,.results-heading h1{
  text-wrap:balance;
}
.hero-description,.section-heading>p:last-child:not(.eyebrow),.intro-copy{
  text-wrap:pretty;
}
.button{font-weight:600}
.button.primary{letter-spacing:.005em}
.benefit-card,.why-card,.proof-card,.pricing-panel,.form-panel{
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 18px 48px rgba(0,0,0,.22);
}
@media (hover:hover){
  .benefit-card,.why-card,.proof-card{transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
  .benefit-card:hover,.why-card:hover,.proof-card:hover{transform:translateY(-2px);border-color:rgba(235,210,139,.55);box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 22px 52px rgba(0,0,0,.3)}
}

/* Diagnostic language switcher. */
.review-languages{display:flex;align-items:center;gap:6px;margin-left:auto}
.review-languages a{display:inline-grid;place-items:center;min-width:34px;min-height:30px;padding:5px 8px;border:1px solid rgba(235,210,139,.18);border-radius:999px;color:#bdb5c8;font:600 11px/1 Inter,system-ui,sans-serif;text-decoration:none!important;background:rgba(8,6,14,.46)}
.review-languages a:hover,.review-languages a:focus-visible{color:#fff;border-color:rgba(235,210,139,.55)}
.review-languages [aria-current="page"]{color:#171008;background:linear-gradient(105deg,#bc8736,#f7dc91);border-color:#ffe5a1}
.review-header>a:last-child{white-space:nowrap}

/* Unknown data is not a poor score. Make unresolved categories visually
   distinct instead of drawing an empty performance meter. */
.category-card.is-unresolved{border-style:dashed;background:rgba(8,6,13,.38)}
.category-unresolved{font:600 12px/1.3 Inter,system-ui,sans-serif!important;color:#d8ccdf!important;max-width:120px;text-align:right}
.evidence-gap{height:8px;margin-top:12px;border-radius:8px;background:repeating-linear-gradient(90deg,rgba(189,174,204,.2) 0 8px,transparent 8px 13px)}
.priority-reason{margin:0 0 12px;padding:10px 11px;border-left:2px solid rgba(226,199,121,.65);background:rgba(226,199,121,.055);color:#d8cfdf!important;font-size:11px!important;line-height:1.55!important}
.priority-reason strong{color:#f0d996;font-weight:600}

/* Localized text can be longer than English. Allow components to breathe
   instead of shrinking typography. */
html[lang="de"] .review-intro h1,html[lang="ro"] .review-intro h1{max-width:900px}
html[lang="de"] .priority-card h3,html[lang="ro"] .priority-card h3{hyphens:auto}
html[lang="de"] .result-cta .button,html[lang="ro"] .result-cta .button{white-space:normal}

/* Diagnostic handoff sits inside the existing Beta Discussion panel. */
.beta-handoff,.beta-next{border:1px solid rgba(226,199,121,.3);border-radius:12px;background:linear-gradient(125deg,rgba(36,24,49,.72),rgba(12,9,23,.8));padding:20px 22px;margin:0 0 22px;overflow-wrap:anywhere}
.beta-handoff{border-color:rgba(186,141,222,.5);box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}
.beta-handoff h3,.beta-next h3{font-size:clamp(20px,2.5vw,26px);margin:7px 0 14px;color:#f3e9ff}
.beta-handoff h4{font:600 13px/1.5 Inter,Arial,sans-serif;color:#ead49a;margin:17px 0 6px}
.beta-handoff .eyebrow{font-size:11px;color:#e0bf8c;letter-spacing:.09em}
.beta-handoff-facts{display:flex;flex-wrap:wrap;gap:8px 12px}.beta-handoff-facts p{margin:0;border:1px solid rgba(226,199,121,.22);border-radius:8px;padding:7px 10px;font-size:13px;color:#ead49a}
.beta-handoff-issue,.beta-handoff-intro{color:#ded5e7;line-height:1.55;font-size:14px}.beta-handoff-issue{margin:14px 0}
.beta-handoff ol,.beta-next ol{padding-left:22px;margin:8px 0;color:#ebe5ef;line-height:1.6;font-size:14px}.beta-handoff li+li,.beta-next li+li{margin-top:6px}
.beta-handoff-intro{margin:16px 0 0}.beta-next h3{color:#ead49a}.beta-next{margin-bottom:26px}
.beta-handoff :focus-visible,.beta-next :focus-visible{outline:3px solid #ffe3a3;outline-offset:3px}
@media(max-width:430px){.beta-handoff,.beta-next{padding:16px 15px}.beta-handoff-facts{display:grid}.beta-handoff ol,.beta-next ol{font-size:13px}}

@media(max-width:820px){
  .review-header{flex-wrap:wrap;gap:10px 14px}
  .review-languages{order:3;width:100%;justify-content:center;margin:0;padding-top:4px;border-top:1px solid rgba(235,210,139,.12)}
  .review-header>a:last-child{margin-left:auto}
}
@media(max-width:430px){
  .review-header>a:last-child{font-size:10px}
  .review-languages a{min-width:40px;min-height:32px}
  .category-unresolved{font-size:10px!important;max-width:92px}
}

@media(prefers-reduced-motion:reduce){
  .benefit-card,.why-card,.proof-card{transform:none!important}
}
