/* Homepage only. Tokens from DESIGN.md. Scoped under .besen-home so inner pages stay untouched. */
.besen-home {
  --bh-ink: #0F172A;
  --bh-muted: #475569;
  --bh-surface: #FFFFFF;
  --bh-alt: #F1F5F9;
  --bh-border: #E2E8F0;
  --bh-brand: #0B3A5C;
  --bh-brand-soft: #E8F1F7;
  --bh-accent: #C45C26;
  --bh-accent-hover: #A34A1C;
  --bh-success: #0F766E;
  --bh-danger: #B91C1C;
  --bh-cert: #1D4ED8;
  --bh-radius: 8px;
  --bh-radius-sm: 6px;
  --bh-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  --bh-max: 1160px;
  --bh-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --bh-mono: "IBM Plex Mono", ui-monospace, monospace;
  --bh-ease: 200ms ease-out;
  color: var(--bh-ink);
  font-family: var(--bh-font);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bh-surface);
}

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

.besen-home img { max-width: 100%; height: auto; display: block; }
.besen-home a { color: inherit; text-decoration: none; }
.besen-home ul { list-style: none; margin: 0; padding: 0; }
.besen-home p { margin: 0; }
.besen-home h1, .besen-home h2, .besen-home h3 { margin: 0; font-weight: 600; letter-spacing: -0.015em; color: var(--bh-ink); }

.bh-wrap {
  width: min(100% - 48px, var(--bh-max));
  margin-inline: auto;
}

/* Buttons */
.bh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: var(--bh-radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--bh-ease), border-color var(--bh-ease), color var(--bh-ease), transform var(--bh-ease);
  white-space: nowrap;
  text-decoration: none;
}
.bh-btn-primary { background: var(--bh-accent); color: #fff; }
.bh-btn-primary:hover { background: var(--bh-accent-hover); color: #fff; }
.bh-btn-secondary { background: transparent; color: var(--bh-brand); border-color: var(--bh-brand); }
.bh-btn-secondary:hover { background: var(--bh-brand-soft); color: var(--bh-brand); }
.bh-btn-ghost { background: transparent; color: var(--bh-brand); height: auto; padding: 0; border: 0; }
.bh-btn-ghost:hover { color: var(--bh-accent); }
.bh-btn-lg { height: 50px; padding: 0 24px; font-size: 15px; }
.bh-btn-block { width: 100%; }

/* Placeholder figure */
.bh-ph { margin: 0; }
.bh-ph img { width: 100%; height: auto; background: var(--bh-border); }
.bh-ph figcaption {
  font-size: 12px;
  line-height: 1.4;
  color: var(--bh-muted);
  margin-top: 8px;
  font-family: var(--bh-mono);
}

/* Hero */
.bh-hero {
  padding: 64px 0 72px;
  background: linear-gradient(180deg, var(--bh-brand-soft) 0%, var(--bh-surface) 100%);
}
.bh-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.bh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bh-brand);
  margin-bottom: 16px;
}
.bh-eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--bh-accent);
}
.bh-hero h1 {
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 18px;
  max-width: 18ch;
}
.bh-hero h1 span { color: var(--bh-brand); }
.bh-lead {
  font-size: 17px;
  color: var(--bh-muted);
  max-width: 46ch;
  margin-bottom: 28px;
}
.bh-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.bh-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--bh-border);
}
.bh-metric-value {
  font-family: var(--bh-mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--bh-accent);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.bh-metric-label { font-size: 12px; color: var(--bh-muted); margin-top: 4px; }
.bh-hero-visual {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--bh-border);
  box-shadow: var(--bh-shadow);
  background: var(--bh-alt);
}
.bh-hero-visual .bh-ph { margin: 0; }
.bh-hero-visual .bh-ph img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.bh-hero-visual .bh-ph figcaption {
  position: absolute;
  right: 12px;
  top: 12px;
  margin: 0;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--bh-border);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11px;
}
 .bh-hero-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--bh-border);
  border-radius: var(--bh-radius-sm);
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 280px;
}
.bh-hero-badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bh-success);
  flex-shrink: 0;
  margin-top: 4px;
}
.bh-hero-badge strong { display: block; font-size: 13px; font-weight: 600; }
.bh-hero-badge span { font-size: 12px; color: var(--bh-muted); }

/* Trust */
.bh-trust {
  padding: 28px 0;
  border-bottom: 1px solid var(--bh-border);
  background: var(--bh-surface);
}
.bh-trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bh-trust-card { display: flex; gap: 14px; align-items: flex-start; padding: 8px 4px; }
.bh-trust-icon {
  width: 40px; height: 40px;
  border-radius: var(--bh-radius-sm);
  background: var(--bh-brand-soft);
  color: var(--bh-brand);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.bh-trust-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; color: var(--bh-ink); }
.bh-trust-card p { font-size: 13px; color: var(--bh-muted); line-height: 1.45; }

/* Sections */
.bh-section { padding: 80px 0; }
.bh-alt { background: var(--bh-alt); }
.bh-section-head { max-width: 680px; margin-bottom: 40px; }
.bh-section-head h2 {
  font-size: clamp(24px, 3vw, 30px);
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 10px;
}
.bh-section-head p { color: var(--bh-muted); font-size: 16px; }

/* Path */
.bh-path { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.bh-path-step {
  background: var(--bh-surface);
  border: 1px solid var(--bh-border);
  border-radius: var(--bh-radius);
  padding: 20px 16px;
  transition: border-color var(--bh-ease), transform var(--bh-ease), box-shadow var(--bh-ease);
}
.bh-path-step.is-active {
  border-color: color-mix(in srgb, var(--bh-brand) 35%, var(--bh-border));
  box-shadow: var(--bh-shadow);
}
.bh-path-num {
  font-family: var(--bh-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--bh-accent);
  margin-bottom: 10px;
}
.bh-path-step h3 { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.bh-path-step p { font-size: 12px; color: var(--bh-muted); line-height: 1.45; }
.bh-path-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--bh-muted);
  padding: 14px 16px;
  background: var(--bh-brand-soft);
  border-radius: var(--bh-radius-sm);
  border-left: 3px solid var(--bh-brand);
}

/* Product cards */
.bh-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bh-card {
  background: var(--bh-surface);
  border: 1px solid var(--bh-border);
  border-radius: var(--bh-radius);
  box-shadow: var(--bh-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--bh-ease), box-shadow var(--bh-ease), border-color var(--bh-ease);
}
.bh-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  border-color: color-mix(in srgb, var(--bh-brand) 22%, var(--bh-border));
}
.bh-card-media { background: var(--bh-border); }
.bh-card-media .bh-ph figcaption { padding: 0 16px 0; }
.bh-card-media img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.bh-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.bh-card-body h3 { font-size: 16px; margin-bottom: 6px; }
.bh-card-body > p { font-size: 13px; color: var(--bh-muted); margin-bottom: 12px; }
.bh-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.bh-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: var(--bh-brand-soft);
  color: var(--bh-brand);
}
.bh-card-link {
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--bh-brand);
}
.bh-card-link:hover { color: var(--bh-accent); }
.bh-more { margin-top: 28px; }

/* Proof panel */
.bh-panel {
  background: var(--bh-surface);
  border: 1px solid var(--bh-border);
  border-radius: var(--bh-radius);
  box-shadow: var(--bh-shadow);
}
.bh-panel-body { padding: 24px 28px; }
.bh-panel-body p { color: var(--bh-muted); margin-bottom: 12px; }
.bh-panel-body p:last-of-type { margin-bottom: 20px; }
.bh-panel-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* Audiences */
.bh-audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bh-audience-card {
  background: var(--bh-surface);
  border: 1px solid var(--bh-border);
  border-radius: var(--bh-radius);
  padding: 24px;
  transition: transform var(--bh-ease), box-shadow var(--bh-ease);
}
.bh-audience-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08); }
.bh-audience-card h3 { font-size: 16px; color: var(--bh-brand); margin-bottom: 8px; }
.bh-audience-card > p { font-size: 13px; color: var(--bh-muted); margin-bottom: 16px; }
.bh-audience-card ul li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  margin-bottom: 8px;
}
.bh-audience-card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--bh-accent);
}

/* Company links (replaces unpublished cases) */
.bh-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bh-link-card {
  display: flex;
  flex-direction: column;
  background: var(--bh-surface);
  border: 1px solid var(--bh-border);
  border-radius: var(--bh-radius);
  padding: 24px;
  box-shadow: var(--bh-shadow);
  transition: transform var(--bh-ease), box-shadow var(--bh-ease), border-color var(--bh-ease);
  color: inherit;
}
.bh-link-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  border-color: color-mix(in srgb, var(--bh-brand) 22%, var(--bh-border));
}
.bh-link-card h3 { font-size: 16px; margin-bottom: 8px; }
.bh-link-card p { font-size: 13px; color: var(--bh-muted); margin-bottom: 16px; flex: 1; }

/* Brief / contact */
.bh-brief-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.bh-brief-aside h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 700; margin-bottom: 12px; }
.bh-brief-aside > p { color: var(--bh-muted); margin-bottom: 20px; font-size: 15px; }
.bh-sla { margin-bottom: 20px; }
.bh-sla li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-size: 14px; }
.bh-sla-time {
  font-family: var(--bh-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--bh-accent);
  min-width: 3.6rem;
  flex-shrink: 0;
  padding-top: 2px;
}
.bh-contact-list { margin-bottom: 16px; }
.bh-contact-list li { font-size: 14px; margin-bottom: 6px; }
.bh-contact-list a { color: var(--bh-brand); font-weight: 600; }
.bh-contact-list a:hover { color: var(--bh-accent); }
.bh-aside-links { font-size: 13px; color: var(--bh-muted); }
.bh-aside-links a { color: var(--bh-brand); font-weight: 600; }
.bh-aside-links a:hover { color: var(--bh-accent); }

.bh-form {
  background: var(--bh-surface);
  border: 1px solid var(--bh-border);
  border-radius: var(--bh-radius);
  padding: 24px;
  box-shadow: var(--bh-shadow);
  transition: box-shadow var(--bh-ease);
}
.bh-form.is-focus-within { box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08); }
.bh-form-section {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--bh-border);
}
.bh-form-section:last-of-type { border-bottom: none; margin-bottom: 8px; }
.bh-form-section h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bh-brand);
  margin-bottom: 14px;
}
.bh-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bh-field { display: flex; flex-direction: column; gap: 6px; }
.bh-field-full { grid-column: 1 / -1; }
.bh-form label { font-size: 12px; font-weight: 600; color: var(--bh-muted); }
.bh-req { color: var(--bh-danger); }
.bh-form input,
.bh-form select,
.bh-form textarea {
  height: 44px;
  border: 1px solid var(--bh-border);
  border-radius: var(--bh-radius-sm);
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  color: var(--bh-ink);
  background: #fff;
  outline: none;
  transition: box-shadow 150ms ease-out, border-color 150ms ease-out;
  width: 100%;
}
.bh-form textarea { height: 96px; padding: 10px 12px; resize: vertical; }
.bh-form input:focus,
.bh-form select:focus,
.bh-form textarea:focus {
  border-color: var(--bh-brand);
  box-shadow: 0 0 0 2px rgba(11, 58, 92, 0.18);
}
.bh-hint { font-size: 12px; color: var(--bh-muted); }
.bh-progress { width: 100%; margin: 8px 0; }
.bh-form [data-status] { font-size: 13px; margin-top: 10px; min-height: 1.2em; }
.bh-form-fallback { text-align: left; }
.bh-form-fallback p { margin-bottom: 16px; color: var(--bh-muted); }

/* Motion */
.bh-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 220ms ease-out, transform 220ms ease-out;
}
.bh-reveal.is-in { opacity: 1; transform: none; }
.bh-d1 { transition-delay: 60ms; }
.bh-d2 { transition-delay: 100ms; }
.bh-d3 { transition-delay: 140ms; }
.bh-d4 { transition-delay: 180ms; }

.bh-hero.is-ready .bh-hero-copy .bh-eyebrow,
.bh-hero.is-ready .bh-hero-copy h1,
.bh-hero.is-ready .bh-hero-copy .bh-lead,
.bh-hero.is-ready .bh-hero-copy .bh-hero-cta,
.bh-hero.is-ready .bh-hero-copy .bh-metrics,
.bh-hero.is-ready .bh-hero-visual {
  animation: bh-fade 220ms ease-out both;
}
.bh-hero.is-ready .bh-hero-copy h1 { animation-delay: 40ms; }
.bh-hero.is-ready .bh-hero-copy .bh-lead { animation-delay: 80ms; }
.bh-hero.is-ready .bh-hero-copy .bh-hero-cta { animation-delay: 120ms; }
.bh-hero.is-ready .bh-hero-copy .bh-metrics { animation-delay: 160ms; }
.bh-hero.is-ready .bh-hero-visual { animation-delay: 80ms; }

@keyframes bh-fade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .bh-reveal,
  .bh-hero.is-ready .bh-hero-copy .bh-eyebrow,
  .bh-hero.is-ready .bh-hero-copy h1,
  .bh-hero.is-ready .bh-hero-copy .bh-lead,
  .bh-hero.is-ready .bh-hero-copy .bh-hero-cta,
  .bh-hero.is-ready .bh-hero-copy .bh-metrics,
  .bh-hero.is-ready .bh-hero-visual,
  .bh-card, .bh-audience-card, .bh-link-card, .bh-path-step, .bh-btn, .bh-form {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .bh-card:hover, .bh-audience-card:hover, .bh-link-card:hover { transform: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 980px) {
  .bh-hero-grid,
  .bh-brief-grid { grid-template-columns: 1fr; gap: 32px; }
  .bh-hero { padding: 40px 0 48px; }
  .bh-hero h1 { max-width: none; }
  .bh-path { grid-template-columns: 1fr 1fr; }
  .bh-cards { grid-template-columns: 1fr 1fr; }
  .bh-trust-grid,
  .bh-audience,
  .bh-links { grid-template-columns: 1fr; }
  .bh-section { padding: 56px 0; }
  .bh-hero-badge { bottom: 44px; }
}
@media (max-width: 640px) {
  .bh-wrap { width: min(100% - 32px, var(--bh-max)); }
  .bh-metrics { grid-template-columns: 1fr; gap: 12px; }
  .bh-path, .bh-cards { grid-template-columns: 1fr; }
  .bh-fields { grid-template-columns: 1fr; }
  .bh-hero-cta .bh-btn { width: 100%; }
  .bh-hero-badge { max-width: calc(100% - 24px); }
}
