/* The whole public site (2026-12-06): dark, with kwerve's terracotta. The palette, the top bar
   (_site_nav.html), the footer (_site_footer.html) and the dark versions of the Tailwind tokens'
   loose ends. The business home page adds its own parts in business-home.css. */
:root {
  --night: #0F0E0D; --panel: #161412; --panel2: #1B1917; --raise: #1E1C1A; --line: #2A2724; --line2: #2E2A27;
  --text: #F5F1EC; --soft: #D6CFC8; --dim: #B8B0A8; --faint: #8F8780;
  --accent: #C55B3E; --accent-hi: #E07A5C; --accent-btn: #B9512F; --accent-soft: #F2A98F;
  --ok-bg: #1F3A2B; --ok: #A7E3BF; --ok-dot: #48BB78; --warn-bg: #3A1D14; --warn-line: #5A2E1F;
  --cream: #F5F1EC; --ink: #1A1A1A; --chipbg: #2A2724; --tick: #2F855A; --inkdim: #4A433D; --white: #FFFFFF;
}
body.site-dark { background: var(--night); color: var(--text); }
.bh-wrap { max-width: 1200px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.bh-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-hi); }
.bh-h2 { margin: 14px 0 0; font-size: clamp(30px, 4vw, 52px); line-height: 1.05; letter-spacing: -.03em; font-weight: 700; }
.bh-lead { font-size: 18px; line-height: 1.55; color: var(--dim); }
.bh-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 12px;
  background: var(--accent-btn); color: #FFFFFF !important; font-weight: 600; font-size: 17px; text-decoration: none; border: 0; cursor: pointer; }
.bh-btn:hover { background: var(--accent); }
.bh-ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 12px;
  background: transparent; color: var(--text) !important; font-weight: 600; font-size: 17px; text-decoration: none; border: 1px solid #3A3633; cursor: pointer; font-family: inherit; }
.bh-ghost:hover { border-color: #6E645C; }

/* logo: the two arcs send out a signal */
.bh-arc1 { animation: bh-sig 2.8s ease-in-out infinite; }
.bh-arc2 { animation: bh-sig 2.8s ease-in-out .35s infinite; }
@keyframes bh-sig { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }
.bh-wave { fill: none; stroke: var(--accent-hi); stroke-width: 2; stroke-linecap: round; opacity: 0; animation: bh-wave 2.8s ease-out infinite; }
@keyframes bh-wave { 0% { opacity: .8; transform: translate(0, 0) } 100% { opacity: 0; transform: translate(6px, -6px) } }
.bh-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--accent-hi) !important; }
.bh-brand span { font-weight: 600; font-size: 22px; letter-spacing: -0.03em; color: var(--text); }
.bh-brand-sm span { font-size: 20px; }

/* announcement strip (business site) */
.bh-announce { border-bottom: 1px solid var(--raise); }
.bh-announce .bh-wrap { display: flex; justify-content: center; align-items: center; gap: 10px; min-height: 40px; font-size: 14px; color: var(--soft); flex-wrap: wrap; text-align: center; }
.bh-announce a { font-weight: 600; color: var(--accent-soft) !important; text-decoration: none; }
.bh-announce-tag { background: var(--warn-bg); color: var(--accent-soft); font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; }

/* top bar and mega menus: hover or keyboard focus opens them, no script needed */
.bh-top { position: sticky; top: 0; z-index: 40; background: rgba(15, 14, 13, .92); border-bottom: 1px solid var(--raise); backdrop-filter: blur(8px); }
.bh-nav { position: relative; display: flex; align-items: center; gap: 16px; min-height: 64px; }
.bh-navlinks { display: flex; align-items: center; gap: 2px; flex: 1 1 auto; justify-content: center; }
.bh-navbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 9px; color: var(--soft) !important;
  font-size: 15px; text-decoration: none; background: transparent; border: 0; cursor: pointer; font-family: inherit; }
.bh-navbtn:hover, .bh-drop:focus-within > .bh-navbtn, .bh-drop:hover > .bh-navbtn { color: #FFFFFF !important; background: var(--raise); }
.bh-drop { position: static; }
.bh-mega { display: none; position: absolute; left: 20px; right: 20px; top: 60px; max-width: 900px; margin: 0 auto; padding: 18px;
  background: var(--panel); border: 1px solid var(--line2); border-radius: 16px; box-shadow: 0 30px 60px rgba(0, 0, 0, .55);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 6px; }
.bh-drop:hover .bh-mega, .bh-drop:focus-within .bh-mega { display: grid; }
.bh-mitem { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 10px; text-decoration: none; }
.bh-mitem:hover, .bh-mitem:focus { background: var(--raise); }
.bh-micon { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 9px; background: var(--raise); border: 1px solid var(--line2);
  display: flex; align-items: center; justify-content: center; color: var(--accent-hi); }
.bh-mtitle { display: block; font-size: 15px; font-weight: 600; color: var(--text); }
.bh-msub { display: block; font-size: 13px; color: var(--dim); margin-top: 2px; }
.bh-demo { background: var(--cream); color: var(--panel) !important; text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 16px; border-radius: 10px; white-space: nowrap; }
.bh-top .lang-menu summary { color: var(--soft); }
.bh-top .lang-menu ul { background: var(--panel); border-color: var(--line2); }
.bh-top .lang-menu ul a { color: var(--dim); }
.bh-top .lang-menu ul a:hover { background: var(--raise); color: #FFFFFF; }
.bh-burger { display: none; }
@media (max-width: 960px) {
  .bh-navlinks { display: none; }
  .bh-burger { display: block; margin-left: auto; }
  .bh-burger summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line2); border-radius: 10px; color: var(--soft); }
  .bh-burger[open] .bh-mobile { display: block; }
  .bh-mobile { display: none; position: absolute; left: 12px; right: 12px; top: 62px; background: var(--panel); border: 1px solid var(--line2); border-radius: 14px; padding: 10px; }
  .bh-mobile a { display: flex; min-height: 44px; align-items: center; padding: 0 10px; border-radius: 8px; color: var(--soft) !important; text-decoration: none; }
  .bh-hide-sm { display: none !important; }
}
.bh-actions { display: flex; align-items: center; gap: 6px; }
.bh-account { position: relative; }
.bh-account summary { list-style: none; cursor: pointer; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--warn-bg); color: var(--accent-soft); font-weight: 600; text-transform: uppercase; font-size: 14px; }
.bh-account summary::-webkit-details-marker { display: none; }
.bh-account-menu { position: absolute; right: 0; top: 44px; z-index: 50; min-width: 200px; padding: 6px; background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; box-shadow: 0 20px 40px rgba(0, 0, 0, .5); }
.bh-account-menu p { margin: 0; padding: 6px 10px 8px; font-size: 12px; color: var(--faint); border-bottom: 1px solid var(--line); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bh-account-menu a, .bh-account-menu button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; font-size: 14px; color: var(--soft) !important; text-decoration: none; background: none; border: 0; cursor: pointer; font-family: inherit; }
.bh-account-menu a:hover, .bh-account-menu button:hover { background: var(--raise); color: #FFFFFF !important; }
.bh-mobile-out { display: flex; width: 100%; min-height: 44px; align-items: center; padding: 0 10px; border-radius: 8px; color: var(--accent-soft); background: none; border: 0; font: inherit; cursor: pointer; }
.bh-top .lang-menu summary { color: var(--soft); }
.bh-top .lang-menu summary:hover { background: var(--raise); }

/* footer */
.bh-foot { border-top: 1px solid var(--raise); }
.bh-foot a { font-size: 14px; color: var(--dim) !important; text-decoration: none; }
.bh-foot a:hover { color: #FFFFFF !important; }
.bh-foot h3 { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); margin: 0; }
.bh-foot-grid { padding-top: 56px; padding-bottom: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 32px; }
.bh-foot-tag { margin: 12px 0 0; font-size: 14px; color: var(--faint); line-height: 1.5; }
.bh-foot-col { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.bh-foot-bottom { padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--faint); }

/* The Tailwind pages on the dark site. The tokens themselves turn dark in marketing/base.html;
   these are the few places where a light-site habit reads wrong on dark: white text on a
   terracotta button (text-surface was white), and a terracotta that stays deep enough under it. */
.site-dark .bg-accent { background-color: var(--accent-btn); color: #FFFFFF; }
.site-dark .bg-accent.text-surface, .site-dark .bg-accent .text-surface { color: #FFFFFF; }
.site-dark .hover\:bg-accent\/90:hover { background-color: var(--accent); }
.site-dark img[src*="kwerve-logo"] { filter: invert(1) hue-rotate(180deg); }
.site-dark .bg-slate-100, .site-dark .bg-slate-100\/70 { background-color: var(--raise); }
.site-dark ::selection { background: var(--accent-btn); color: #FFFFFF; }

@media (prefers-reduced-motion: reduce) {
  .bh-arc1, .bh-arc2, .bh-wave { animation: none !important; }
}
