/* Smart Money Hat promo: sticky banner, header button, Merch section, footer link. */

/* Launch banner above the header: soft bar that blends with the page */
.hat-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 16px;
  background: color-mix(in srgb, var(--ink) 10%, var(--paper));
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: -0.1px;
}
.hat-banner strong {
  font-weight: 600;
  color: var(--ink);
}
.hat-banner .hat-banner-cta {
  color: var(--ink);
  text-decoration: none;
}
.hat-banner:hover .hat-banner-cta {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hat-banner:focus-visible {
  outline: 2px solid #7c4dff;
  outline-offset: -2px;
}

/* Discord livestream screenshot in "Inside the Discord" */
.discord-shot {
  margin: 18px 0;
}
.discord-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
}

/* Merch section, built like the journal block. */
.hat-shot {
  display: block;
  background: #fff;
}
.hat-shot img {
  transition: transform 0.25s ease;
}
.hat-shot:hover img {
  transform: scale(1.02);
}
.hat-line strong {
  font-weight: 600;
  color: var(--ink);
}
.hat-button {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.hat-button:hover {
  opacity: 0.88;
}
.hat-button:focus-visible,
.hat-shot:focus-visible {
  outline: 2px solid #7c4dff;
  outline-offset: 3px;
}
@media (max-width: 700px) {
  .hat-button {
    width: 100%;
  }
}


/* Banner sits inside the sticky header bar; give the slot room for it. */
.header-slot {
  height: 121px;
}
@media (max-width: 700px) {
  .header-slot {
    height: 83px;
  }
}

/* Slower, softer slide-in for the sticky nav (it used to pop in with no motion). */
.header-bar.is-stuck {
  transition:
    transform 480ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 480ms ease;
}
.header-bar.is-stuck:not(.is-shown) {
  opacity: 0;
}
.header-bar.is-stuck.is-shown {
  animation: bandz-nav-in 650ms cubic-bezier(0.33, 1, 0.68, 1);
}
@keyframes bandz-nav-in {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .header-bar.is-stuck,
  .header-bar.is-stuck.is-shown {
    transition: none;
    animation: none;
    opacity: 1;
  }
}

/* Desktop layouts */
@media (min-width: 901px) {
  /* Hero: copy on the left, live chart on the right (toolkit card removed). */
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    column-gap: 64px;
    align-items: center;
  }
  .hero-copy > * {
    grid-column: 1;
  }
  .hero-copy > .hero-stream {
    grid-column: 2;
    grid-row: 1 / span 6;
    align-self: center;
    margin-top: 0;
  }

  /* Merch: smaller photo with name, price and button beside it. */
  .hat-stage .journal-promo {
    display: grid;
    grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
    column-gap: 40px;
    align-items: center;
    max-width: 900px;
  }
  .hat-stage .hat-shot {
    grid-column: 1;
    grid-row: 1 / span 2;
  }
  .hat-stage .hat-line {
    grid-column: 2;
    align-self: end;
    margin: 0;
    font-size: 22px;
  }
  .hat-stage .hat-line strong {
    display: block;
    font-size: 28px;
    letter-spacing: -0.8px;
  }
  .hat-stage .hat-button {
    grid-column: 2;
    align-self: start;
    justify-self: start;
    margin-top: 18px;
  }
}
@media (max-width: 900px) {
  .hat-price::before {
    content: "\00B7  ";
  }
}

/* Journal: screenshot left, copy, pills and button on the right (desktop). */
@media (min-width: 901px) {
  .journal-stage .journal-promo {
    display: grid;
    grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
    column-gap: 40px;
    align-items: center;
    max-width: 1020px;
  }
  .journal-stage .journal-shot {
    grid-column: 1;
    grid-row: 1 / span 3;
  }
  .journal-stage .journal-line,
  .journal-stage .journal-pills,
  .journal-stage .journal-link {
    grid-column: 2;
    justify-self: start;
  }
  .journal-stage .journal-line {
    align-self: end;
    margin: 0;
    font-size: 20px;
    line-height: 1.35;
    color: var(--ink);
  }
  .journal-stage .journal-pills {
    align-self: center;
  }
  .journal-stage .journal-link {
    align-self: start;
  }
}
