/* Typography — exact stack from augen.pro: PP Neue Montreal Light (300) + Book (350) */
@font-face {
  font-family: "PP Neue Montreal";
  src:
    url("./fonts/PPNeueMontreal-Book.woff2") format("woff2"),
    url("./fonts/PPNeueMontreal-Book.woff") format("woff");
  font-weight: 350;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Neue Montreal";
  src:
    url("./fonts/PPNeueMontreal-Light.woff2") format("woff2"),
    url("./fonts/PPNeueMontreal-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
/* Map UI weights to Book (350), matching Augen's single-weight hierarchy */
@font-face {
  font-family: "PP Neue Montreal";
  src:
    url("./fonts/PPNeueMontreal-Book.woff2") format("woff2"),
    url("./fonts/PPNeueMontreal-Book.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Neue Montreal";
  src:
    url("./fonts/PPNeueMontreal-Book.woff2") format("woff2"),
    url("./fonts/PPNeueMontreal-Book.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Neue Montreal";
  src:
    url("./fonts/PPNeueMontreal-Book.woff2") format("woff2"),
    url("./fonts/PPNeueMontreal-Book.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Neue Montreal";
  src:
    url("./fonts/PPNeueMontreal-Book.woff2") format("woff2"),
    url("./fonts/PPNeueMontreal-Book.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* Hero-aligned site palette — deep teal charcoal + mint; accents monochrome */

:root {
  --relo-logo-v: 2;
  --font-sans: "PP Neue Montreal", sans-serif;
  --font-display: "PP Neue Montreal", sans-serif;
  --font-mono: "PP Neue Montreal", sans-serif;
  --hero-void: #050a0a;
  --hero-deep: #0d2d2a;
  --hero-mid: #164740;
  --hero-mint: #a3f7bf;
  --hero-mint-soft: #76e8ad;
  --hero-amber: #f4f4f4;
  --hero-amber-deep: #c8c8c8;
  --hero-fog: #e8f2ee;
  --hero-fog-soft: #d4e8e0;

  /* Remap scraped Data Foundation tokens toward hero aesthetic */
  --black: #050a0a;
  --white: #ffffff;
  --brand-light: #0d2d2a;

  --gray-50: #e8f2ee;
  --gray-100: #d4e8e0;
  --gray-200: #b7d4ca;
  --gray-300: #8fb8ab;
  --gray-400: #5f8f82;
  --gray-500: #3d6b60;
  --gray-600: #2a5249;
  --gray-700: #1c3d37;
  --gray-800: #12302b;
  --gray-900: #0d2d2a;
  --gray-950: #050a0a;

  --yellow-500: #a3f7bf;
  --green-600: #76e8ad;
  --green-700: #0d2d2a;

  --amber-50: #f4f4f4;
  --amber-100: #e0e0e0;
  --amber-500: #c8c8c8;

  --dataset-text: #76e8ad;
  --dataset-image: #c8c8c8;
}

html,
body {
  font-family: "PP Neue Montreal", sans-serif;
  font-weight: 350;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #050a0a;
  color: #f4f4f4;
}

/* Force Augen font everywhere — override Next.js ABCROM / Utile / Signifier vars */
:root {
  --font-utile: "PP Neue Montreal", sans-serif !important;
  --font-signifier: "PP Neue Montreal", sans-serif !important;
  --font-abcrom: "PP Neue Montreal", sans-serif !important;
  --font-abcrom-mono: "PP Neue Montreal", sans-serif !important;
}

body,
body *:not(script):not(style):not(svg):not(path):not(canvas) {
  font-family: "PP Neue Montreal", sans-serif !important;
  font-weight: 350 !important;
  letter-spacing: -0.02em;
}

h1, h2, h3, h4, h5, h6,
.type-display-md, .type-display-xs, .type-title-md, .type-heading-2,
.type-subhead-2, .type-subhead-3, .type-body-md, .type-body-sm, .type-label-md {
  font-family: "PP Neue Montreal", sans-serif !important;
  font-weight: 350 !important;
}

:root,
[data-surface="light"] {
  --background: #e8f2ee;
  --foreground: #050a0a;
  --muted: #d4e8e0;
  --muted-foreground: #2a5249;
  --card: #e8f2ee;
  --card-foreground: #050a0a;
  --popover: #e8f2ee;
  --popover-foreground: #050a0a;
  --primary: #050a0a;
  --primary-foreground: #a3f7bf;
  --secondary: #d4e8e0;
  --secondary-foreground: #050a0a;
  --accent: #a3f7bf;
  --accent-foreground: #050a0a;
  --destructive: #c45c3a;
  --border: rgba(13, 45, 42, 0.18);
  --border-subtle: rgba(13, 45, 42, 0.12);
  --border-active: rgba(13, 45, 42, 0.4);
  --ring: #76e8ad;
  --success: #76e8ad;
  --nav-item-hover: rgba(13, 45, 42, 0.08);
}

[data-surface="dark"] {
  --background: #050a0a;
  --foreground: #ffffff;
  --muted: #0d2d2a;
  --muted-foreground: rgba(232, 242, 238, 0.72);
  --card: #0d2d2a;
  --card-foreground: #ffffff;
  --popover: #0d2d2a;
  --popover-foreground: #ffffff;
  --primary: #a3f7bf;
  --primary-foreground: #050a0a;
  --secondary: #0d2d2a;
  --secondary-foreground: #ffffff;
  --accent: #f4f4f4;
  --accent-foreground: #050a0a;
  --border: rgba(163, 247, 191, 0.22);
  --border-subtle: rgba(163, 247, 191, 0.14);
  --border-active: rgba(163, 247, 191, 0.45);
  --ring: #a3f7bf;
  --success: #76e8ad;
  --nav-item-hover: rgba(163, 247, 191, 0.1);
}

/* Contribute stage — deep teal void like hero */
[aria-labelledby="contribute-heading"] [data-surface="dark"].bg-gray-950,
[aria-labelledby="contribute-heading"] .bg-gray-950 {
  background-color: #050a0a !important;
}

[aria-labelledby="contribute-heading"] .bg-gray-950\/30 {
  background-color: rgba(5, 10, 10, 0.22) !important;
}

[aria-labelledby="contribute-heading"] [data-contribute-bar] {
  background-color: rgba(163, 247, 191, 0.28) !important;
}

[aria-labelledby="contribute-heading"] [data-contribute-bar][data-active="true"] {
  background-color: #a3f7bf !important;
}

/* Recolor contribute dash field → hero teal / mint */
[data-contribute-section] [data-contribute-video] {
  filter: sepia(0.7) hue-rotate(105deg) saturate(1.5) brightness(0.9) contrast(1.15);
}

[data-contribute-section] [data-contribute-slide]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(135deg, #0d2d2a 0%, #76e8ad 55%, #f4f4f4 100%);
  mix-blend-mode: color;
  opacity: 0.55;
}

[data-contribute-section] [data-contribute-slide]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 78% 42%, rgba(244, 244, 244, 0.16), transparent 58%),
    radial-gradient(ellipse 85% 70% at 18% 72%, rgba(163, 247, 191, 0.2), transparent 60%),
    linear-gradient(160deg, rgba(5, 10, 10, 0.35), transparent 50%, rgba(5, 10, 10, 0.25));
}

[data-contribute-section] [data-contribute-slide] > .relo-persona,
[data-contribute-section] [data-contribute-slide] > .relo-persona__visual {
  z-index: 2;
}

[data-contribute-section] [data-contribute-slide] > div[aria-hidden="true"].absolute {
  z-index: 1;
}

/* Soft teal wash over remaining light sections */
[data-surface="light"].bg-background {
  background-color: #e8f2ee !important;
  background-image:
    radial-gradient(ellipse 90% 70% at 12% 0%, rgba(163, 247, 191, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 60% at 92% 18%, rgba(244, 244, 244, 0.18), transparent 50%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(13, 45, 42, 0.06), transparent 55%);
}

/* Proof shell — dark void */
[data-kled-section],
[data-surface="dark"][data-kled-section].bg-background {
  background-color: #050a0a !important;
  background-image: none !important;
  color: #fff;
}

/* Scraped sections → hero dark green void */
[data-playa-section],
[data-laguna-section],
[data-el-features],
.bb-zero {
  background-color: #050a0a !important;
  background-image: none !important;
}

/* Binary field on dark void — mint / teal */
[data-kled-section] [data-kled-video] {
  filter: invert(1) sepia(0.55) hue-rotate(105deg) saturate(1.6) brightness(0.55) contrast(1.15);
  opacity: 0.55;
  mix-blend-mode: screen;
}

[data-kled-section]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 12% 20%, rgba(244, 244, 244, 0.08), transparent 58%),
    radial-gradient(ellipse 50% 42% at 88% 70%, rgba(163, 247, 191, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(5, 10, 10, 0.35), transparent 35%, rgba(5, 10, 10, 0.55));
  mix-blend-mode: normal;
  opacity: 1;
}

[data-kled-section]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: transparent;
}

[data-kled-section] > .relative {
  position: relative;
  z-index: 1;
}

/* Tools abstract tiles → hero teal / mint + neutral */
.relo-tools__tile--mint video {
  filter: sepia(0.55) hue-rotate(108deg) saturate(1.45) brightness(0.95) contrast(1.1);
}

.relo-tools__tile--amber video {
  filter: grayscale(0.85) brightness(0.95) contrast(1.08);
}
[data-el-features] {
  background-color: #050a0a !important;
  background-image: none !important;
  color: #f5f3f1 !important;
}

/* Compact site footer */
footer[data-surface="dark"] {
  background-color: #050a0a !important;
  background-image: none !important;
}

footer[data-surface="dark"] > .mx-auto {
  padding-top: 2.25rem !important;
  padding-bottom: 2.25rem !important;
}

footer[data-surface="dark"] > .mx-auto > .grid {
  gap: 1.25rem 1.25rem !important;
  align-items: start;
}

footer[data-surface="dark"] .col-span-12.flex.flex-col {
  gap: 0.75rem !important;
  justify-content: flex-start !important;
}

footer[data-surface="dark"] video,
footer[data-surface="dark"] .relo-footer-logo,
footer[data-surface="dark"] img.relo-footer-logo {
  width: 72px !important;
  height: 72px !important;
  max-width: 72px !important;
  object-fit: contain !important;
}

footer[data-surface="dark"] .flex.flex-col.gap-6 {
  gap: 0.35rem !important;
}

footer[data-surface="dark"] .type-body-md.max-w-xs {
  font-size: 0.8rem !important;
  line-height: 1.35 !important;
  max-width: 16rem !important;
}

footer[data-surface="dark"] .type-title-md {
  font-size: 0.8rem !important;
  line-height: 1.2 !important;
}

footer[data-surface="dark"] .grid.grid-cols-2,
footer[data-surface="dark"] .sm\:grid-cols-3 {
  gap: 0.85rem 1.25rem !important;
}

footer[data-surface="dark"] .flex.flex-col.gap-2 {
  gap: 0.2rem !important;
}

footer[data-surface="dark"] h2.type-label-md {
  padding-top: 0.35rem !important;
  padding-bottom: 0.35rem !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.04em !important;
}

footer[data-surface="dark"] ul.flex.flex-col {
  gap: 0.05rem !important;
}

footer[data-surface="dark"] ul a.type-label-md {
  font-size: 0.72rem !important;
  line-height: 1.35 !important;
}

@media (min-width: 1024px) {
  footer[data-surface="dark"] > .mx-auto {
    padding-top: 2.75rem !important;
    padding-bottom: 2.75rem !important;
  }
}

/* Tensora-style modular header */
:root {
  --header-height: 44px;
  --relo-header-cell: #ffffff;
  --relo-header-ink: #0a0a0a;
  --relo-header-gap: 4px;
}

header.relo-header,
header[data-surface="dark"].relo-header {
  background: transparent !important;
  background-image: none !important;
  color: var(--relo-header-ink);
  padding: 0.5rem 0.75rem 0;
}

.relo-header__bar {
  display: flex;
  align-items: stretch;
  gap: var(--relo-header-gap);
  max-width: 1200px;
  margin-inline: auto;
  width: 100%;
  min-height: var(--header-height);
  box-sizing: border-box;
}

.relo-header__brand {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  height: var(--header-height);
  min-height: var(--header-height);
  padding: 0 1.25rem;
  background: var(--relo-header-cell);
  border: 1px solid var(--relo-header-ink);
  color: var(--relo-header-ink);
  text-decoration: none;
  box-sizing: border-box;
}

.relo-header__brand:hover {
  opacity: 0.92;
}

.relo-header__brand img,
.relo-header__brand .relo-mark {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  object-fit: contain;
  /* keep mint mark readable on white */
  filter: none;
}

.relo-header__wordmark {
  font-family: "PP Neue Montreal", ui-sans-serif, system-ui, sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--relo-header-ink);
}

.relo-header__nav {
  display: none;
  align-items: stretch;
  gap: var(--relo-header-gap);
}

@media (min-width: 768px) {
  .relo-header__nav {
    display: flex;
  }
}

.relo-header__cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--header-height);
  min-height: var(--header-height);
  padding: 0 1rem;
  background: var(--relo-header-cell);
  border: 1px solid var(--relo-header-ink);
  color: var(--relo-header-ink);
  text-decoration: none;
  font-family: "PP Neue Montreal", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  box-sizing: border-box;
  transition: background 0.15s ease, color 0.15s ease;
}

.relo-header__cell:hover {
  background: #f0f0f0;
}

.relo-header__cell--icon {
  width: var(--header-height);
  min-width: var(--header-height);
  padding: 0;
}

.relo-header__cta {
  font-weight: 600;
}

.relo-header__menu {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: var(--header-height);
  height: var(--header-height);
  min-width: var(--header-height);
  padding: 0;
  background: var(--relo-header-cell);
  border: 1px solid var(--relo-header-ink);
  color: var(--relo-header-ink);
  cursor: pointer;
}

.relo-header__menu span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
}

@media (min-width: 768px) {
  .relo-header__menu {
    display: none;
  }
}

/* footer col headers smaller */
footer[data-surface="dark"] h2.type-label-md {
  font-size: 0.62rem !important;
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase;
}

/* Hero-palette unify images/animations */
[data-el-features] .el-card__bg,
.bb-zero .frame img,
.bb-stats-featured__media img {
  /* keep individual section filters; this is a soft fallback */
}

[data-laguna-section] {
  --lg-s: #f4f4f4;
  --lg-xs: #c8c8c8;
}

.bb-zero.u-accent-fg--primary-browserbase-red,
.bb-zero {
  --color-accent-fg: #f4f4f4 !important;
}
.bb-zero .u-accent {
  color: #f4f4f4 !important;
}


.relo-footer-logo,
.relo-intro-logo {
  object-fit: contain;
}

.relo-intro-logo {
  height: 96px !important;
  width: auto !important;
}

/* Sitewide aesthetic rhythm */
:root {
  --relo-content: 1176px;
  --relo-section-y: clamp(2.75rem, 5.5vw, 4.25rem);
}

main > section,
main [data-surface] {
  scroll-margin-top: 64px;
}

/* Readable copy on dark sections */
.bb-zero .textLockUp__subhead.type-subhead-2,
.bb-stats-trusted__title,
.lg-models__name {
  color: #ffffff !important;
}

.bb-stats-item__label {
  opacity: 0.92;
}

footer[data-surface="dark"] .type-body-md {
  color: rgba(255, 255, 255, 0.82) !important;
}

footer[data-surface="dark"] ul a.type-label-md {
  color: rgba(255, 255, 255, 0.78) !important;
}

footer[data-surface="dark"] ul a.type-label-md:hover {
  color: #ffffff !important;
}

/* ——— Cohesion layer: one system over existing sections ——— */
:root {
  --relo-ink: #f4f4f4;
  --relo-muted: rgba(244, 244, 244, 0.68);
  --relo-accent: #f4f4f4;
  --relo-cta: #f4f4f4;
  --relo-void: #050a0a;
  --relo-panel: #0a1614;
  --relo-line: rgba(255, 255, 255, 0.12);
  --relo-radius: 20px;
  --relo-radius-sm: 12px;
  --relo-content: 1176px;
  --relo-section-y: clamp(2.75rem, 5.5vw, 4.25rem);
}

/* Shared section rhythm */
.swarm-flip-section,
.wild-starry,
.bb-zero,
[data-el-features],
[data-laguna-section],
.bb-stats {
  border-bottom: 1px solid var(--relo-line) !important;
}

.swarm-flip-section {
  --sf-muted: rgba(244, 244, 244, 0.55);
  --sf-card: #0a1614;
  --sf-num: rgba(255, 255, 255, 0.12);
  padding: var(--relo-section-y) 0 !important;
}

.swarm-flip-card {
  border-radius: var(--relo-radius-sm) !important;
  border-color: var(--relo-line) !important;
  background: var(--relo-panel) !important;
}

[data-el-features] {
  --el-sand: var(--relo-panel);
  --el-purple: var(--relo-accent);
  padding: var(--relo-section-y) 0 !important;
}

.el-card {
  border-radius: var(--relo-radius) !important;
  background: var(--relo-panel) !important;
  border: 1px solid var(--relo-line);
}

.el-card--omni {
  border-color: transparent;
}

.el-card__icon {
  color: var(--relo-accent) !important;
}

.rs-surfaces {
  padding-block: var(--relo-section-y) !important;
  width: min(var(--relo-content), calc(100% - 2.5rem)) !important;
}

/* .rs-card owns its own elevation — see poolside-laguna/laguna.css */

.bb-stats-featured,
.bb-stats-trusted {
  max-width: var(--relo-content) !important;
}

.bb-stats-item {
  border-radius: 0;
}

.bb-stats-item__value {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem) !important;
  letter-spacing: -0.03em !important;
}

.bb-stats-item--pink { background: #0a1614 !important; color: #f4f4f4 !important; }
.bb-stats-item--gray { background: #0d2d2a !important; color: #f4f4f4 !important; }
.bb-stats-item--yellow { background: #12302b !important; color: #f4f4f4 !important; }
.bb-stats-item--blue { background: #f4f4f4 !important; color: #050a0a !important; }

.bb-stats-featured__value,
.bb-stats-featured__title {
  color: var(--relo-ink) !important;
}

/* Quiet the POV band — keep element, reduce competition */
.wild-starry--quiet {
  min-height: 28vh !important;
}
.wild-starry--quiet .hero {
  min-height: 10vh !important;
  opacity: 0.35;
}
.wild-starry--quiet .intro {
  padding-block: 2rem !important;
}
.wild-starry--quiet .intro .lead {
  max-width: 36rem !important;
  font-size: clamp(1.15rem, 2vw, 1.55rem) !important;
  line-height: 1.4 !important;
  color: var(--relo-ink) !important;
}

/* Brand continuity: small mark before section titles that already exist */
.rs-surfaces__title::before {
  content: "";
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-right: 0.45em;
  vertical-align: -0.05em;
  background: url("./relo/logo-mark.png") center / contain no-repeat;
  opacity: 0.9;
}

