/* Broadcast Utility — marketing home */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

.bu-smpte-strip { display: none !important; }

:root {
  --bu-header-h: 64px;
  --bu-black: #000000;
  --bu-red: #e63946;
  --bu-hero-bg: #ffffff;
  --bu-card-bg: #ededf0;
  --bu-section-bg: #f5f5f7;
  --bu-ink: #000000;
  --bu-muted: #5c5c5c;
  --bu-border: #dcdce0;
  --bu-font: 'DM Sans', -apple-system, system-ui, sans-serif;
  --bu-max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.bu-home {
  margin: 0;
  font-family: var(--bu-font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--bu-ink);
  background: var(--bu-hero-bg);
  -webkit-font-smoothing: antialiased;
}

body.bu-home::after { display: none !important; }

/* ── Dark header ───────────────────────────────────────────────────────── */
.bu-home-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--bu-header-h);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 clamp(16px, 3vw, 32px);
  background: var(--bu-black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bu-home-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}

.bu-home-logo-img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.bu-home-nav {
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

@media (min-width: 720px) {
  .bu-home-nav { display: flex; }
}

.bu-home-nav a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  border-bottom: 2px solid transparent;
}

.bu-home-nav a:hover {
  color: #fff;
}

.bu-home-nav a.is-active {
  color: #fff;
  border-bottom-color: var(--bu-red);
}

.bu-home-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bu-home #bu-user-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bu-home #bu-user-area .h-btn,
.bu-home #bu-user-area .bu-btn {
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.bu-home #bu-user-area .h-btn-primary,
.bu-home #bu-user-area .bu-btn-primary {
  background: var(--bu-red);
  border-color: var(--bu-red);
}

.bu-home #bu-user-area .bu-user-pill {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ── Landing shell ───────────────────────────────────────────────────────── */
.bu-landing {
  padding-top: var(--bu-header-h);
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.bu-hero {
  position: relative;
  overflow: hidden;
  background: var(--bu-hero-bg);
  border-bottom: 1px solid var(--bu-border);
}

.bu-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: #d4d4d8;
}

.bu-hero-circuit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.bu-hero-wave {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: min(58%, 520px);
  height: 45%;
  opacity: 0.35;
  color: #a1a1aa;
}

.bu-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--bu-max);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 80px) clamp(20px, 4vw, 40px) clamp(56px, 9vw, 88px);
}

.bu-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bu-red);
}

.bu-hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bu-red);
  flex-shrink: 0;
}

.bu-hero h1 {
  margin: 0 0 20px;
  max-width: 14ch;
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--bu-ink);
}

.bu-hero-dot-end {
  color: var(--bu-red);
}

.bu-hero-lead {
  margin: 0 0 28px;
  max-width: 36em;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.55;
  color: var(--bu-muted);
}

.bu-hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  color: var(--bu-muted);
}

.bu-hero-note svg {
  flex-shrink: 0;
  opacity: 0.6;
}

/* ── Tools section ───────────────────────────────────────────────────────── */
.bu-tools-section {
  background: var(--bu-section-bg);
}

.bu-tools-panel {
  max-width: var(--bu-max);
  margin: 0 auto;
  padding: 28px clamp(20px, 4vw, 40px) 40px;
}

.bu-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.bu-tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 20px 0;
  min-height: 200px;
  --tool-accent: var(--bu-red);
  background: var(--bu-card-bg);
  border: 1px solid var(--bu-border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.bu-tool-card:hover {
  border-color: #c4c4c8;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.bu-tool-card[hidden] {
  display: none !important;
}

.bu-tool-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: color-mix(in srgb, var(--tool-accent) 12%, white);
  color: var(--tool-accent);
}

.bu-tool-icon svg {
  width: 26px;
  height: 26px;
}

.bu-tool-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--bu-ink);
  margin-bottom: 8px;
}

.bu-tool-desc {
  font-size: 13px;
  line-height: 1.45;
  color: var(--bu-muted);
  margin-bottom: 20px;
  flex: 1;
}

.bu-tool-accent {
  display: block;
  width: 100%;
  height: 4px;
  margin-top: auto;
  background: var(--tool-accent);
}

/* ── Footer strip ────────────────────────────────────────────────────────── */
.bu-landing-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 20px 28px;
  font-size: 13px;
  color: var(--bu-muted);
  border-top: 1px solid var(--bu-border);
  background: var(--bu-hero-bg);
}

.bu-landing-foot svg {
  opacity: 0.5;
}

/* ── About page ──────────────────────────────────────────────────────────── */
body.bu-about-page .bu-landing {
  display: none;
}

.bu-home-shell {
  padding-top: var(--bu-header-h);
  min-height: 100vh;
  background: var(--bu-hero-bg);
}

.bu-about {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.bu-about-hero {
  background: #fff;
  border: 1px solid var(--bu-border);
  border-radius: 12px;
  margin-bottom: 32px;
}

.bu-about-hero-inner {
  padding: clamp(28px, 5vw, 40px);
}

.bu-about-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}

.bu-about-lead {
  margin: 0;
  font-size: 16px;
  color: var(--bu-muted);
  line-height: 1.55;
}

.bu-about-body section {
  margin-bottom: 32px;
}

.bu-about-body h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--bu-border);
}

.bu-about-body p,
.bu-about-body ul {
  margin: 0 0 14px;
  color: var(--bu-muted);
  line-height: 1.6;
}

.bu-about-body strong {
  color: var(--bu-ink);
}

.bu-about-body ul {
  padding-left: 1.25rem;
}

.bu-about-mission {
  background: #fff;
  border: 1px solid var(--bu-border);
  border-radius: 12px;
  padding: 24px;
}

.bu-about-tagline {
  font-size: 18px;
  font-weight: 500;
  color: var(--bu-ink) !important;
}

.bu-home-footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--bu-muted);
}

.bu-home-footer a {
  color: var(--bu-ink);
  text-decoration: none;
}

.bu-home-footer a:hover {
  color: var(--bu-red);
}

/* ── Auth modal ──────────────────────────────────────────────────────────── */
#bu-auth-overlay {
  background: rgba(15, 23, 42, 0.45) !important;
  font-family: var(--bu-font) !important;
}

#bu-auth-overlay > div {
  width: min(420px, 94vw) !important;
  background: #fff !important;
  border: 1px solid var(--bu-border) !important;
  border-radius: 12px !important;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18) !important;
}

#bu-auth-overlay > div > div:first-child img {
  filter: none !important;
  height: 26px !important;
}

#bu-auth-overlay input:focus {
  border-color: var(--bu-red) !important;
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.12) !important;
}

#bu-auth-overlay button[id$="_btn"]:not([type="button"]) {
  background: var(--bu-red) !important;
  border-radius: 8px !important;
}

/* ── Account dropdown ────────────────────────────────────────────────────── */
body.bu-home .bu-account-panel,
body.bu-home #bu-account-panel {
  background: #fff !important;
  border: 1px solid var(--bu-border) !important;
  border-radius: 12px !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14) !important;
}

body.bu-home .bu-account-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--bu-border);
}

body.bu-home .bu-account-meta { min-width: 0; flex: 1; }

body.bu-home .bu-account-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bu-black);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.bu-home .bu-account-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--bu-ink);
}

body.bu-home .bu-account-email {
  font-size: 11px;
  color: var(--bu-muted);
  margin-top: 2px;
}

body.bu-home .bu-account-menu,
body.bu-home .bu-account-footer { padding: 6px; }

body.bu-home .bu-account-footer {
  border-top: 1px solid var(--bu-border);
}

body.bu-home .bu-account-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 13.5px;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}

body.bu-home .bu-account-icon {
  width: 20px;
  height: 20px;
  opacity: 0.55;
}

body.bu-home .bu-account-item:hover {
  background: #f1f5f9;
}

body.bu-home .bu-account-item--active {
  background: #f1f5f9;
}

body.bu-home .bu-account-item--danger {
  color: #be123c;
}

@media (max-width: 719px) {
  .bu-hero-wave {
    opacity: 0.2;
    width: 80%;
  }

  .bu-tools-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}
