/* =========================================================
   ConnectBee marketing site — shared design system
   Brand: WhatsApp-adjacent green, warm gold accent.
   Type: Bricolage Grotesque (display) / Manrope (body) / IBM Plex Mono (labels)
   ========================================================= */

:root {
  --paper: #f2f6f1;
  --surface: #ffffff;
  --surface-alt: #eaf1e8;
  --ink: #10231d;
  --ink-soft: #4a5f55;
  --ink-faint: #7c8f85;
  --line: rgba(16, 35, 29, 0.12);

  --brand-deep: #0b4535;
  --brand: #1f8a5c;
  --brand-bright: #25d366;
  --gold: #c97f1f;
  --gold-soft: #f4e3c6;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;
  --shadow: 0 1px 2px rgba(11, 69, 53, 0.06), 0 12px 32px -16px rgba(11, 69, 53, 0.22);
  --shadow-lift: 0 20px 50px -20px rgba(11, 69, 53, 0.35);

  --container-max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display-font {
  font-family: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  color: var(--brand-deep);
  letter-spacing: -0.02em;
  text-wrap: balance;
  font-weight: 700;
}

.mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

p { color: var(--ink-soft); }

a { color: var(--brand-deep); text-decoration: none; }
a:hover { color: var(--brand); }

.container-cb {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- Navbar ---------- */
.cb-navbar {
  background: rgba(242, 246, 241, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 999;
}
/* Bootstrap's navbar only auto-applies flex/space-between to a direct
   .container[-fluid] child — .container-cb is a custom class, so without
   this it stacks the brand and the menu onto separate lines instead of
   sitting on one row. */
.cb-navbar > .container-cb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.cb-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--brand-deep);
}
.nav-logo { height: 61px; width: auto; display: block; }
/* The logo's "Connect" wordmark is dark green — invisible on the footer's
   dark green background without a light card behind it. */
.footer-logo {
  height: 64px;
  width: auto;
  display: block;
  background: var(--paper);
  padding: 8px 14px;
  border-radius: 12px;
}
.cb-navbar .brand-mark {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: linear-gradient(150deg, var(--brand-deep), var(--brand));
  display: flex; align-items: center; justify-content: center;
  color: #f4faf6;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
}
.cb-navbar .nav-link {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.94rem;
  padding: 8px 14px !important;
  border-radius: 999px;
}
.cb-navbar .nav-link:hover,
.cb-navbar .nav-link.active {
  color: var(--brand-deep);
  background: var(--surface-alt);
}
.cb-navbar .navbar-toggler {
  border: 1px solid var(--line);
  padding: 6px 10px;
}
.cb-navbar .navbar-toggler:focus { box-shadow: 0 0 0 3px var(--gold-soft); }

/* ---------- Buttons ---------- */
.btn-cb-primary {
  background: var(--brand-deep);
  border: 1px solid var(--brand-deep);
  color: #f4faf6;
  font-weight: 700;
  padding: 11px 24px;
  border-radius: 999px;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: var(--shadow);
}
.btn-cb-primary:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lift);
}
.btn-cb-outline {
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 999px;
  transition: border-color .15s ease, color .15s ease;
}
.btn-cb-outline:hover {
  border-color: var(--brand-deep);
  color: var(--brand-deep);
}
.btn-cb-gold {
  background: var(--gold);
  border: 1px solid var(--gold);
  color: #2a1a04;
  font-weight: 700;
  padding: 11px 24px;
  border-radius: 999px;
}
.btn-cb-gold:hover { background: #b9740f; color: #2a1a04; }

/* ---------- Hero ---------- */
.hero-section {
  padding: 72px 0 88px;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: "";
  position: absolute;
  top: -200px; right: -180px;
  width: 680px; height: 680px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.28), rgba(37, 211, 102, 0.06) 55%, transparent 72%);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11,69,53,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,69,53,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: linear-gradient(180deg, black, transparent 85%);
  mask-image: linear-gradient(180deg, black, transparent 85%);
  pointer-events: none;
}

/* Trust row */
.trust-row { display: flex; align-items: center; gap: 12px; }
.trust-row .mono { font-size: .78rem; color: var(--ink-soft); font-weight: 600; }
.avatar-stack { display: flex; }
.avatar-stack span {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--paper);
  color: #f4faf6;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: .78rem;
  display: flex; align-items: center; justify-content: center;
  margin-left: -10px;
}
.avatar-stack span:first-child { margin-left: 0; }

/* Hero stat chips */
.hero-stat-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stat-chip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: var(--shadow);
}
.hero-stat-chip .stat-num { color: var(--brand-deep); font-size: 1.5rem; display: block; }
.hero-stat-chip .mono { font-size: .72rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }

.chat-mock-float { animation: floatY 5s ease-in-out infinite; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .chat-mock-float { animation: none; }
}
.page-hero {
  padding: 64px 0 56px;
  background: linear-gradient(180deg, var(--surface-alt), var(--paper));
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); }
.page-hero p.lead { max-width: 62ch; }

/* ---------- Cards ---------- */
.cb-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  height: 100%;
}
.cb-card .icon-tile {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(150deg, var(--brand-deep), var(--brand));
  color: #f4faf6;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.cb-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.cb-card p { margin-bottom: 0; font-size: 0.95rem; }

/* ---------- Chat mockup (used across pages instead of stock imagery) ---------- */
.chat-mock {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--line);
  overflow: hidden;
}
.chat-mock .chat-head {
  background: linear-gradient(120deg, var(--brand-deep), var(--brand));
  color: #f4faf6;
  padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
  font-weight: 700;
}
.chat-mock .chat-head .dot { width: 9px; height: 9px; border-radius: 50%; background: #7fe3ac; }
.chat-mock .chat-body { padding: 20px; background: #eef4ec; display: grid; gap: 10px; }
.chat-bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.4;
}
.chat-bubble.in { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-bubble.out { background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #f4faf6; align-self: flex-end; border-bottom-right-radius: 4px; margin-left: auto; }
.chat-bubble .tick { font-size: 0.7rem; opacity: .8; display: block; text-align: right; margin-top: 4px; }

/* ---------- Template preview card ---------- */
.tpl-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 320px;
}
.tpl-header-img {
  height: 140px;
  background: linear-gradient(150deg, var(--brand-deep), var(--brand-bright));
  display: flex; align-items: center; justify-content: center;
  color: rgba(244,250,246,.9);
  font-size: 2rem;
}
.tpl-body { padding: 16px 18px; }
.tpl-body .tpl-footer-text { font-size: 0.72rem; color: var(--ink-faint); margin-top: 6px; }
.tpl-btn-row { border-top: 1px solid var(--line); }
.tpl-btn-row a {
  display: block;
  text-align: center;
  padding: 11px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--brand-deep);
  border-top: 1px solid var(--line);
}
.tpl-btn-row a:first-child { border-top: none; }

/* ---------- Section rhythm ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--surface); }
.section-deep {
  background: linear-gradient(160deg, var(--brand-deep), #103d2f 130%);
  color: #eaf3ee;
}
.section-deep h2, .section-deep h3 { color: #f4faf6; }
.section-deep p { color: rgba(234, 243, 238, 0.78); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Stats ---------- */
.stat-num {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--brand-bright);
}
.stat-label { font-family: "IBM Plex Mono", monospace; font-size: 0.78rem; letter-spacing: .05em; text-transform: uppercase; color: rgba(234,243,238,.7); }

/* ---------- Pricing ---------- */
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
/* Pushes the CTA button to the bottom of the card regardless of how much
   text sits above it, so two cards with differently-worded descriptions
   still line up — without this, the shorter card's button floats mid-card
   while the taller one's sits lower, and the two never visually match. */
.price-card > a:last-child,
.price-card > button:last-child {
  margin-top: auto;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.price-card.featured {
  border-color: var(--brand);
  box-shadow: var(--shadow-lift);
}
.price-card .badge-featured {
  position: absolute; top: -13px; right: 28px;
  background: var(--gold); color: #2a1a04;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.price-amount { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 2.6rem; color: var(--brand-deep); }
.price-amount .unit { font-size: 1rem; font-weight: 600; color: var(--ink-soft); }
.price-plus { font-size: .92rem; font-weight: 600; color: var(--ink); margin-top: 6px; }
.price-plus .unit-sm { font-size: .78rem; font-weight: 600; color: var(--ink-soft); }

.rate-blocks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.rate-block { text-align: center; }
.rate-num {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  color: var(--brand-deep);
  line-height: 1;
}
.rate-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-soft);
  margin-top: 8px;
}
.rate-plus {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--gold);
}
.price-feature-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 11px; }
.price-feature-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--ink); }
.price-feature-list i { color: var(--brand); margin-top: 3px; }

/* ---------- FAQ accordion ---------- */
.accordion-cb .accordion-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius) !important;
  margin-bottom: 12px;
  overflow: hidden;
}
.accordion-cb .accordion-button {
  font-weight: 700;
  color: var(--brand-deep);
  background: var(--surface);
  font-family: "Bricolage Grotesque", sans-serif;
  padding: 18px 22px;
}
.accordion-cb .accordion-button:not(.collapsed) {
  background: var(--surface-alt);
  color: var(--brand-deep);
  box-shadow: none;
}
.accordion-cb .accordion-button:focus { box-shadow: 0 0 0 3px var(--gold-soft); }
.accordion-cb .accordion-body { color: var(--ink-soft); padding: 4px 22px 22px; }

/* ---------- Forms ---------- */
.form-cb label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 6px;
}
.form-cb .form-control, .form-cb .form-select {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  background: var(--surface);
}
.form-cb .form-control:focus, .form-cb .form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

/* ---------- Blog cards ---------- */
.blog-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; box-shadow: var(--shadow); }
.blog-card .thumb { height: 160px; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: rgba(244,250,246,.9); }
.blog-card .thumb.c1 { background: linear-gradient(150deg, var(--brand-deep), var(--brand)); }
.blog-card .thumb.c2 { background: linear-gradient(150deg, #164a37, #2ba36e); }
.blog-card .thumb.c3 { background: linear-gradient(150deg, #5c3a10, var(--gold)); }
.blog-card .body { padding: 20px 22px; }
.blog-card .cat { font-family: "IBM Plex Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--brand); font-weight: 700; }
.blog-card h3 { font-size: 1.05rem; margin: 8px 0; }
.blog-card .meta { font-size: 0.8rem; color: var(--ink-faint); }

/* ---------- Steps ---------- */
.step-item { display: flex; gap: 18px; }
.step-num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface-alt);
  border: 1.5px solid var(--line);
  color: var(--brand-deep);
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Footer ---------- */
.cb-footer {
  background: var(--brand-deep);
  color: rgba(255, 255, 255, 0.9);
  padding: 64px 0 28px;
}
/* The global `p { color: var(--ink-soft) }` rule directly targets every
   <p>, including the footer's description text — a direct match always
   wins over inherited color, so without this override that paragraph
   rendered in a dark, light-background color on the dark footer. */
.cb-footer p { color: rgba(255, 255, 255, 0.85); }
.cb-footer h5 { color: #f4faf6; font-family: "Bricolage Grotesque", sans-serif; font-size: 1rem; margin-bottom: 16px; }
.cb-footer a { color: rgba(255, 255, 255, 0.82); }
.cb-footer a:hover { color: #fff; }
.cb-footer .foot-links { list-style: none; padding: 0; display: grid; gap: 9px; font-size: 0.92rem; }
.cb-footer .brand-mark-sm {
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(244,250,246,.12);
  display: flex; align-items: center; justify-content: center;
  color: #f4faf6;
}
.cb-footer hr { border-color: rgba(244,250,246,.15); margin: 40px 0 22px; }
.cb-footer .bottom-bar { font-size: 0.84rem; color: rgba(255,255,255,.7); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.cb-footer .social-row { display: flex; gap: 10px; }
.cb-footer .social-row a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(244,250,246,.2);
  display: flex; align-items: center; justify-content: center;
}
.cb-footer .social-row a:hover { background: rgba(244,250,246,.1); }

/* ---------- Badge / tag ---------- */
.tag-pill-cb {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--brand-deep);
}

@media (max-width: 767.98px) {
  .hero-section { padding: 64px 0 48px; }
  .section { padding: 56px 0; }
}
