/* Marketing (public-page) styles shared across landing, pricing, features,
   products, contact, and legal pages.

   Pages can still declare page-specific styles in their own <style> blocks,
   but these are the building blocks that should be reused so the site reads
   as one product, not seven. */

/* ─── Brand vars (fallbacks if not provided by layout) ───────────────── */
:root {
  --brand-primary:        #008080;
  --brand-primary-light:  #e6f7f7;
  --brand-primary-soft:   #f0fbfb;
  --brand-text-heading:   #2c3e50;
  --brand-divider:        #e9ecef;
  --brand-radius:         12px;
  --brand-radius-lg:      16px;
}

/* ─── Public-page navbar ────────────────────────────────────────────── */
/* The marketing navbar is transparent while sitting on top of a page-hero
   and turns into a solid white bar once `.navbar-active` is toggled by
   front-main.js on scroll. Default text colour assumes a LIGHT hero
   (every sub-page uses .page-hero). The landing page has a dark hero
   and overrides these colours inline in index.html. */
nav.layout-navbar:not(.navbar-active),
nav.layout-navbar:not(.navbar-active) .landing-navbar {
  background: transparent !important;
  box-shadow: none !important;
  border-color: transparent !important;
}
nav.layout-navbar:not(.navbar-active) .landing-navbar .nav-link {
  color: var(--brand-text-heading) !important;
}
nav.layout-navbar:not(.navbar-active) .landing-navbar .nav-link:hover {
  color: var(--brand-primary) !important;
}
nav.layout-navbar:not(.navbar-active) .menu-text {
  color: var(--brand-text-heading) !important;
}
nav.layout-navbar:not(.navbar-active) .navbar-toggler i {
  color: var(--brand-text-heading) !important;
}
nav.layout-navbar.navbar-active {
  background: #fff !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
}

/* ─── Mobile slide-in menu — branded drawer ─────────────────────────── */
/* Below lg the vendor turns .landing-nav-menu into a left slide-in panel.
   We restyle it into a Kounet-branded drawer: teal header, icon-chip nav
   rows, and a pinned CTA footer. Desktop is untouched (the header/footer
   carry d-lg-none and these rules live in a max-width query). */
@media (max-width: 991.98px) {
  .navbar.landing-navbar .landing-nav-menu {
    display: flex !important;
    flex-direction: column;
    /* Bootstrap's .navbar-collapse defaults to align-items:center, which would
       shrink-wrap our header/footer — force full-width children. */
    align-items: stretch;
    width: 86%;
    max-width: 330px;
    padding: 0;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 60, 60, 0.22);
    border-start-end-radius: 22px;
    border-end-end-radius: 22px;
    overflow: hidden;
  }

  /* Teal header band: white logo + wordmark + close */
  .landing-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 1.2rem;
    background: linear-gradient(135deg, var(--brand-primary) 0%, #00b3b3 100%);
  }
  .landing-drawer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
  }
  .landing-drawer-logo {
    width: 30px;
    height: auto;
    /* Single-colour teal mark → flatten to white for the teal header */
    filter: brightness(0) invert(1);
  }
  .landing-drawer-brand .brand-text {
    color: #fff !important;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.01em;
  }
  .landing-drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 1.4rem;
    transition: background 0.18s ease;
  }
  .landing-drawer-close:hover { background: rgba(255, 255, 255, 0.3); }

  /* Scrollable nav list */
  .navbar.landing-navbar .landing-nav-menu .navbar-nav {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0.7rem;
    gap: 0.12rem;
  }
  .navbar.landing-navbar .landing-nav-menu .nav-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.78rem 0.8rem;
    border-radius: 13px;
    color: var(--brand-text-heading) !important;
    font-weight: 600;
    font-size: 0.98rem;
    transition: background 0.18s ease, color 0.18s ease;
  }
  .nav-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--brand-primary-light);
    color: var(--brand-primary);
    font-size: 1.3rem;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
  }
  .landing-nav-menu .nav-link span { flex: 1 1 auto; }
  .nav-link-chevron {
    color: #c7ced6;
    font-size: 1.3rem;
    transition: color 0.18s ease, transform 0.18s ease;
  }
  .navbar.landing-navbar .landing-nav-menu .nav-link:hover,
  .navbar.landing-navbar .landing-nav-menu .nav-link:focus {
    background: var(--brand-primary-soft);
    color: var(--brand-primary) !important;
  }
  .navbar.landing-navbar .landing-nav-menu .nav-link:hover .nav-link-icon,
  .navbar.landing-navbar .landing-nav-menu .nav-link:focus .nav-link-icon {
    background: var(--brand-primary);
    color: #fff;
    transform: scale(1.05);
  }
  .navbar.landing-navbar .landing-nav-menu .nav-link:hover .nav-link-chevron {
    color: var(--brand-primary);
    transform: translateX(3px);
  }

  /* Pinned CTA footer */
  .landing-drawer-cta {
    padding: 1rem 1.1rem 1.3rem;
    border-top: 1px solid var(--brand-divider);
    background: #fff;
  }
  .landing-drawer-cta .btn {
    width: 100%;
    padding: 0.72rem 1rem;
    font-weight: 600;
    border-radius: 12px;
    margin-bottom: 0.55rem;
  }
  .landing-drawer-cta .btn:last-child,
  .landing-drawer-cta form:last-child .btn { margin-bottom: 0; }
  .landing-drawer-note {
    margin: 0.65rem 0 0;
    text-align: center;
    font-size: 0.78rem;
    color: #9aa6b2;
  }

  /* Staggered reveal once the drawer opens */
  .landing-nav-menu.show .nav-item,
  .landing-nav-menu.show .landing-drawer-cta {
    animation: drawerItemIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .landing-nav-menu.show .nav-item:nth-child(1) { animation-delay: 0.08s; }
  .landing-nav-menu.show .nav-item:nth-child(2) { animation-delay: 0.13s; }
  .landing-nav-menu.show .nav-item:nth-child(3) { animation-delay: 0.18s; }
  .landing-nav-menu.show .nav-item:nth-child(4) { animation-delay: 0.23s; }
  .landing-nav-menu.show .landing-drawer-cta { animation-delay: 0.28s; }
  @keyframes drawerItemIn {
    from { opacity: 0; transform: translateX(-12px); }
    to   { opacity: 1; transform: none; }
  }

  /* Darker, blurred overlay so the drawer reads as a focused layer */
  .navbar.landing-navbar .landing-nav-menu.show ~ .landing-menu-overlay {
    background-color: rgba(8, 30, 30, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }
}

@media (max-width: 991.98px) and (prefers-reduced-motion: reduce) {
  .landing-nav-menu.show .nav-item,
  .landing-nav-menu.show .landing-drawer-cta { animation: none !important; }
}

/* ─── Section rhythm ────────────────────────────────────────────────── */
/* Alternates with the default white .section-py background. Soft teal
   that's distinct from page background but doesn't fight the brand. */
.bg-section-alt {
  background-color: #e8f5f5;
  border-top: 1px solid rgba(0, 128, 128, 0.08);
  border-bottom: 1px solid rgba(0, 128, 128, 0.08);
}

/* ─── Page hero (used everywhere except the landing) ────────────────── */
/* Soft tinted background that anchors the page topic without overpowering
   the content below. Dark text on a barely-teal canvas — quiet, not flashy.
   Pages with their own bespoke hero (landing) can keep it; everything
   else should use this. */
.page-hero {
  background:
    radial-gradient(circle at 85% -10%, rgba(0, 128, 128, 0.10), transparent 55%),
    linear-gradient(180deg, #fbfdfd 0%, #f0f8f8 100%);
  color: var(--brand-text-heading);
  border-bottom: 1px solid rgba(0, 128, 128, 0.08);
  padding: 5.5rem 0 4rem;
  text-align: center;
}
.page-hero .eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(0, 128, 128, 0.1);
  color: var(--brand-primary);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.page-hero h1 {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--brand-text-heading);
  margin: 0 0 0.75rem;
  line-height: 1.15;
}
.page-hero .lead {
  font-size: 1.05rem;
  color: #566a7f;
  max-width: 720px;
  margin: 0 auto 1.25rem;
  line-height: 1.6;
}
.page-hero .actions {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
@media (max-width: 575.98px) {
  .page-hero { padding: 4rem 0 3rem; }
}

/* ─── Section titles ────────────────────────────────────────────────── */
/* Used at the top of in-page sections: badge + h2 (+ optional subtitle).
   Pages should use this consistent spacing instead of ad-hoc mb-* mixes. */
.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title .badge {
  margin-bottom: 0.85rem;
}
.section-title h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--brand-text-heading);
  margin: 0 0 0.5rem;
  line-height: 1.2;
}
.section-title .subtitle {
  font-size: 1rem;
  color: #566a7f;
  max-width: 640px;
  margin: 0 auto;
}

/* ─── Base card ─────────────────────────────────────────────────────── */
/* The "card-std" base is the canonical shape for any non-pricing card
   on the marketing pages: feature, product, contact, value card, etc. */
.card-std {
  background: #fff;
  border: 1px solid var(--brand-divider);
  border-radius: var(--brand-radius-lg);
  padding: 1.75rem;
  height: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.card-std:hover {
  border-color: var(--brand-primary);
  box-shadow: 0 8px 30px rgba(0, 128, 128, 0.08);
  transform: translateY(-3px);
}
.card-std h5,
.card-std h6 {
  font-weight: 700;
  color: var(--brand-text-heading);
  margin: 0 0 0.5rem;
}
.card-std h5 { font-size: 1.05rem; }
.card-std h6 { font-size: 0.95rem; }
.card-std p {
  font-size: 0.9rem;
  color: #566a7f;
  line-height: 1.6;
  margin: 0;
}
.card-std .card-icon {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  margin-bottom: 1rem;
}
.card-std.featured {
  border: 2px solid var(--brand-primary);
  box-shadow: 0 8px 30px rgba(0, 128, 128, 0.15);
}
.card-std.soft {
  background: var(--brand-primary-soft);
}
.card-std.linkable {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.card-std.linkable:hover { color: inherit; }

/* ─── Pricing cards (specialised card variant) ──────────────────────── */
/* Lives here so /pricing/ and the landing pricing summary use the same
   styles instead of duplicating the block per template. */
.pricing-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  align-items: stretch;
}
.pricing-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: var(--brand-radius-lg);
  padding: 36px 32px;
  width: 100%;
  max-width: 340px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}
.pricing-card.featured {
  border: 2px solid var(--brand-primary);
  box-shadow: 0 8px 30px rgba(0, 128, 128, 0.15);
}
.pricing-card .popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-primary);
  color: white;
  padding: 4px 20px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.plan-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.5rem;
}
.plan-icon.starter    { background: #f0f4f8; color: #64748b; }
.plan-icon.growth     { background: #e6f7f7; color: var(--brand-primary); }
.plan-icon.premium    { background: #fff3e0; color: #f57c00; }
.plan-icon.enterprise { background: #ede9fe; color: #7c3aed; }
.plan-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 4px;
}
.plan-target {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 20px;
}
.plan-price { margin-bottom: 24px; }
.plan-price .from {
  display: block;
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 2px;
}
.plan-price .amount {
  font-size: 2.8rem;
  font-weight: 800;
  color: #333;
  line-height: 1;
}
.plan-price .currency {
  font-size: 1.2rem;
  font-weight: 600;
  color: #666;
  vertical-align: super;
}
.plan-price .period {
  font-size: 0.9rem;
  color: #999;
}
.plan-limits {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}
.plan-limit-item {
  text-align: center;
  flex: 1;
}
.plan-limit-item .limit-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
}
.plan-limit-item .limit-label {
  font-size: 0.75rem;
  color: #999;
}
.pricing-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  flex-grow: 1;
}
.pricing-feature-list li {
  padding: 6px 0;
  font-size: 0.875rem;
  color: #555;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.pricing-feature-list li i {
  color: var(--brand-primary);
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.plan-cta { margin-top: auto; }
.plan-cta .btn {
  width: 100%;
  padding: 12px;
  font-weight: 600;
  border-radius: 10px;
  font-size: 0.95rem;
}
@media (max-width: 991.98px) {
  .pricing-cards { gap: 20px; }
  .pricing-card { max-width: 100%; }
}

/* ─── Page-bottom CTA block ─────────────────────────────────────────── */
/* Final "ready to start?" section that every public page should close
   with. Lives over .bg-section-alt for a consistent footer rhythm. */
.cta-block {
  text-align: center;
  padding: 1rem 0;
}
.cta-block h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--brand-text-heading);
  margin: 0 0 0.75rem;
}
.cta-block .lead {
  font-size: 1rem;
  color: #566a7f;
  margin: 0 auto 1.5rem;
  max-width: 560px;
}
.cta-block .actions {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
