/* 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%;
  }
}


/* The slot keeps the sticky header bar's height so nothing jumps when it pins. */
.header-slot {
  height: 86px;
}
@media (max-width: 700px) {
  .header-slot {
    height: 48px;
  }
}

/* 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;
  }
}

/* Full NQ × NYC collection, preserving the existing merch layout. */
.merch-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px;background:#e9eae5;aspect-ratio:1/1}.merch-grid img{width:100%;height:100%;min-height:0;aspect-ratio:1/1;object-fit:contain;border:0;border-radius:0;background:#eeeee9}.merch-description{display:block;margin-top:12px;font-size:16px;line-height:1.6;color:var(--muted)}.merch-status{display:block;margin-top:12px;font-size:12px;font-weight:600;letter-spacing:.04em;color:var(--muted)}
@media(max-width:700px){.header-nav{display:none}}

/* Use the full section width for the collection, with copy below the products. */
.hat-stage .journal-promo{max-width:none;width:100%;grid-template-columns:minmax(0,1fr);gap:0;align-items:start}
.hat-stage .hat-shot{grid-column:1;grid-row:auto;width:100%}
.hat-stage .hat-line{grid-column:1;grid-row:auto;align-self:start;margin:22px 0 0}
.hat-stage .hat-button{grid-column:1;grid-row:auto;align-self:start;margin-top:18px}
.hat-stage .merch-grid{grid-template-columns:repeat(4,minmax(0,1fr));aspect-ratio:auto}
.hat-stage .merch-grid img{aspect-ratio:4/5;object-fit:contain}
#hat{scroll-margin-top:125px}
@media(min-width:901px){
  .hat-stage .journal-promo{grid-template-columns:minmax(0,1fr) auto;column-gap:32px}
  .hat-stage .hat-shot{grid-column:1/-1;grid-row:1}
  .hat-stage .hat-line{grid-column:1;grid-row:2;margin-top:24px}
  .hat-stage .hat-button{grid-column:2;grid-row:2;align-self:center;justify-self:end;margin-top:24px}
}
@media(max-width:700px){.hat-stage .merch-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#hat{scroll-margin-top:92px}}
@media(max-width:600px){
  .site-footer{padding:30px 0}
  .site-footer .footer-inner{gap:14px}
  .site-footer .footer-nudge{display:flex;flex-direction:column;align-items:center;gap:7px;line-height:1.5}
  .footer-nudge .footer-separator{display:none}
  .footer-actions{display:flex;justify-content:center;align-items:center;gap:24px}
  .footer-actions a{display:inline-flex;align-items:center;min-height:36px}
  .site-footer .social-links{gap:16px;margin-top:2px}
  .site-footer .social-link{width:44px;height:44px}
}

/* Tiny Shop button beside the light/dark toggle, phones only (desktop has Shop in the nav). */
.header-shop { display: none; }
@media (max-width: 700px) {
  .site-header .header-shop {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 4px;
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1;
    text-decoration: none;
  }
  .site-header .header-shop:active { opacity: .6; }
  .site-header .header-shop:focus-visible { outline: 2px solid #7c4dff; outline-offset: 2px; }
}
