/* ═══════════════════════════════════════════════════════════════════
   headlines.css — ONE heading system, taken from TEMP PICKS.

   The weather panel's wordmark is the reference: uppercase, Outfit 900,
   leading under 1, tight tracking, the first line in near-white, the
   second line carried by the blue→green→amber gradient, and a short
   gradient rule under the block.

   It now covers the hero too. That was the piece I kept missing: the
   hero ran on refined.css's own sentence-case spec and never entered
   this system, so the top of the page looked like a different product
   from everything under it.
   ═══════════════════════════════════════════════════════════════════ */

:root{
  --hl-grad:linear-gradient(95deg,#3f7bff 5%,#2ee59d 55%,#f5b13d 100%);
  --hl-ink:#eaeef4;
}

body.ps-refined #view-landing .hero-title,
body.ps-refined #view-landing .section-title,
body.ps-refined .btc-forecast > h2,
body.ps-refined .marketing-bridge h2,
body.ps-refined .workspace-heading h1{
  font-family:Outfit,system-ui,sans-serif !important;
  font-weight:900 !important;
  text-transform:uppercase !important;
  line-height:.94 !important;
  letter-spacing:-.035em !important;
  color:var(--hl-ink) !important;
  text-wrap:balance;
  margin-bottom:0 !important;
}

/* The hero keeps the largest step; everything below it is one size down. */
body.ps-refined #view-landing .hero-title{
  font-size:clamp(46px,7vw,86px) !important;
}
body.ps-refined #view-landing .section-title,
body.ps-refined .btc-forecast > h2,
body.ps-refined .marketing-bridge h2,
body.ps-refined .workspace-heading h1{
  font-size:clamp(32px,5vw,60px) !important;
}

/* The gradient half. The hero's own <span> is the second line, so it is
   treated exactly like the .hl spans headlines.js creates elsewhere and
   like the weather wordmark's .g. */
body.ps-refined .hl,
body.ps-refined #view-landing .hero-title span,
body.ps-refined #view-app .wxh-h1 .g{
  background:var(--hl-grad) !important;
  background-size:200% 100% !important;
  -webkit-background-clip:text !important;
  background-clip:text !important;
  color:transparent !important;
  -webkit-text-fill-color:transparent !important;
  display:block;
}
body.ps-refined #view-app .wxh-h1 .pd{ color:#f5b13d !important; -webkit-text-fill-color:#f5b13d !important; }

/* If the browser can't clip a gradient to text, the words stay readable. */
@supports not ((-webkit-background-clip:text) or (background-clip:text)){
  body.ps-refined .hl,
  body.ps-refined #view-landing .hero-title span,
  body.ps-refined #view-app .wxh-h1 .g{
    background:none !important;
    color:#2ee59d !important;
    -webkit-text-fill-color:#2ee59d !important;
  }
}

/* The rule under the block — same gradient, same proportions as weather. */
body.ps-refined #view-landing .hero-title::after,
body.ps-refined #view-landing .section-title::after,
body.ps-refined .btc-forecast > h2::after,
body.ps-refined .marketing-bridge h2::after{
  content:'';
  display:block;
  height:5px;
  width:300px;
  max-width:62%;
  border-radius:3px;
  margin:22px 0 26px;
  background:var(--hl-grad);
}

/* Centred sections get a centred rule. */
body.ps-refined #view-landing [style*="text-align:center"] .section-title::after,
body.ps-refined #view-landing .section-title[style*="text-align:center"]::after{
  margin-left:auto;
  margin-right:auto;
}

/* ── Motion ─────────────────────────────────────────────────────── */
@keyframes hl-drift{0%{background-position:0% 50%}100%{background-position:200% 50%}}
html.motion-on body.ps-refined .hl,
html.motion-on body.ps-refined #view-landing .hero-title span,
html.motion-on body.ps-refined #view-app .wxh-h1 .g{
  animation:hl-drift 9s linear infinite;
}
html.motion-on body.ps-refined #view-landing .section-title::after,
html.motion-on body.ps-refined .btc-forecast > h2::after,
html.motion-on body.ps-refined .marketing-bridge h2::after{
  transform:scaleX(0);
  transform-origin:left center;
  transition:transform .8s cubic-bezier(.22,.61,.36,1) .15s;
}
html.motion-on body.ps-refined #view-landing .section-title.is-in::after,
html.motion-on body.ps-refined .btc-forecast > h2.is-in::after,
html.motion-on body.ps-refined .marketing-bridge h2.is-in::after{
  transform:scaleX(1);
}

@media(max-width:600px){
  body.ps-refined #view-landing .hero-title{ font-size:clamp(38px,11vw,54px) !important; }
  body.ps-refined #view-landing .section-title,
  body.ps-refined .btc-forecast > h2{ font-size:clamp(28px,8vw,40px) !important; }
  body.ps-refined #view-landing .hero-title::after,
  body.ps-refined #view-landing .section-title::after,
  body.ps-refined .btc-forecast > h2::after{ height:4px; width:180px; margin:16px 0 20px; }
}

@media(prefers-reduced-motion:reduce){
  html.motion-on body.ps-refined .hl,
  html.motion-on body.ps-refined #view-landing .hero-title span,
  html.motion-on body.ps-refined #view-app .wxh-h1 .g{ animation:none !important; }
  html.motion-on body.ps-refined #view-landing .section-title::after,
  html.motion-on body.ps-refined .btc-forecast > h2::after,
  html.motion-on body.ps-refined .marketing-bridge h2::after{ transform:none !important; transition:none !important; }
}

/* ── The forecast hero variant ──────────────────────────────────────
   forecast.css scopes its own hero rules to .hero-outlook, which is one
   class more specific than the selectors above — so font-size and the
   second-line gradient were still coming from there and the hero kept
   its own look. These match that specificity and pull it back into the
   system. Written per media query because forecast.css sets sizes in
   three of them. */
body.ps-refined #view-landing .hero-outlook .hero-title{
  font-size:clamp(46px,7vw,86px) !important;
  font-weight:900 !important;
  text-transform:uppercase !important;
  line-height:.94 !important;
  letter-spacing:-.035em !important;
}
body.ps-refined #view-landing .hero-outlook .hero-title > span{
  display:block;
  background:var(--hl-grad) !important;
  background-size:200% 100% !important;
  -webkit-background-clip:text !important;
  background-clip:text !important;
  color:transparent !important;
  -webkit-text-fill-color:transparent !important;
}
body.ps-refined #view-landing .hero-outlook .hero-title::after{
  content:'';
  display:block;
  height:5px;
  width:300px;
  max-width:62%;
  border-radius:3px;
  margin:22px 0 26px;
  background:var(--hl-grad);
}
@media(max-width:960px){
  body.ps-refined #view-landing .hero-outlook .hero-title{ font-size:clamp(40px,9vw,60px) !important; }
}
@media(max-width:760px){
  body.ps-refined #view-landing .hero-outlook .hero-title{ font-size:clamp(38px,11vw,54px) !important; margin-bottom:0 !important; }
  body.ps-refined #view-landing .hero-outlook .hero-title::after{ height:4px; width:180px; margin:16px 0 20px; }
}
html.motion-on body.ps-refined #view-landing .hero-outlook .hero-title > span{
  animation:hl-drift 9s linear infinite;
}
@media(prefers-reduced-motion:reduce){
  html.motion-on body.ps-refined #view-landing .hero-outlook .hero-title > span{ animation:none !important; }
}

/* One tracking value for every heading in the system. The forecast panel's
   H2 was still picking up -.045em from a base rule in index.html. */
body.ps-refined #view-landing .hero-title,
body.ps-refined #view-landing .hero-outlook .hero-title,
body.ps-refined #view-landing .section-title,
body.ps-refined .btc-forecast > h2,
body.ps-refined .marketing-bridge h2,
body.ps-refined .workspace-heading h1{
  letter-spacing:-.035em !important;
}

/* Keep the proposition and primary action beside the top of the forecast. */
@media(min-width:981px){
 body.ps-refined #view-landing .hero.hero-outlook{align-items:start!important}
 body.ps-refined #view-landing .hero-outlook .hero-copy{align-self:start;padding-top:24px!important}
 body.ps-refined #view-landing .hero-outlook .hero-title{font-size:clamp(46px,5.1vw,68px)!important}
}
