/* Polar's visual language, with monetize.club's green pixel accents retained. */
@font-face {
  font-family: "PP Neue Montreal";
  src: url("fonts/PPNeueMontreal-VariableUpright.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --background: #090909;
  --foreground: #f0f0f0;
  --muted: #181818;
  --muted-foreground: #757575;
  --border: #212121;
  --surface: #181818;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: "PP Neue Montreal", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 450;
  line-height: 1.5;
  letter-spacing: .01em;
}

/* The homepage is a single, stationary viewport. */
html.landing-page, html.landing-page body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}
::selection { background: var(--brand); color: #090909; }

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  height: 2rem;
  color: #f0f0f0;
  font-family: "PP Neue Montreal", Inter, sans-serif;
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.045em;
  white-space: nowrap;
}
.brand-lockup img { display: block; width: 1.75rem; height: 1.75rem; object-fit: contain; }
.bloom-mark { filter: none; }

.hero-menu { position: relative; }
.pixel-btn.hero-menu-button {
  z-index: 50;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  color: #090909;
  text-shadow: none;
}
.hero-menu-button__icon { position: relative; width: 1.375rem; height: 1.125rem; transform: scale(.8); }
.hero-menu-button__icon > span {
  position: absolute;
  left: 0;
  width: 1.375rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 300ms cubic-bezier(.22, 1, .36, 1), opacity 200ms ease;
}
.hero-menu-button__icon > span:nth-child(1) { top: 0; }
.hero-menu-button__icon > span:nth-child(2) { top: .5rem; }
.hero-menu-button__icon > span:nth-child(3) { top: 1rem; }
.hero-menu-button[aria-expanded="true"] .hero-menu-button__icon > span:nth-child(1) { transform: translateY(.5rem) rotate(45deg); }
.hero-menu-button[aria-expanded="true"] .hero-menu-button__icon > span:nth-child(2) { opacity: 0; }
.hero-menu-button[aria-expanded="true"] .hero-menu-button__icon > span:nth-child(3) { transform: translateY(-.5rem) rotate(-45deg); }

.curved-menu-layer { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
.curved-menu-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgb(0 0 0 / .55);
  cursor: pointer;
  pointer-events: auto;
}
.curved-menu {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100vw, 40rem);
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #090909;
  color: #f0f0f0;
  touch-action: pan-y;
  pointer-events: auto;
}
.curved-menu__curve {
  position: absolute;
  top: 0;
  left: -99px;
  width: 100px;
  height: 100%;
  pointer-events: none;
}
.curved-menu__nav {
  box-sizing: border-box;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  padding: 6rem clamp(2rem, 7vw, 5rem) 3rem;
}
.curved-menu__links { display: flex; flex-direction: column; }
.curved-menu__link {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgb(255 255 255 / .18);
  color: #f0f0f0;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.08;
  text-decoration: none;
}
.curved-menu__index { flex: none; color: #8c8c8c; font-size: .875rem; letter-spacing: 0; }
@media (prefers-reduced-motion: reduce) {
  .hero-menu-button__icon > span { transition: none; }
}

.hero-title {
  color: #f0f0f0;
  font-family: "PP Neue Montreal", Inter, sans-serif;
  font-size: 2.25rem;
  font-weight: 450;
  line-height: 1.08;
  letter-spacing: -.03em;
  text-align: left;
  text-shadow: none;
  text-wrap: balance;
}
.hero-title .bloom-text-brand { letter-spacing: -.02em; }
.hero-instruction { font-size: .875rem; line-height: 1.25rem; text-align: left; }

#conversation .chat-bubble {
  font-size: 1rem;
  font-weight: 450;
  line-height: 1.375;
  letter-spacing: .01em;
}
#conversation .chat-message .text-sm { font-size: .875rem; font-weight: 500; line-height: 1.25rem; }

body > div > nav { font-size: .875rem; line-height: 1.25rem; }

@media (min-width: 640px) {
  .brand-lockup { font-size: 2rem; }
  .brand-lockup img { width: 2rem; height: 2rem; }
  .hero-title { font-size: 3rem; line-height: 1.06; }
  #conversation .chat-bubble { font-size: 1.125rem; line-height: 1.45; }
}
@media (min-width: 1024px) {
  .hero-title { font-size: 4.5rem; }
}
@media (max-width: 359px) {
  .brand-lockup { gap: .35rem; font-size: 1.375rem; }
  .brand-lockup img { width: 1.5rem; height: 1.5rem; }
}

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .hero-chat-mask * { animation: none !important; transition: none !important; }
}
