/* bellhousing.app, the public site (D-136).
   Colors, fonts, radius and spacing come from tokens.css (a copy of design/tokens.css).
   Dark bands use data-theme="dark", which re-scopes the same tokens.
   Marketing exception to DESIGN.md (Daniel approved this look, Nov 3), limited to:
   larger type; a 64px grid pattern and an accent glow behind the hero; a shadow on the
   hero screenshot; a second accent glow on the closing Sign in band; a drop shadow on the
   screenshot callouts; and fully rounded pill tags (.tag). Everything else keeps
   --bh-radius corners and no shadows. */
@font-face {
  font-family: "Source Sans 3";
  font-weight: 200 900;
  font-display: swap;
  src: url("/fonts/source-sans-3.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-600.woff2") format("woff2");
}

:root {
  --site-wrap: 1160px;
  --site-gutter: var(--bh-space-8);
  --site-section: 112px;
  --site-pill: 999px; /* pill tags only (marketing exception) */
}
/* The glow and shadow colours come from the tokens, recomputed inside dark bands so they
   use the dark theme's accent and ground. */
:root,
[data-theme="dark"] {
  --site-glow: color-mix(in srgb, var(--bh-accent) 22%, transparent);
  --site-shadow: color-mix(in srgb, var(--bh-bg) 35%, transparent);
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--bh-surface);
  color: var(--bh-ink);
  font: 400 18px/1.55 var(--bh-font-sans);
}
[data-theme="dark"] {
  background: var(--bh-bg);
  color: var(--bh-ink);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--bh-accent-text);
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
}
.num,
.fact-num {
  font-family: var(--bh-font-mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.wrap {
  max-width: var(--site-wrap);
  margin: 0 auto;
  padding: 0 var(--site-gutter);
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--bh-space-4);
  top: var(--bh-space-4);
  z-index: 10;
  background: var(--bh-surface);
  padding: var(--bh-space-2) var(--bh-space-4);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--bh-space-2);
  font-weight: 650;
  font-size: 17px;
  line-height: 1;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: var(--bh-radius);
}
.btn-primary {
  background: var(--bh-accent);
  color: var(--bh-accent-fg);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  filter: brightness(1.08);
}
.btn-ghost {
  color: var(--bh-ink);
  box-shadow: inset 0 0 0 1px var(--bh-border-strong);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--bh-surface);
}
.btn-sm {
  padding: 10px 16px;
  font-size: 15px;
}
:focus-visible {
  outline: 2px solid var(--bh-accent);
  outline-offset: 2px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 50% 100%, var(--site-glow), transparent 70%),
    linear-gradient(var(--bh-border) 1px, transparent 1px) 0 0 / 100% 64px,
    linear-gradient(90deg, var(--bh-border) 1px, transparent 1px) 0 0 / 64px
      100%;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(#000 30%, transparent 95%);
  mask-image: linear-gradient(#000 30%, transparent 95%);
  pointer-events: none;
}
.top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--bh-ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
}
.brand img {
  filter: brightness(0) invert(1);
}
.nav {
  display: flex;
  align-items: center;
  gap: var(--bh-space-7);
  font-size: 15px;
}
.nav-link {
  color: var(--bh-ink-2);
  text-decoration: none;
}
.nav-link:hover {
  color: var(--bh-ink);
}
.hero-body {
  position: relative;
  text-align: center;
  padding-top: 40px;
}
.tag {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin: 0;
  font-size: 14px;
  color: var(--bh-ink-2);
  border: 1px solid var(--bh-border);
  background: var(--bh-surface);
  padding: 6px 14px 6px 8px;
  border-radius: var(--site-pill);
}
.tag b {
  background: var(--bh-accent);
  color: var(--bh-accent-fg);
  font-size: 12px;
  padding: 3px 8px;
  border-radius: var(--site-pill);
}
h1 {
  font-size: clamp(38px, 5.2vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 20px auto 16px;
  max-width: 900px;
}
h1 em {
  font-style: normal;
  color: var(--bh-accent);
}
.sub {
  font-size: 20px;
  color: var(--bh-ink-2);
  max-width: 640px;
  margin: 0 auto 28px;
}
.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 44px;
}
.frame {
  position: relative;
  margin: 0 auto;
  max-width: 1080px;
  border: 1px solid var(--bh-border);
  border-bottom: 0;
  background: var(--bh-surface);
  padding: 10px 10px 0;
  box-shadow: 0 -20px 80px var(--site-glow);
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 4px 10px;
}
.frame-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bh-border-strong);
}
.frame-bar span {
  margin-left: 12px;
  font-size: 12px;
  color: var(--bh-ink-2);
}
.frame img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: top;
}
.callout {
  position: absolute;
  margin: 0;
  max-width: 230px;
  padding: 10px 14px;
  text-align: left;
  font-size: 14px;
  line-height: 1.3;
  background: var(--bh-ink);
  color: var(--bh-bg);
  border-left: 3px solid var(--bh-accent);
  box-shadow: 0 10px 30px var(--site-shadow);
}
.callout strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.7;
  margin-bottom: 2px;
}
.c1 {
  left: -56px;
  top: 470px;
}
.c2 {
  right: -60px;
  top: 250px;
}

/* Facts */
.facts {
  border-bottom: 1px solid var(--bh-border);
}
.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.fact {
  margin: 0;
  padding: 34px var(--bh-space-6);
  border-left: 1px solid var(--bh-border);
  display: flex;
  flex-direction: column;
}
.fact:last-child {
  border-right: 1px solid var(--bh-border);
}
.fact-num {
  font-size: 34px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.fact span:last-child {
  font-size: 15px;
  color: var(--bh-muted);
}

/* Sections */
.block {
  padding: var(--site-section) 0;
}
.band {
  background: var(--bh-bg);
  border-top: 1px solid var(--bh-border);
  border-bottom: 1px solid var(--bh-border);
}
.kicker {
  font-size: 15px;
  font-weight: 650;
  color: var(--bh-accent-text);
  margin: 0 0 10px;
}
h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.intro {
  max-width: 720px;
  margin-bottom: 64px;
}
.intro > p:not(.kicker) {
  color: var(--bh-ink-2);
  font-size: 20px;
  margin: 0;
}

/* Feature rows */
.row {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: center;
  margin-bottom: var(--site-section);
}
.row:last-child {
  margin-bottom: 0;
}
.row.flip {
  grid-template-columns: 7fr 5fr;
}
.row.flip .copy {
  order: 2;
}
.copy h3 {
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.copy p {
  color: var(--bh-ink-2);
  margin: 0 0 20px;
}
.copy ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--bh-border);
}
.copy li {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--bh-border);
  font-size: 16px;
  color: var(--bh-ink-2);
}
.copy li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  background: var(--bh-accent);
}
.pic {
  position: relative;
  margin: 0;
  padding: 28px 0 0 28px;
  background: var(--bh-bg);
  border: 1px solid var(--bh-border);
}
.pic img {
  width: 100%;
  border: 1px solid var(--bh-border-strong);
  border-right: 0;
  border-bottom: 0;
}
.note {
  position: absolute;
  right: -14px;
  bottom: -44px;
  max-width: 250px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.35;
  background: var(--bh-ink);
  color: var(--bh-bg);
}

/* Before / after */
.ba {
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
}
.col {
  background: var(--bh-surface);
  border: 1px solid var(--bh-border);
  padding: 30px 32px;
}
.col-title {
  font-size: 15px;
  font-weight: 650;
  color: var(--bh-muted);
  margin-bottom: 18px;
}
.mails {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mails li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--bh-border);
  font-size: 15px;
  color: var(--bh-ink-2);
}
.mails .num {
  font-size: 13px;
  color: var(--bh-muted);
  white-space: nowrap;
}
.mails .more {
  border: 0;
}
.arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--bh-accent-text);
}
.after {
  background: var(--bh-bg);
}
.after .big {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 8px 0 18px;
}
.after p {
  color: var(--bh-ink-2);
  font-size: 16px;
  margin: 0 0 10px;
}
.chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips li {
  font-size: 13px;
  border: 1px solid var(--bh-border-strong);
  padding: 4px 10px;
}

/* Security */
.sec {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--bh-border);
  border-left: 1px solid var(--bh-border);
}
.sec li {
  padding: 28px 26px;
  border-right: 1px solid var(--bh-border);
  border-bottom: 1px solid var(--bh-border);
}
.sec svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--bh-accent);
  stroke-width: 1.6;
  margin-bottom: 18px;
}
.sec h3 {
  font-size: 18px;
  margin-bottom: 6px;
}
.sec p {
  font-size: 15px;
  color: var(--bh-ink-2);
  margin: 0;
}

/* About */
.about {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
}
.about-lead {
  font-size: 32px;
  line-height: 1.25;
}
.about p:not(.kicker) {
  color: var(--bh-ink-2);
  margin: 0 0 16px;
}

/* Closing + footer */
.closing {
  position: relative;
  overflow: hidden;
}
.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    700px 300px at 50% 120%,
    var(--site-glow),
    transparent 70%
  );
  pointer-events: none;
}
.closing-body {
  position: relative;
  text-align: center;
  padding-top: 96px;
  padding-bottom: 96px;
}
.closing-body h2 {
  font-size: clamp(32px, 4vw, 48px);
}
.closing-body p {
  color: var(--bh-ink-2);
  margin: 0 0 30px;
}
.foot {
  position: relative;
  border-top: 1px solid var(--bh-border);
  font-size: 14px;
  color: var(--bh-ink-2);
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 26px;
  padding-bottom: 26px;
}
.foot nav {
  display: flex;
  gap: 24px;
}
.foot a {
  color: var(--bh-ink-2);
  text-decoration: none;
}
.foot a:hover {
  color: var(--bh-ink);
}

/* Narrower screens */
@media (max-width: 1240px) {
  .c1 {
    left: 16px;
  }
  .c2 {
    right: 16px;
  }
  .note {
    right: 12px;
  }
}
@media (max-width: 900px) {
  :root {
    --site-section: 72px;
  }
  .nav-link {
    display: none;
  }
  .frame img {
    height: auto;
  }
  .callout {
    display: none;
  }
  .facts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fact:nth-child(2) {
    border-right: 1px solid var(--bh-border);
  }
  .fact:nth-child(-n + 2) {
    border-bottom: 1px solid var(--bh-border);
  }
  .row,
  .row.flip,
  .about {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .row.flip .copy {
    order: 0;
  }
  .note {
    position: static;
    max-width: none;
    margin-right: 0;
  }
  .ba {
    grid-template-columns: 1fr;
  }
  .arrow {
    transform: rotate(90deg);
    padding: 12px 0;
  }
  .sec {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  :root {
    --site-gutter: var(--bh-space-4);
  }
  .sub,
  .intro > p:not(.kicker) {
    font-size: 18px;
  }
  .tag span {
    font-size: 13px;
  }
  .sec {
    grid-template-columns: 1fr;
  }
  .col {
    padding: 24px 20px;
  }
  .copy h3,
  .after .big {
    font-size: 26px;
  }
}
