/* ==========================================================================
   XO Medtech — Unified site styles
   Built on colors_and_type.css (design system tokens)
   ========================================================================== */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* Section accent palette — driven by Tweaks. Default = brand. */
:root {
  --accent-mtv: var(--mtv-primary-300);
  --accent-mtv-bg: oklch(0.967 0.045 176.6 / 0.5);
  --accent-mtv-soft: oklch(0.967 0.045 176.6);

  --accent-xos: var(--xos-primary-600);
  --accent-xos-bg: oklch(0.9791 0.0125 228.92 / 0.6);
  --accent-xos-soft: oklch(0.9791 0.0125 228.92);

  --accent-advisory: oklch(0.45 0.02 270);
  --accent-advisory-bg: oklch(0.97 0.005 270);
  --accent-advisory-soft: oklch(0.96 0.005 270);

  --accent-community: oklch(0.62 0.13 65);   /* warm amber */
  --accent-community-bg: oklch(0.97 0.025 75);
  --accent-community-soft: oklch(0.96 0.022 75);

  --slate-950: oklch(0.141 0.005 285.823);
  --slate-900: oklch(0.21 0.006 285.885);
  --slate-800: oklch(0.274 0.006 286.033);
  --slate-700: oklch(0.37 0.013 285.805);
  --slate-600: oklch(0.446 0.016 285.9);
  --slate-500: oklch(0.552 0.016 285.938);
  --slate-400: oklch(0.705 0.015 286.067);
  --slate-300: oklch(0.871 0.006 286.286);
  --slate-200: oklch(0.92 0.004 286.32);
  --slate-100: oklch(0.967 0.001 286.375);
  --slate-50: oklch(0.985 0 0);

  --content-max: 1200px;
  --section-pad-y: clamp(72px, 8vw, 120px);
}

/* Alt palette — switched via Tweaks ("alt" = bolder cool blues + plum + terracotta) */
.palette-alt {
  --accent-mtv: oklch(0.62 0.16 195);
  --accent-mtv-bg: oklch(0.96 0.04 195 / 0.5);
  --accent-mtv-soft: oklch(0.96 0.04 195);

  --accent-xos: oklch(0.5 0.18 265);
  --accent-xos-bg: oklch(0.97 0.02 265 / 0.6);
  --accent-xos-soft: oklch(0.97 0.02 265);

  --accent-advisory: oklch(0.42 0.13 305);
  --accent-advisory-bg: oklch(0.97 0.015 305);
  --accent-advisory-soft: oklch(0.96 0.015 305);

  --accent-community: oklch(0.6 0.16 35);
  --accent-community-bg: oklch(0.97 0.025 40);
  --accent-community-soft: oklch(0.96 0.022 40);
}

/* Mono palette — slate-only with single brand blue */
.palette-mono {
  --accent-mtv: var(--xos-primary-600);
  --accent-mtv-bg: var(--slate-50);
  --accent-mtv-soft: var(--slate-50);

  --accent-xos: var(--xos-primary-600);
  --accent-xos-bg: var(--slate-50);
  --accent-xos-soft: var(--slate-50);

  --accent-advisory: var(--xos-primary-600);
  --accent-advisory-bg: var(--slate-50);
  --accent-advisory-soft: var(--slate-50);

  --accent-community: var(--xos-primary-600);
  --accent-community-bg: var(--slate-50);
  --accent-community-soft: var(--slate-50);
}

/* ----- Layout ---- */
.container { max-width: var(--content-max); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-pad-y) 0; position: relative; }
.section-tinted-mtv { background: linear-gradient(180deg, var(--accent-mtv-bg) 0%, transparent 100%); }
.section-tinted-xos { background: linear-gradient(180deg, var(--accent-xos-bg) 0%, transparent 100%); }
.section-tinted-advisory { background: linear-gradient(180deg, var(--accent-advisory-bg) 0%, transparent 100%); }
.section-tinted-community { background: linear-gradient(180deg, var(--accent-community-bg) 0%, transparent 100%); }
.section-dark {
  background: var(--slate-950);
  color: var(--slate-100);
}
.section-dark .muted { color: var(--slate-400); }

/* ---- Grid texture (toggleable via Tweaks) ---- */
.grid-texture::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, oklch(0 0 0 / 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(0 0 0 / 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 75%);
}
.section-dark.grid-texture::before {
  background-image:
    linear-gradient(to right, oklch(1 0 0 / 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(1 0 0 / 0.06) 1px, transparent 1px);
}

/* ---- Type ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 9999px; background: currentColor;
}
.section-dark .eyebrow { color: var(--slate-400); }

.display {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
}
.h1-section {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(32px, 3.8vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}
.subhead {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.55;
  color: var(--muted-foreground);
  max-width: 640px;
  margin: 16px 0 0;
  text-wrap: pretty;
}
.section-dark .subhead { color: var(--slate-400); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--slate-950);
  color: var(--slate-50);
}
.btn-primary:hover { background: var(--slate-900); }
.btn-secondary {
  background: transparent;
  color: var(--slate-950);
  border-color: var(--slate-300);
}
.btn-secondary:hover { background: var(--slate-100); border-color: var(--slate-400); }
.section-dark .btn-primary { background: var(--slate-50); color: var(--slate-950); }
.section-dark .btn-primary:hover { background: white; }
.section-dark .btn-secondary { color: var(--slate-50); border-color: var(--slate-600); }
.section-dark .btn-secondary:hover { background: var(--slate-800); border-color: var(--slate-400); color: white; }
.community-dark .btn-secondary { color: var(--slate-200); border-color: var(--slate-600); background: oklch(1 0 0 / 0.05); }
.community-dark .btn-secondary:hover { background: oklch(1 0 0 / 0.1); border-color: var(--slate-400); color: white; }
.btn-accent-mtv { background: var(--accent-mtv); color: var(--slate-950); }
.btn-accent-xos { background: var(--accent-xos); color: white; }
.btn-accent-community { background: var(--accent-community); color: var(--slate-950); }
.btn .arrow { transition: transform var(--dur-fast) var(--ease); }
.btn:hover .arrow { transform: translateX(2px); }

/* ---- Navbar ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: oklch(1 0 0 / 0.78);
  border-bottom: 1px solid var(--slate-200);
}
.nav-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 16px; letter-spacing: -0.01em;
}
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; height: 64px; }

/* ---- Nav dropdowns ---- */
.nav-item { position: relative; height: 64px; display: flex; align-items: center; }
.nav-trigger {
  display: inline-flex; align-items: center; gap: 5px;
  height: 64px; padding: 0 14px;
  background: transparent; border: 0; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 500;
  color: var(--slate-700);
}
.nav-item:hover .nav-trigger { color: var(--slate-950); }
.nav-trigger .chev { transition: transform var(--dur-base) var(--ease); color: var(--slate-400); }
.nav-item:hover .nav-trigger .chev { transform: rotate(180deg); }

.nav-drawer {
  position: absolute;
  top: 64px; left: 0;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0; visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease), visibility var(--dur-base);
  z-index: 60;
}
.nav-drawer::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.nav-item:hover .nav-drawer { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-drawer.align-right { left: auto; right: 0; }

.drawer-wide { width: 580px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.drawer-narrow { width: 360px; }
.drawer-mini { width: 220px; }

.drawer-item {
  display: flex; align-items: flex-start; gap: 13px;
  padding: 13px 14px;
  border-radius: 10px;
  transition: background var(--dur-fast) var(--ease);
}
.drawer-item:hover { background: var(--slate-50); }
.drawer-ic {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 9px;
  background: var(--slate-100);
  display: flex; align-items: center; justify-content: center;
  color: var(--slate-700);
}
.drawer-ic img { width: 24px; height: 24px; object-fit: contain; }
.drawer-ic.wordmark { width: 38px; }
.drawer-ic svg { width: 19px; height: 19px; }
.drawer-tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.drawer-ti { font-size: 14px; font-weight: 600; color: var(--slate-950); letter-spacing: -0.01em; }
.drawer-sub { font-size: 12.5px; line-height: 1.45; color: var(--muted-foreground); text-wrap: pretty; }
.drawer-mini .drawer-item { padding: 11px 12px; align-items: center; }
.drawer-mini .drawer-ic { width: 30px; height: 30px; }
.drawer-mini .drawer-ic svg { width: 16px; height: 16px; }

/* ---- Login drawer ---- */
.login-drawer { width: 380px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.login-col {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px 16px 14px;
  border-radius: 11px;
  border: 1px solid var(--slate-200);
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.login-col:hover { border-color: var(--slate-300); background: var(--slate-50); }
.login-col .ic-row { display: flex; align-items: center; gap: 6px; height: 30px; }
.login-col .ic-row img { height: 26px; width: 26px; object-fit: contain; border-radius: 6px; }
.login-col .ic-row .cmark {
  width: 30px; height: 30px; border-radius: 7px; background: var(--accent-community-soft);
  display: flex; align-items: center; justify-content: center; color: var(--accent-community);
}
.login-col .ic-row .cmark svg { width: 17px; height: 17px; }
.login-col .lbl { display: flex; align-items: center; justify-content: space-between; }
.login-col .lbl span { font-size: 14px; font-weight: 600; color: var(--slate-950); }
.login-col .lbl svg { width: 15px; height: 15px; color: var(--slate-400); }

.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-login-wrap { position: relative; height: 64px; display: flex; align-items: center; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--slate-200);
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
}

@media (max-width: 980px) {
  .nav-links, .nav-login-wrap { display: none; }
  .nav-toggle { display: inline-flex; }
}
.mobile-menu {
  display: none;
  position: fixed;
  inset: 64px 0 auto 0;
  background: white;
  border-bottom: 1px solid var(--slate-200);
  padding: 20px 24px 28px;
  z-index: 49;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 14px 4px;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--slate-100);
}
.mobile-menu .btn { margin-top: 12px; align-self: flex-start; }

/* ---- Hero ---- */
.hero {
  padding: clamp(72px, 9vw, 120px) 0 clamp(48px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}
.hero-headline { max-width: 720px; font-size: clamp(20px, 2.3vw, 30px); line-height: 1.12; }

/* ---- Hero split: copy + card grid ---- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 1.1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
}
.hero-copy { min-width: 0; }
.hero-headline { transform: translateY(-18px); }
.hero-headline .hero-rest {
  display: block;
  min-height: 3.4em;
  font-weight: 600;
  color: var(--muted-foreground);
}
.hero-word { display: inline-block; white-space: nowrap; }
.hero-rest-char {
  display: inline-block;
  white-space: pre;
  animation: heroCharIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-space {
  display: inline;
  animation: heroCharIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes heroCharIn {
  0%   { opacity: 0; transform: translateY(5px); }
  100% { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-rest-char, .hero-space { animation: none; }
}

.hero-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-top: 58px;
  transition: opacity var(--dur-base) var(--ease);
}
.hero-actions.hide { opacity: 0; pointer-events: none; }
.hero-cta-lg { padding: 12px 22px; font-size: 15px; border-radius: 14px; }
.btn.btn-primary.hero-cta-lg { font-weight: 700; }

/* ---- Glow border CTA ---- */
.glow-border {
  display: inline-block;
  border-radius: 16px;
  padding: 2px;
  background: transparent;
  position: relative;
}
.glow-border::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 20px;
  background: radial-gradient(ellipse at center, var(--accent-xos) 0%, transparent 68%);
  opacity: 0.9;
  filter: blur(14px);
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease);
}
.glow-border:hover::before { opacity: 1; filter: blur(18px); }
.btn.hero-cta-glow {
  border-radius: 14px;
  background: var(--slate-950);
  color: var(--slate-50);
  border: 1.5px solid oklch(0.55 0.12 228 / 0.65);
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.btn.hero-cta-glow:hover { background: var(--slate-900); border-color: var(--accent-xos); }

/* ---- Hero card grid (3 × 2) ---- */
.hero-cardgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 560px) {
  .hero-cardgrid { grid-template-columns: repeat(2, 1fr); }
}
.hg-card {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px;
  min-height: 184px;
  padding: 22px 18px;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  cursor: default;
  transition: box-shadow var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease), opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.hg-logo {
  display: flex; align-items: center; justify-content: center;
  height: 56px; /* fixed height so all logos in same row share one baseline */
  flex-shrink: 0;
  transition: transform 0.35s var(--ease);
}
.hg-logo img { width: auto; max-width: 86%; object-fit: contain; transition: filter var(--dur-base) var(--ease); }
.hg-sub {
  margin: 0;
  font-size: 10px; line-height: 1.4;
  text-align: center;
  color: var(--muted-foreground);
  text-wrap: pretty;
  transition: opacity var(--dur-fast) var(--ease), transform 0.35s var(--ease);
}
/* Dim non-hovered cards, desaturate their logos */
.hero-cardgrid.has-hover .hg-card:not(.active) { opacity: 0.5; }
.hero-cardgrid.has-hover .hg-card:not(.active) .hg-logo img { filter: grayscale(1); }
.hg-card.active {
  border-color: var(--slate-300);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
/* On hover: sub text fades + slides down, logo drifts to vertical center */
.hg-card.active .hg-sub {
  opacity: 0;
  transform: translateY(6px);
}
.hg-card.active .hg-logo {
  transform: translateY(18px);
}

/* ---- Per-logo vertical tweaks ---- */
/* Org Map — nudge up a few px to align with Campaigns & Quote Builder */
.hg-card[data-key="orgmap"] .hg-logo img { margin-top: -5px; }
/* XO Community — nudge up ~2px to align with MTV & XO AI Advisory */
.hg-card[data-key="community"] .hg-logo img { margin-top: -2px; }

/* ---- Hero modals ---- */
.m-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: oklch(0.141 0.005 285.823 / 0.55);
  backdrop-filter: blur(3px);
  animation: m-fade var(--dur-base) var(--ease);
}
@keyframes m-fade { from { opacity: 0; } to { opacity: 1; } }
.m-frame {
  position: relative;
  width: 100%; max-width: 560px;
  max-height: calc(100vh - 48px);
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 18px;
  box-shadow: 0 24px 60px -12px rgb(0 0 0 / 0.35);
  padding: 30px 32px;
  overflow: hidden;
  animation: m-pop var(--dur-base) var(--ease);
}
@keyframes m-pop { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
.m-close {
  position: absolute; top: 14px; right: 14px;
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border: none; border-radius: 9999px;
  background: var(--slate-100); color: var(--slate-600);
  cursor: pointer; transition: background var(--dur-fast) var(--ease);
}
.m-close:hover { background: var(--slate-200); }
.m-title { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 18px; }
.m-body { display: flex; flex-direction: column; gap: 16px; }
.m-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.m-field { display: flex; flex-direction: column; gap: 5px; }
.m-field.m-span2 { grid-column: 1 / -1; }
.m-field span { font-size: 12px; font-weight: 600; color: var(--slate-700); }
.m-field input, .m-textarea {
  width: 100%; box-sizing: border-box;
  font-family: var(--font-sans); font-size: 14px;
  padding: 9px 12px;
  border: 1px solid var(--slate-300); border-radius: 9px;
  background: white; color: var(--foreground);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.m-field input:focus, .m-textarea:focus {
  outline: none; border-color: var(--xos-primary-600);
  box-shadow: 0 0 0 3px oklch(from var(--xos-primary-600) l c h / 0.18);
}
.m-textarea { resize: none; line-height: 1.5; overflow: hidden; }
.m-block { display: flex; flex-direction: column; gap: 9px; }
.m-q { font-size: 13px; font-weight: 600; color: var(--slate-800); }
.m-q em { font-style: normal; font-weight: 400; color: var(--muted-foreground); }
.m-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.m-chips.grid4 { display: grid; grid-template-columns: repeat(2, 1fr); }
.m-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 13px;
  font-family: var(--font-sans); font-size: 13px; font-weight: 500;
  color: var(--slate-700);
  background: white; border: 1px solid var(--slate-300); border-radius: 9px;
  cursor: pointer; transition: all var(--dur-fast) var(--ease);
}
.m-chip:hover { border-color: var(--slate-400); background: var(--slate-50); }
.m-chip.on {
  border-color: var(--xos-primary-600);
  background: var(--xos-primary-50);
  color: var(--xos-primary-700);
}
.m-submit { align-self: flex-start; margin-top: 2px; padding: 11px 26px; font-weight: 700; font-size: 15px; }
.m-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 18px 8px 6px; }
.m-check {
  display: flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; margin-bottom: 6px;
  border-radius: 9999px;
  background: oklch(0.95 0.06 150); color: oklch(0.55 0.15 150);
  animation: m-pop var(--dur-base) var(--ease);
}
.m-done h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.m-done p { font-size: 14px; color: var(--muted-foreground); margin: 0 0 8px; }

/* ---- Universe cards ---- */
.universe {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 880px) {
  .universe { grid-template-columns: 1fr; }
}

.u-card {
  position: relative;
  display: flex; flex-direction: column;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 28px;
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
  overflow: hidden;
}
.u-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.u-card .accent-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--card-accent, transparent);
  border-radius: 16px 16px 0 0;
}
/* Card style variants — set by Tweaks via class on root */
.cards-bordered .u-card { border-color: var(--slate-200); }
.cards-bordered .u-card .accent-bar { display: none; }
.cards-accent-bar .u-card .accent-bar { display: block; }
.cards-elevated .u-card { box-shadow: var(--shadow-sm); border-color: transparent; }
.cards-elevated .u-card .accent-bar { display: none; }
.cards-elevated .u-card:hover { box-shadow: var(--shadow-lg); }

.u-card .glyph {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--card-soft, var(--slate-100));
  margin-bottom: 18px;
  flex-shrink: 0;
}
.u-card .u-logo {
  display: flex; align-items: center;
  height: 40px;
  margin-bottom: 20px;
}
.u-card .u-logo img { width: auto; max-width: 220px; object-fit: contain; }
.u-card .glyph img { width: 26px; height: 26px; object-fit: contain; }
.u-card .glyph svg { width: 22px; height: 22px; color: var(--card-accent); }
.u-card h3 {
  font-size: 22px; font-weight: 700; letter-spacing: -0.015em;
  margin: 0 0 6px;
}
.u-card .audience {
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--card-accent);
  margin-bottom: 14px;
}
.u-card p {
  font-size: 14px; line-height: 1.6; color: var(--muted-foreground);
  margin: 0 0 24px; flex-grow: 1;
}
.u-card .card-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600;
  color: var(--slate-950);
}
.u-card .card-cta .arrow { transition: transform var(--dur-fast) var(--ease); }
.u-card:hover .card-cta .arrow { transform: translateX(3px); }

/* ---- Generic feature grid ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 720px) { .feature-grid { grid-template-columns: 1fr; } }

.f-card {
  position: relative;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 26px;
  transition: border-color var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
  display: flex; flex-direction: column; gap: 12px;
  min-height: 180px;
}
.f-card:hover { border-color: var(--slate-300); }
.f-card .glyph {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--card-soft, var(--slate-100));
  display: flex; align-items: center; justify-content: center;
  color: var(--card-accent, var(--slate-700));
}
.f-card .glyph svg { width: 18px; height: 18px; }
.f-card h4 { font-size: 16px; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.f-card p { font-size: 13.5px; line-height: 1.6; color: var(--muted-foreground); margin: 0; }
.f-card .badge {
  position: absolute; top: 18px; right: 18px;
  font-size: 11px; font-weight: 600; padding: 4px 10px;
  border-radius: 9999px;
  background: var(--slate-100); color: var(--slate-700);
  letter-spacing: 0.02em;
}
.section-dark .f-card {
  background: oklch(1 0 0 / 0.03);
  border-color: oklch(1 0 0 / 0.08);
}
.section-dark .f-card:hover { border-color: oklch(1 0 0 / 0.16); }
.section-dark .f-card p { color: var(--slate-400); }
.section-dark .f-card .badge { background: oklch(1 0 0 / 0.06); color: var(--slate-300); }

/* ---- Section header layout ---- */
.section-head {
  max-width: 760px;
  margin-bottom: 56px;
}
.section-head .eyebrow { margin-bottom: 16px; }

/* ---- Two-col layout (text + screenshot) ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: center;
  margin-top: -16px;
}
@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
}
.split-screenshot {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-md);
  background: var(--slate-100);
  aspect-ratio: 16 / 10;
}
.split-screenshot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.section-dark .split-screenshot { border-color: oklch(1 0 0 / 0.08); }
/* Square variant — shows full image without cropping, reduced size */
.split-screenshot-square {
  aspect-ratio: 1 / 1;
  background: transparent;
  border: none;
  box-shadow: none;
  max-width: 68%;
  margin-left: auto;
}
.split-screenshot-square img { object-fit: contain; object-position: center; width: 100%; height: auto; }
/* Reduced size modifier */
.split-screenshot-sm { max-width: 60%; }
/* Floating image — no box, just shadow, natural size */
.split-screenshot-float {
  display: flex;
  align-items: center;
  justify-content: center;
}
.split-screenshot-float img {
  width: 72%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 32px oklch(0 0 0 / 0.18));
}

/* ---- Capability list (compact bullets with arrows) ---- */
.cap-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.cap-list li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; line-height: 1.55;
  color: var(--slate-700);
}
.cap-list li::before {
  content: "→";
  color: var(--card-accent, var(--slate-500));
  font-weight: 600; flex-shrink: 0;
  margin-top: 1px;
}
.section-dark .cap-list li { color: var(--slate-300); }

/* ---- CTA bar ---- */
.cta-bar {
  margin-top: 48px;
  display: flex; gap: 12px; flex-wrap: wrap;
}

/* ---- Community Join for Free outer ring ---- */
.community-join-glow {
  display: inline-block;
  border-radius: 14px;
  padding: 2.5px;
  background: linear-gradient(135deg, var(--accent-xos) 0%, var(--accent-community) 100%);
}
.community-join-glow .btn {
  border-radius: 12px;
  display: block;
}

/* ---- Community dark section ---- */
.community-dark {
  background: var(--slate-950);
  color: var(--slate-100);
  position: relative;
}
.community-dark .section-head .h1-section { color: white; }
.community-dark .subhead { color: var(--slate-400); }
.community-dark .eyebrow { color: var(--slate-400); }
.community-eyebrow { color: var(--slate-400) !important; }

/* Hero split: headline + CTA left, platform screenshot right */
.community-hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}
@media (max-width: 900px) { .community-hero-split { grid-template-columns: 1fr; } }
.community-platform-img {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid oklch(1 0 0 / 0.08);
  box-shadow: 0 8px 40px oklch(0 0 0 / 0.4);
}
.community-platform-img img { width: 100%; height: auto; display: block; }

/* Stats on dark bg */
.community-stats {
  background: oklch(1 0 0 / 0.05);
  border: 1.5px solid oklch(1 0 0 / 0.18);
}
.community-stats .stat { border-right: 1.5px solid oklch(1 0 0 / 0.18); }
.community-stats .stat .value { color: white; }
.community-stats .stat .label { color: var(--slate-300); }

/* What's inside cards on dark bg */
.community-what-item {
  background: oklch(1 0 0 / 0.06) !important;
  border: 1.5px solid oklch(1 0 0 / 0.2) !important;
  color: var(--slate-200);
}
.community-what-item svg { color: var(--accent-xos) !important; }

/* Audience tags on dark bg */
.community-tag {
  background: oklch(1 0 0 / 0.07) !important;
  border: 1.5px solid oklch(1 0 0 / 0.2) !important;
  color: var(--slate-300) !important;
}

/* ---- Community-specific ---- */
.what-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 800px) { .what-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .what-grid { grid-template-columns: 1fr; } }
.what-item {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 20px;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  font-size: 14px; font-weight: 500;
}
.what-item svg { width: 18px; height: 18px; color: var(--accent-xos); flex-shrink: 0; }

.audience-tags {
  margin-top: 20px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.audience-tag {
  padding: 8px 14px;
  border: 1px solid var(--slate-300);
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  background: white;
  color: var(--slate-700);
}

.testimonials {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: 56px;
}
@media (max-width: 880px) { .testimonials { grid-template-columns: 1fr; } }
.testimonial {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
}
.community-testimonial {
  background: oklch(1 0 0 / 0.05);
  border: 1.5px solid oklch(1 0 0 / 0.22);
}
.testimonial .quote {
  font-size: 15px;
  line-height: 1.6;
  color: var(--slate-800);
  margin: 0;
  flex-grow: 1;
}
.community-testimonial .quote { color: var(--slate-200); }
.testimonial .quote::before { content: "\201C"; font-size: 32px; line-height: 0; vertical-align: -0.4em; color: var(--accent-community); margin-right: 4px; }
.community-testimonial .quote::before { color: var(--accent-xos); }
.testimonial .author { display: flex; align-items: center; gap: 12px; }
.testimonial .avatar {
  width: 40px; height: 40px;
  border-radius: 9999px;
  background: var(--accent-community-soft);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
  color: var(--accent-community);
  flex-shrink: 0;
}
.testimonial .avatar-photo {
  width: 44px; height: 44px;
  border-radius: 9999px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid oklch(1 0 0 / 0.12);
}
.testimonial .meta { display: flex; flex-direction: column; }
.testimonial .name { font-size: 14px; font-weight: 600; }
.community-testimonial .name { color: white; }
.testimonial .role { font-size: 12.5px; color: var(--muted-foreground); }
.community-testimonial .role { color: var(--slate-400); }

/* ---- Podcast block ---- */
.podcast {
  margin-top: 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 32px;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 18px;
}
@media (max-width: 880px) { .podcast { grid-template-columns: 1fr; gap: 24px; padding: 20px; } }
.community-podcast {
  background: oklch(1 0 0 / 0.04);
  border-color: oklch(1 0 0 / 0.1);
  align-items: start;
}
.podcast-video-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.podcast-eyebrow { margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.video-embed-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--slate-900);
}
.podcast .video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--slate-900);
  border-radius: 12px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: white;
}
.podcast .video-thumb .play {
  width: 64px; height: 64px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.95);
  display: flex; align-items: center; justify-content: center;
  color: var(--slate-950);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease);
}
.podcast .video-thumb:hover .play { transform: scale(1.08); }
.podcast .video-thumb .label {
  position: absolute; top: 14px; left: 14px;
  background: rgba(0,0,0,0.6); color: white;
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 9999px;
}
.podcast h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 8px; }
.community-podcast h3 { color: white; }
.podcast .episode-title { font-size: 15px; font-weight: 600; color: var(--slate-700); margin: 0 0 12px; }
.podcast p { font-size: 14px; line-height: 1.6; color: var(--muted-foreground); margin: 0 0 20px; }
.community-podcast p { color: var(--slate-400); }

/* ---- Stats row ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 48px;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  background: white;
  overflow: hidden;
}
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  padding: 24px 26px;
  border-right: 1px solid var(--slate-200);
}
.stat:last-child { border-right: none; }
@media (max-width: 800px) { .stat:nth-child(2n) { border-right: none; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--slate-200); } }
.stat .value {
  font-size: 28px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--slate-950);
}
.stat .label {
  font-size: 12.5px; font-weight: 500;
  color: var(--muted-foreground);
  margin-top: 4px;
}

/* ---- Footer ---- */
.footer {
  background: var(--slate-950);
  color: var(--slate-300);
  padding: 64px 0 28px;
  margin-top: 0;
}
.footer-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
.footer h5 {
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--slate-400); margin: 0 0 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer a { font-size: 14px; color: var(--slate-300); }
.footer a:hover { color: white; }
.footer .brand {
  display: flex; flex-direction: column; gap: 16px;
}
.footer .brand img { height: 26px; width: auto; }
.footer .brand p { font-size: 14px; line-height: 1.6; color: var(--slate-400); margin: 0; max-width: 260px; }
.footer .social { display: flex; gap: 12px; margin-top: 4px; }
.footer .social a {
  width: 36px; height: 36px;
  border: 1px solid var(--slate-800);
  border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.footer .social a:hover { background: var(--slate-900); border-color: var(--slate-700); }
.footer .social svg { width: 16px; height: 16px; }
.footer-bottom {
  max-width: var(--content-max);
  margin: 56px auto 0;
  padding: 24px 24px 0;
  border-top: 1px solid var(--slate-800);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: var(--slate-500);
}

/* ---- Anchor offset for sticky nav ---- */
section[id] { scroll-margin-top: 72px; }

/* ---- Reveal-on-scroll ---- */
/* Base state is VISIBLE so content never depends on an animation completing
   (some render/capture environments freeze CSS animations at frame 0). The
   entrance is layered on via .in, and a JS safety net force-clears anything
   that ends up stuck hidden. */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reveal.in { animation: revealIn 600ms var(--ease-out); }
}
@keyframes revealIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal.in[data-delay="1"] { animation-delay: 80ms; }
.reveal.in[data-delay="2"] { animation-delay: 160ms; }
.reveal.in[data-delay="3"] { animation-delay: 240ms; }

/* Card accent variables (set per universe card) */
.u-card.accent-mtv { --card-accent: var(--accent-mtv); --card-soft: var(--accent-mtv-soft); }
.u-card.accent-xos { --card-accent: var(--accent-xos); --card-soft: var(--accent-xos-soft); }
.u-card.accent-community { --card-accent: var(--accent-community); --card-soft: var(--accent-community-soft); }

#mtv { --card-accent: var(--accent-mtv); --card-soft: var(--accent-mtv-soft); }
#campaigns { --card-accent: var(--accent-xos); --card-soft: var(--accent-xos-soft); }
#advisory { --card-accent: var(--accent-advisory); --card-soft: var(--accent-advisory-soft); }
#community { --card-accent: var(--accent-community); --card-soft: var(--accent-community-soft); }

/* ---- Community partners logo bar ---- */
.community-partner-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px 56px;
}
.community-partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.community-partner-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: grayscale(1) opacity(0.65);
  transition: filter 200ms ease;
}
.community-partner-logo img:hover {
  filter: grayscale(0) opacity(1);
}

/* Card variants for f-card via parent class */
.cards-accent-bar .f-card { border-left: 3px solid var(--card-accent, var(--slate-200)); }
.cards-elevated .f-card { box-shadow: var(--shadow-sm); border-color: transparent; }
.section-dark.cards-elevated .f-card { box-shadow: none; }
