/* BuntelliSystems — shared stylesheet */

:root {
  --teal: #0F6E56;
  --teal-dark: #04342C;
  --teal-light: #5DCAA5;
  --teal-tint: #E1F5EE;
  --gray: #5F5E5A;
  --bg: #FAFAF9;
  --line: #E4E2DB;
  --line-strong: #D8D6D1;
  --white: #fff;
  --wrap: 1040px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--teal-dark);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--teal); }
a:hover { color: var(--teal-dark); }

/* ---------- wordmark ---------- */

.wordmark {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 500;
  color: var(--teal-dark);
  letter-spacing: -0.01em;
}
.suffix {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  color: var(--teal);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 249, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand .wordmark { font-size: 22px; }
.brand .suffix { font-size: 22px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 7px 10px;
  cursor: pointer;
  color: var(--teal-dark);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
}

/* Top level only. Must not cascade into .submenu, or it forces it open. */
nav.main-nav > ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--teal-dark);
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
}
nav.main-nav a:hover { background: var(--teal-tint); color: var(--teal-dark); }
nav.main-nav a.current { color: var(--teal); }

.has-sub { position: relative; }
.has-sub > a::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 7px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.55;
}
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  list-style: none;
  margin: 0;
  min-width: 210px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(4, 52, 44, 0.10);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
}
.has-sub:hover .submenu,
.has-sub:focus-within .submenu { display: flex; }
.submenu li { width: 100%; }
.submenu a { padding: 9px 11px; font-weight: 400; }
.submenu .sm-name { font-weight: 500; }
.submenu .sm-desc {
  display: block;
  font-size: 12px;
  color: var(--gray);
  font-weight: 400;
  margin-top: 1px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 6px;
  border: none;
  background: var(--teal);
  color: var(--white);
  font-family: inherit;
  font-weight: 500;
  font-size: 14.5px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--teal-dark); color: var(--white); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn-ghost {
  background: transparent;
  color: var(--teal-dark);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: var(--teal-tint); color: var(--teal-dark); }

/* ---------- layout blocks ---------- */

main { flex: 1 0 auto; }

.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.page-head { padding: 64px 0 8px; }
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 12px;
}

h1 {
  font-size: 38px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
h2 {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
}
p { margin: 0 0 16px; }

.lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--gray);
  max-width: 640px;
}
.prose { max-width: 680px; }
.prose p, .prose li { color: var(--gray); }
.prose h2 { color: var(--teal-dark); margin-top: 40px; }
.prose h3 { color: var(--teal-dark); margin-top: 28px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose > *:first-child { margin-top: 0; }

.muted { color: var(--gray); }
.small { font-size: 13.5px; }

/* ---------- home hero ---------- */

.hero { padding: 72px 0 56px; text-align: center; }
.hero .logo-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 32px;
}
.hero .logo-lockup .wordmark,
.hero .logo-lockup .suffix { font-size: 40px; }
.hero h1 { max-width: 760px; margin-left: auto; margin-right: auto; }
.hero .lead { margin-left: auto; margin-right: auto; }

/* ---------- signup form ---------- */

.signup {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 470px;
  margin: 28px auto 0;
}
input[type="email"],
input[type="text"],
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--teal-dark);
  background: var(--white);
}
.signup input[type="email"] { flex: 1 1 240px; width: auto; }
input:focus, textarea:focus { outline: none; border-color: var(--teal); }
textarea { resize: vertical; min-height: 140px; line-height: 1.6; }

label {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 6px;
}
.field { margin-bottom: 18px; }

.status {
  font-size: 13.5px;
  min-height: 20px;
  color: var(--gray);
  margin-top: 10px;
}
.status.success { color: var(--teal); }
.status.error { color: #B0413E; }
.form-note { font-size: 12.5px; color: var(--gray); margin-top: 12px; }

.honeypot { display: none; }

/* ---------- product cards (home) ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.prod-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  height: 230px;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
}
.prod-card:hover { border-color: var(--teal-light); }
.prod-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px;
  transition: opacity 0.25s ease;
  text-align: center;
}
.prod-back { opacity: 0; }
.prod-card:hover .prod-front { opacity: 0; }
.prod-card:hover .prod-back { opacity: 1; }
.prod-name { font-size: 15px; margin-top: 10px; }
.prod-name .suffix { font-size: 15px; }
.prod-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 8px;
}
.prod-desc { font-size: 13px; color: var(--gray); line-height: 1.55; margin: 0; }
.prod-status { font-size: 11.5px; color: var(--teal); font-weight: 500; margin: 12px 0 0; }

/* ---------- product detail rows ---------- */

.prod-row {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 32px;
  align-items: start;
  padding: 44px 0;
  border-top: 1px solid var(--line);
}
.prod-row:first-of-type { border-top: none; padding-top: 12px; }
.prod-mark {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.prod-row h2 { margin-bottom: 6px; }
.prod-row h2 .suffix { font-size: inherit; }

.pill {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--teal);
  background: var(--teal-tint);
  border-radius: 999px;
  padding: 4px 11px;
  margin-bottom: 14px;
}

.feature-list { list-style: none; padding: 0; margin: 18px 0 0; }
.feature-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--gray);
  font-size: 15px;
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-light);
}

/* ---------- faq ---------- */

.faq-item {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin-bottom: 8px; }
.faq-item p { color: var(--gray); margin-bottom: 0; }
.faq-item p + p { margin-top: 12px; }

/* ---------- journal ---------- */

.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { border-top: 1px solid var(--line); padding: 24px 0; }
.post-list li:last-child { border-bottom: 1px solid var(--line); }
.post-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  color: var(--gray);
  display: block;
  margin-bottom: 6px;
}
.post-list h3 { margin-bottom: 6px; font-size: 19px; }
.post-list h3 a { text-decoration: none; color: var(--teal-dark); }
.post-list h3 a:hover { color: var(--teal); }
.post-list p { color: var(--gray); margin: 0; font-size: 15px; }

.back-link {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 22px;
}

/* ---------- callout ---------- */

.callout {
  background: var(--teal-tint);
  border-radius: 12px;
  padding: 28px 30px;
  max-width: 680px;
}
.callout h2 { font-size: 20px; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */

.site-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 44px 0 32px;
  margin-top: 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 34px;
}
.footer-grid h4 {
  font-size: 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gray);
  margin: 0 0 12px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a {
  font-size: 14px;
  text-decoration: none;
  color: var(--teal-dark);
}
.footer-grid a:hover { color: var(--teal); }
.footer-brand .wordmark, .footer-brand .suffix { font-size: 19px; }
.footer-brand p {
  font-size: 13.5px;
  color: var(--gray);
  margin: 12px 0 0;
  max-width: 280px;
}
.footer-base {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--gray);
}
.footer-base a { color: var(--gray); text-decoration: none; }
.footer-base a:hover { color: var(--teal); }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  h1 { font-size: 30px; }
  .hero { padding: 48px 0 40px; }
  .hero .logo-lockup .wordmark, .hero .logo-lockup .suffix { font-size: 32px; }
  .section { padding: 48px 0; }
  .cards { grid-template-columns: 1fr; }
  .prod-card { height: auto; min-height: 200px; }
  .prod-row { grid-template-columns: 1fr; gap: 20px; padding: 34px 0; }
  .prod-mark { width: 108px; }

  .nav-toggle { display: block; }
  nav.main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 10px 24px 18px;
    box-shadow: 0 14px 28px rgba(4, 52, 44, 0.08);
  }
  nav.main-nav.open { display: block; }
  nav.main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  nav.main-nav a { padding: 11px 4px; font-size: 16px; }
  .has-sub > a::after { display: none; }
  .submenu {
    position: static;
    display: flex;
    border: none;
    box-shadow: none;
    padding: 0 0 6px 14px;
    min-width: 0;
    background: none;
  }
  .submenu a { font-size: 14.5px; padding: 8px 4px; }
  .submenu .sm-desc { display: none; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  h1 { font-size: 27px; }
  .lead { font-size: 16.5px; }
  .signup { flex-direction: column; }
  .signup .btn { width: 100%; }
}
