/* 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;
}

/* ─── 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;
}
