:root {
  --navy: #1e2a4a;
  --navy-dark: #131c33;
  --teal: #3fb6ac;
  --teal-dark: #2e8f87;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --text: #1c2333;
  --text-muted: #5c6478;
  --border: #e4e8f0;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(19, 28, 51, 0.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Inter, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: inherit; }

/* ---------------------------------------------------------------------------------------------
   Motion: page fade-in + scroll-reveal (see assets/reveal.js). All gated behind prefers-reduced-
   motion via reveal.js adding/withholding .reveal in JS -- CSS itself also respects the media
   query directly as a second line of defense (e.g. if JS fails to load, nothing stays hidden).
   --------------------------------------------------------------------------------------------- */
html { scroll-behavior: smooth; }

body { animation: page-fade-in 0.5s ease both; }

@keyframes page-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.reveal-in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
}
.brand img { height: 34px; width: auto; }
.brand-logo { height: 56px !important; width: auto; }
.footer-brand .brand-logo { height: 48px !important; }

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  padding: 8px;
  cursor: pointer;
  color: var(--navy);
}
.nav-toggle svg { display: block; width: 24px; height: 24px; transition: transform 0.2s ease; }
.nav-toggle[aria-expanded="true"] svg { transform: rotate(90deg); }

/* Below this, the inline nav-links + CTA don't fit -- collapse into a hamburger-triggered panel. */
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav > .nav-links,
  .nav > a.btn {
    display: none;
  }
  .nav-links.mobile-open {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 8px 24px 16px;
    animation: navPanelIn 0.18s ease;
  }
  @keyframes navPanelIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .nav-links.mobile-open a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.mobile-open a:not(.nav-mobile-cta):last-of-type { border-bottom: none; }
}
/* Two classes (0,2,0) so this reliably beats .btn's display:inline-flex (0,1,0) regardless of
   source order -- the element genuinely has both classes (class="btn btn-primary nav-mobile-cta"),
   so relying on cascade order alone is fragile if either rule ever moves. */
.nav-mobile-cta.btn { display: none; }
@media (max-width: 760px) {
  .nav-links.mobile-open .nav-mobile-cta.btn {
    display: inline-flex;
    margin-top: 12px;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.nav-links a.active,
.nav-links a:hover { color: var(--navy); }
/* .nav-links a's color:var(--text-muted) (0,1,1) otherwise beats .btn-primary's color:#fff (0,1,0)
   -- the mobile CTA is both a nav-links link and a button, so it needs to win explicitly. */
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover { color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--teal);
  color: #fff;
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--navy); }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
  padding: 88px 0 72px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
}
.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(63, 182, 172, 0.12);
  color: var(--teal-dark);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.12;
  margin: 0 0 18px;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.lede {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0 0 32px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-note { font-size: 0.85rem; color: var(--text-muted); }

.hero-visual {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow);
}
.hero-visual .mock {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}
.mock-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.mock-dot { width: 10px; height: 10px; border-radius: 50%; background: #e4e8f0; }
.mock-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--bg-soft);
  font-size: 0.85rem;
}
.mock-row:last-child { border-bottom: none; }
.mock-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }
.mock-line { flex: 1; }
.mock-line .t1 { font-weight: 600; color: var(--navy); margin-bottom: 3px; }
.mock-line .t2 { color: var(--text-muted); font-size: 0.8rem; }
.mock-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.pill-open { background: #fef3c7; color: #92400e; }
.pill-new { background: #dbeafe; color: #1e40af; }
.pill-resolved { background: #dcfce7; color: #166534; }

/* Logos strip */
.logos-strip {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.logos-strip p { color: var(--text-muted); font-size: 0.85rem; margin: 0 0 4px; }

/* Sections */
section { padding: 80px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--navy); margin: 0 0 12px; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; margin: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: rgba(63, 182, 172, 0.35);
}
.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(63, 182, 172, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.3rem;
  transition: transform 0.2s ease;
}
.card:hover .icon { transform: scale(1.08); }
.card h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--navy); }
.card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

.section-soft { background: var(--bg-soft); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
.step { position: relative; padding-top: 8px; }
.step-num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
  margin-bottom: 14px;
}
.step h4 { margin: 0 0 6px; color: var(--navy); font-size: 1rem; }
.step p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  border-radius: 20px;
  padding: 56px 40px;
  text-align: center;
}
.cta-band h2 { color: #fff; margin: 0 0 12px; font-size: 1.8rem; }
.cta-band p { color: rgba(255,255,255,0.78); margin: 0 0 28px; }

/* Footer */
footer.site {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  background: var(--bg-soft);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand { max-width: 320px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; }
.footer-links { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h5 { margin: 0 0 12px; font-size: 0.85rem; color: var(--navy); }
.footer-col a { display: block; text-decoration: none; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 8px; transition: color 0.15s ease, transform 0.15s ease; }
.footer-col a:hover { color: var(--navy); transform: translateX(2px); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Forms */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(63, 182, 172, 0.15);
}
.form-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 6px; }
.form-status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  display: none;
}
.form-status.show { display: block; }
.form-status.ok { background: #dcfce7; color: #166534; }
.form-status.err { background: #fee2e2; color: #991b1b; }

/* Page hero (features/contact) */
.page-hero { padding: 56px 0 8px; text-align: center; }
.page-hero .eyebrow { }
.page-hero h1 { max-width: 720px; margin-left: auto; margin-right: auto; }
.page-hero p.lede { max-width: 560px; margin-left: auto; margin-right: auto; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.check-list li::before {
  content: "✓";
  color: var(--teal-dark);
  font-weight: 800;
  flex-shrink: 0;
}

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.blog-card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--teal-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.blog-card h3 { margin: 0 0 8px; color: var(--navy); font-size: 1.1rem; line-height: 1.35; }
.blog-card p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }
.blog-card .meta { margin-top: 14px; font-size: 0.78rem; color: var(--text-muted); }

article.post { max-width: 760px; margin: 0 auto; }
article.post .post-meta { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 8px; }
article.post h1 { margin-bottom: 8px; }
article.post .post-lede { font-size: 1.1rem; color: var(--text-muted); margin: 0 0 32px; }
article.post h2 { color: var(--navy); font-size: 1.4rem; margin: 40px 0 14px; }
article.post h3 { color: var(--navy); font-size: 1.1rem; margin: 28px 0 10px; }
article.post p { color: var(--text); line-height: 1.75; margin: 0 0 18px; }
article.post ul, article.post ol { color: var(--text); line-height: 1.75; margin: 0 0 18px; padding-left: 22px; }
article.post li { margin-bottom: 6px; }
article.post a { color: var(--teal-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
/* Same cascade issue as .nav-links a.btn-primary above: a plain prose link rule inside an article
   is more specific (0,1,1) than .btn-primary's color:#fff (0,1,0) and .btn's text-decoration:none
   (0,1,0), so a CTA button that happens to sit inside article.post needs an explicit win here too. */
article.post a.btn-primary { color: #fff; text-decoration: none; }
article.post table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 0.92rem; }
article.post th, article.post td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
article.post th { color: var(--navy); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.03em; }
article.post blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  background: var(--bg-soft);
  border-left: 3px solid var(--teal);
  border-radius: 0 8px 8px 0;
  color: var(--text-muted);
  font-style: italic;
}
.post-cta {
  margin: 40px 0;
  padding: 28px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  text-align: center;
}
.post-cta h3 { margin: 0 0 8px; }
.post-cta p { color: var(--text-muted); margin: 0 0 18px; }
