/* Dreamboat site quality pass — explicit final component rules.
   Fixes inherited sizing collisions and opaque logo artwork on tinted surfaces. */
:root{--site-control-height:48px;--site-radius:12px}
body{overflow-x:clip}
main{min-width:0}
img{max-width:100%}
a,button{touch-action:manipulation}
.button{display:inline-flex;align-items:center;justify-content:center;gap:clamp(12px,2vw,26px);width:fit-content;max-width:100%;min-height:var(--site-control-height);padding:13px 23px;border-radius:var(--site-radius);font:600 14px/1.4 var(--jakarta);text-align:center;text-decoration:none;white-space:normal}
.button span[aria-hidden=true],.button>span{flex-shrink:0;line-height:1;font-size:18px}
header .button.small{width:auto;min-height:44px;padding:10px 18px;white-space:nowrap}
.hero-ocean .hero-copy .actions{display:flex;align-items:center;gap:16px}
.hero-ocean .hero-copy .actions .button{width:auto;min-width:190px;min-height:52px;padding:14px 22px;font-size:15px}
.hero-ocean .hero-copy>.hero-price{font-size:14px;line-height:1.6}
.closing .wrap>.button{display:inline-flex;width:auto;min-width:205px;max-width:100%;min-height:52px;padding:14px 24px;margin:30px auto 0;font-size:15px;gap:26px}
.editorial-outro>.button,.editorial-hero .button,.editorial-split .button{width:auto;min-height:50px;padding:13px 22px}
.pricing-grid .price-card>.button{width:100%;justify-content:space-between;min-height:52px;padding:14px 18px;font-size:14px}
.pricing-grid .price-card{min-width:0;display:flex;flex-direction:column;gap:0}
.pricing-grid .price-card .short{min-height:0}
.pricing-grid .price-card ul{flex:1}
.pricing-grid .price-card>.button{margin-top:auto}
.price-card li{line-height:1.55}
.setup-panel{min-width:0}
.setup-row{min-width:0}
.setup-row code{overflow-wrap:anywhere;word-break:break-word}
.app-mini,.app-entry,.comparison-link{min-width:0}
.app-mini{min-height:165px;padding:24px;gap:14px}
.app-mini strong{font-size:clamp(16px,1.5vw,21px)}
.app-mini>span:last-child{margin-top:auto}
.app-mini-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.model-name{min-width:0}
.model-name>span{overflow-wrap:anywhere}
/* The original raster symbol has a pale rectangular matte. Multiplying its
   whites into the moon makes the matte visually disappear without recoloring
   the blue/gold mark or introducing a replacement brand illustration. */
.hero-ocean .dream-scene{isolation:isolate}
.hero-ocean .lunar-halo{background:#f4f6f2}
.hero-ocean .hero-logo-mark{mix-blend-mode:multiply;filter:none;max-width:58%;max-height:58%;object-fit:contain}
footer{padding-block:clamp(32px,4vw,56px)!important}
footer .footer-inner{display:grid;grid-template-columns:minmax(0,auto) minmax(0,1fr);gap:16px clamp(20px,4vw,56px);align-items:center}
footer .footer-inner .brand{display:inline-flex;align-items:center;width:fit-content}
footer .brand img{width:clamp(160px,18vw,230px);height:auto;mix-blend-mode:multiply}
footer .footer-inner .tagline{font-size:clamp(19px,2.1vw,27px);line-height:1.3;margin:0}
footer .footer-links{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:4px 20px;margin:16px 0 0;width:auto}
footer .footer-inner small{grid-column:1/-1;width:auto;font-size:13px;line-height:1.6}
footer .footer-links a{min-height:44px;display:inline-flex;align-items:center}
@media(max-width:1040px){
 .app-mini-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
 .hero-ocean .hero-copy{padding-top:clamp(48px,11vw,70px)}
 .hero-ocean h1{font-size:clamp(44px,9.6vw,65px);line-height:1.1}
 .hero-ocean .hero-copy>.hero-intro{font-size:clamp(16px,4.2vw,18px);line-height:1.68}
 .hero-ocean .hero-copy .actions .button{min-width:0}
 .hero-ocean .dream-scene{height:270px;margin-top:6px}
 .hero-ocean .dream-scene::before{width:245px}
 .hero-ocean .dream-scene .lunar-halo{width:202px;height:202px}
 .hero-ocean .hero-logo-mark{width:169px;max-width:62%;max-height:62%}
 .app-mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .app-mini{min-height:146px;padding:19px;gap:10px}
 .pricing-grid .price-card{padding:26px}
 .pricing-grid .price-card>.button{margin-top:20px}
 footer .footer-inner{grid-template-columns:1fr;gap:8px}
 footer .footer-inner .tagline{font-size:21px}
 footer .footer-links{grid-column:1;gap:0 16px;margin-top:12px}
 footer .footer-inner small{grid-column:1}
 footer .brand img{width:185px}
}
@media(max-width:380px){
 .hero-ocean .hero-copy .actions .button{width:100%}
 .app-mini{padding:16px}
 .app-mini strong{font-size:16px}
}
@media(prefers-reduced-motion:reduce){.button,.app-mini,.comparison-link{transition:none}}

/* Fix the root cause, not a blend-mode approximation: the source artwork has
   an opaque white matte. SVG alpha-key removes it at rendering time. */
.brand-filter-defs{position:absolute;overflow:hidden;pointer-events:none}
.hero-ocean .hero-logo-mark{
  mix-blend-mode:normal;
  filter:url("#dreamboat-transparent-matte");
}
footer .brand img{
  mix-blend-mode:normal;
  filter:none;
}
.hero-ocean .lunar-halo{
  background:radial-gradient(circle at 45% 32%,#fffdf2,#e9eef0 78%);
}
/* Shared heading styles in site.css set every h2/h3 to navy, even inside
   dark editorial panels. Restore explicit high-contrast section contracts. */
.narrative h2,.narrative h3,.narrative .narrative-limit strong,
.comparison-manifesto>div+div h3,
.contrast-col+ .contrast-col h3,
.closing h2{color:#f8fafb}
.narrative .narrative-limit small{color:#c7d8e4}
.narrative .narrative-columns p,.narrative .narrative-reveal p{color:#d1e0ea}
.narrative .narrative-reveal .inline-arrow{color:#f3d5a0}
.narrative .narrative-reveal .inline-arrow:hover{color:#fff0d2}
.comparison-manifesto>div+div p,
.contrast-col+ .contrast-col p{color:#d7e5ef}
.comparison-manifesto>div+div span{color:#e4c68d}
.closing p,.closing .closing-promise{color:#d5e3ed}
.closing .button.amber,.hero-ocean .button.amber{color:#102a45}
.playground-response{color:#f8fafb}
.code-panel pre,.code-panel code{color:#e8f1f7}
.code-panel .code-header{color:#c6d9e5}
@media (prefers-contrast:more){
 .hero-ocean .hero-intro,.narrative p,.closing p{color:#fff}
 .narrative .narrative-limit{border-color:#9bb5c9}
}

/* The painted ocean and turbulence overlay were visually overwhelming and
   expensive to render. Keep the brand's orbital motif, not the artificial
   horizon/noise layer. */
.hero-ocean{
  background:radial-gradient(ellipse 70% 95% at 75% 43%,#17364e 0%,#102b42 42%,#0a2136 78%,#091c2e 100%);
}
.hero-ocean::before{
  background:linear-gradient(90deg,rgba(4,15,27,.17),transparent 65%);
}
.hero-ocean .hero-grain{display:none!important}
.hero-ocean #ocean{display:block!important;opacity:.78;pointer-events:none}
/* Footer uses exactly the unfiltered wordmark shown in the header. */
footer .brand img{filter:none!important;mix-blend-mode:normal!important}
.app-mini-logo,.app-entry-logo,.guide-brand-logo{display:block;width:44px;height:44px;object-fit:contain;flex-shrink:0}
.app-mini-logo[src$="/chatbox.svg"],.app-entry-logo[src$="/chatbox.svg"],.guide-brand-logo[src$="/chatbox.svg"]{background:transparent;padding:0;border-radius:0}
.app-mini-logo[src$="/librechat.svg"],.app-entry-logo[src$="/librechat.svg"],.guide-brand-logo[src$="/librechat.svg"]{border-radius:0;filter:brightness(0) saturate(100%) invert(15%) sepia(28%) saturate(1280%) hue-rotate(166deg) brightness(91%) contrast(96%)}
.app-entry-logo{width:42px;height:42px}
.guide-brand-logo{width:58px;height:58px}
@media(max-width:760px){.hero-ocean{background:radial-gradient(ellipse 100% 65% at 55% 69%,#17364e 0%,#102b42 58%,#091c2e 100%)}
 .app-mini-logo{width:40px;height:40px}}

/* Footer and masthead use the truly transparent PNG generated by the website build. */
header .brand-logo,footer .brand img{mix-blend-mode:normal!important;filter:none!important}
.app-mini-logo,.app-entry-logo{width:38px;height:38px}
@media(max-width:760px){.app-mini-logo{width:38px;height:38px}}
