﻿/* =============================================================================
   Chatbot Theme — Global Styles
   Bootstrap 5 base + custom design tokens
   ============================================================================= */

/* ── Design tokens (CSS custom properties) ─────────────────────────────────── */
:root {
  /* Brand palette */
  --ct-primary:       #2563eb;
  --ct-primary-dark:  #1d4ed8;
  --ct-primary-light: #dbeafe;
  --ct-accent:        #06b6d4;

  /* Neutral scale */
  --ct-bg:            #f8fafc;
  --ct-surface:       #ffffff;
  --ct-border:        #e2e8f0;
  --ct-text:          #0f172a;
  --ct-text-muted:    #64748b;
  --ct-text-light:    #94a3b8;

  /* Dark surfaces */
  --ct-dark:          #0f172a;
  --ct-dark-2:        #1e293b;
  --ct-dark-3:        #334155;

  /* Semantic */
  --ct-success:       #16a34a;
  --ct-warning:       #d97706;
  --ct-danger:        #dc2626;

  /* Spacing */
  --ct-radius-sm:     6px;
  --ct-radius:        10px;
  --ct-radius-lg:     16px;
  --ct-shadow-sm:     0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --ct-shadow:        0 4px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
  --ct-shadow-lg:     0 10px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);

  /* Typography */
  --ct-font:          -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  --ct-font-mono:     "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --ct-font-size:     1rem;
  --ct-line-height:   1.6;

  /* Nav height */
  --ct-nav-h:         64px;
}

/* ── Base reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  max-width: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--ct-font);
  font-size: var(--ct-font-size);
  line-height: var(--ct-line-height);
  color: var(--ct-text);
  background-color: var(--ct-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  max-width: 100%;
  overflow-x: clip;
  position: relative;
}

/* ── Bootstrap overrides ────────────────────────────────────────────────────── */
:root {
  --bs-primary:     var(--ct-primary);
  --bs-body-color:  var(--ct-text);
  --bs-body-bg:     var(--ct-bg);
  --bs-border-radius: var(--ct-radius-sm);
}

/* Buttons */
.btn {
  font-weight: 500;
  letter-spacing: .01em;
  border-radius: var(--ct-radius-sm);
  transition: all .15s ease;
}
.btn-primary {
  background: var(--ct-primary);
  border-color: var(--ct-primary);
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--ct-primary-dark);
  border-color: var(--ct-primary-dark);
  box-shadow: 0 0 0 3px rgba(37,99,235,.25);
}
.btn-outline-secondary {
  border-color: var(--ct-border);
  color: var(--ct-text-muted);
}
.btn-outline-secondary:hover {
  background: var(--ct-border);
  border-color: var(--ct-border);
  color: var(--ct-text);
}

/* Form controls */
.form-control,
.form-select {
  border-color: var(--ct-border);
  border-radius: var(--ct-radius-sm);
  font-size: .9375rem;
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--ct-primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.form-label {
  font-weight: 500;
  color: var(--ct-text);
  font-size: .9375rem;
}
.form-text { color: var(--ct-text-muted); }

/* Alerts (Bootstrap override) */
.alert {
  border-radius: var(--ct-radius);
  border-width: 1px;
}
.alert-success { background: #f0fdf4; border-color: #86efac; color: #166534; }
.alert-warning  { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.alert-danger   { background: #fef2f2; border-color: #fca5a5; color: #991b1b; }
.alert-info     { background: #f0f9ff; border-color: #bae6fd; color: #0369a1; }

/* Cards */
.card {
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius);
  box-shadow: var(--ct-shadow-sm);
}
.card-header {
  background: transparent;
  border-bottom: 1px solid var(--ct-border);
  font-weight: 600;
  color: var(--ct-text);
}

/* ── Navigation / Header ────────────────────────────────────────────────────── */
.ct-header {
  position: fixed;
  top: var(--drupal-displace-offset-top, 0px);
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1030;
  background: var(--ct-dark);
  box-shadow: 0 1px 0 rgba(255,255,255,.06), var(--ct-shadow-sm);
}

.ct-header.ct-header--scrolled {
  box-shadow: 0 1px 0 rgba(255,255,255,.06), var(--ct-shadow);
}

/* ─────────────────────────────────────────────────────────────────────────────
   3-zone header layout
   Zone 1: .ct-header__branding  (left)   — always visible
   Zone 2: .ct-header__nav       (center) — collapses on mobile
   Zone 3: .ct-header__actions   (right)  — collapses on mobile
   ───────────────────────────────────────────────────────────────────────────── */

.ct-navbar {
  min-height: var(--ct-nav-h);
  padding: 0;
  background: transparent;
  width: 100%;
}

/* The Bootstrap container becomes the flex row. */
.ct-navbar .container-xl {
  display: flex;
  align-items: center;
  min-height: var(--ct-nav-h);
  gap: 0;
}

/* ── Zone 1: Branding ───────────────────────────────────────────────────────── */
.ct-header__branding {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding-right: 2rem;
  min-width: 0;
}

/* Strip Drupal block chrome inside branding. */
.ct-header__branding .ct-block { display: contents; }
.ct-header__branding .ct-block-title { display: none; }

/* site_branding block output */
.ct-header__branding .site-branding {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}
.ct-header__branding .site-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1;
}
.ct-header__branding .site-name a {
  color: #fff;
  text-decoration: none;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -.015em;
}
.ct-header__branding .site-name a:hover {
  opacity: .9;
  text-decoration: none;
}

/* Robust branding-title override across core/custom branding markup variants. */
.ct-header__branding .site-name a,
.ct-header__branding .site-branding__name a,
.ct-header__branding .ct-brand-name,
.ct-header__branding .ct-brand .ct-brand-name {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem) !important;
  font-weight: 800 !important;
  letter-spacing: -.015em;
  line-height: 1.1;
  text-decoration: none !important;
}

.ct-header__branding a,
.ct-header__branding a:hover,
.ct-header__branding a:focus,
.ct-header__branding a:active,
.ct-header__branding a:visited {
  text-decoration: none !important;
}
.ct-header__branding .site-slogan { display: none; }
.ct-header__branding .site-logo img {
  width: 48px;
  height: 48px;
  max-width: 48px;
  max-height: 48px;
  display: block;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  padding: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
}

/* Hardcoded fallback brand (used when no block is placed). */
.ct-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -.02em;
  line-height: 1;
  padding: .2rem .55rem .2rem .15rem;
  border-radius: 999px;
  transition: background-color .2s ease, transform .2s ease;
  min-width: 0;
}
.ct-brand:hover {
  background: rgba(255,255,255,.08);
  transform: translateY(-1px);
  opacity: 1;
}

.ct-brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: contain;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  padding: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
  flex-shrink: 0;
}

.ct-brand-icon { font-size: 1.5rem; line-height: 1; }
.ct-brand-name {
  color: #fff;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -.015em;
  text-rendering: optimizeLegibility;
  white-space: nowrap;
  text-decoration: none;
  min-width: 0;
}

.ct-header__branding .ct-brand,
.ct-header__branding .ct-brand:hover,
.ct-header__branding .ct-brand:focus,
.ct-header__branding .ct-brand:active {
  text-decoration: none;
}

.ct-brand:focus-visible {
  outline: 2px solid rgba(255,255,255,.55);
  outline-offset: 2px;
}

/* ── Zone 2 + 3: Collapse wrapper ──────────────────────────────────────────── */
.ct-header__collapse {
  flex: 1;
  align-items: center;
}

/* Respect Bootstrap collapse visibility states on small screens. */
.ct-header__collapse.collapse:not(.show) {
  display: none;
}

/* ── Zone 2: Center navigation ─────────────────────────────────────────────── */
.ct-header__nav {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Strip block chrome in nav. */
.ct-header__nav .ct-block { display: contents; }
.ct-header__nav .ct-block-title { display: none; }

/* Nav links */
.ct-header__nav .ct-menu.navbar-nav {
  flex-direction: row;
  align-items: center;
  gap: .15rem;
}
.ct-menu.navbar-nav .nav-link {
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  font-weight: 500;
  padding: .4rem .75rem;
  border-radius: var(--ct-radius-sm);
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.ct-menu.navbar-nav .nav-link:hover,
.ct-menu.navbar-nav .nav-link.active {
  color: #fff;
  background: rgba(255,255,255,.1);
}

/* Dropdown */
.ct-submenu.dropdown-menu {
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius);
  box-shadow: var(--ct-shadow);
  padding: .5rem;
  min-width: 200px;
}
.ct-submenu .nav-link {
  color: var(--ct-text) !important;
  border-radius: var(--ct-radius-sm);
  padding: .45rem .75rem !important;
  font-size: .9rem !important;
}
.ct-submenu .nav-link:hover {
  background: var(--ct-primary-light) !important;
  color: var(--ct-primary) !important;
}

/* ── Zone 3: Right actions ──────────────────────────────────────────────────── */
.ct-header__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding-left: 1.5rem;
  margin-left: auto;        /* push to far right when nav doesn't fill center */
}

/* Strip block chrome in actions. */
.ct-header__actions .ct-block { display: contents; }
.ct-header__actions .ct-block-title { display: none; }

/* Account/login menu items in the right zone. */
.ct-header__actions .ct-menu.navbar-nav {
  flex-direction: row;
  align-items: center;
  gap: .35rem;
}

/* Style login/register links as outlined pill buttons. */
.ct-header__actions .ct-menu-link {
  display: inline-flex;
  align-items: center;
  padding: .4rem .9rem;
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.2);
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
  text-decoration: none;
}
.ct-header__actions .ct-menu-link:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.4);
  color: #fff;
}
/* Make the first action link (e.g. "Sign In") look like the primary CTA. */
.ct-header__actions .ct-menu-item:first-child .ct-menu-link {
  background: var(--ct-primary);
  border-color: var(--ct-primary);
  color: #fff;
}
.ct-header__actions .ct-menu-item:first-child .ct-menu-link:hover {
  background: var(--ct-primary-dark);
  border-color: var(--ct-primary-dark);
}

.ct-auth-actions {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.ct-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .4rem .9rem;
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}

.ct-auth-btn--signin {
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.3);
  background: transparent;
}

.ct-auth-btn--signin:hover {
  color: #fff;
  border-color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.08);
}

.ct-auth-btn--signup {
  color: #fff;
  border: 1px solid var(--ct-primary);
  background: var(--ct-primary);
}

.ct-auth-btn--signup:hover {
  color: #fff;
  border-color: var(--ct-primary-dark);
  background: var(--ct-primary-dark);
}

/* ── Hamburger toggle ───────────────────────────────────────────────────────── */
.ct-toggler {
  border: none;
  background: none;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;   /* push toggle to the right of branding on mobile */
}
.ct-toggler-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,.8);
  border-radius: 2px;
  transition: all .2s;
}

/* ── Mobile collapse ────────────────────────────────────────────────────────── */


table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9375rem;
}
th, td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--ct-border);
  text-align: left;
}
th {
  font-weight: 600;
  background: var(--ct-bg);
  color: var(--ct-text-muted);
  font-size: .875rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
tbody tr:hover { background: #f8fafc; }

/* ── Drupal admin form layout helpers ────────────────────────────────────────── */
.layout-container { max-width: 100%; }

/* Vertical tabs (Drupal default) — Bootstrap-harmonized */
.vertical-tabs { border: 1px solid var(--ct-border); border-radius: var(--ct-radius); overflow: hidden; }
.vertical-tabs__menu { background: var(--ct-bg); border-right: 1px solid var(--ct-border); padding: .5rem; }
.vertical-tabs__menu-item a { border-radius: var(--ct-radius-sm); padding: .5rem .85rem; display: block; color: var(--ct-text-muted); font-size: .9rem; font-weight: 500; text-decoration: none; transition: all .15s; }
.vertical-tabs__menu-item.is-selected a,
.vertical-tabs__menu-item a:hover { background: var(--ct-primary-light); color: var(--ct-primary); }
.vertical-tabs__pane { padding: 1.5rem 2rem; }
.vertical-tabs__pane .details-wrapper { padding: 0; }

/* Details/summary (accordion) */
details.ct-block-details > summary {
  cursor: pointer;
  font-weight: 600;
  padding: .6rem .8rem;
  border-radius: var(--ct-radius-sm);
  user-select: none;
}
details.ct-block-details > summary:hover { background: var(--ct-bg); }

/* ── Pager ───────────────────────────────────────────────────────────────────── */
.ct-pager .pagination { gap: 4px; }
.page-link {
  border-radius: var(--ct-radius-sm) !important;
  border: 1px solid var(--ct-border);
  color: var(--ct-primary);
  padding: .4rem .75rem;
  font-size: .9rem;
  font-weight: 500;
  transition: all .15s;
}
.page-link:hover { background: var(--ct-primary-light); border-color: var(--ct-primary); }
.page-item.active .page-link { background: var(--ct-primary); border-color: var(--ct-primary); }

/* ── Skip link ───────────────────────────────────────────────────────────────── */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  padding: .75rem 1.5rem;
  background: var(--ct-primary);
  color: #fff;
  font-weight: 600;
  border-radius: 0 0 var(--ct-radius) 0;
  text-decoration: none;
}

/* ── Footer ──────────────────────────────────────────────────────────────────── */
.ct-footer {
  background: var(--ct-dark);
  color: rgba(255,255,255,.65);
  margin-top: auto;
}
.ct-footer .row {
  align-items: flex-start;
}
.ct-footer__brand-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}
.ct-footer__menu-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ct-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  min-width: 0;
}
.ct-footer-brand:hover,
.ct-footer-brand:focus,
.ct-footer-brand:active {
  color: #fff;
  text-decoration: none;
}
.ct-footer-brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  flex-shrink: 0;
}
.ct-footer-brand__text {
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  color: #fff;
  min-width: 0;
}
.ct-footer__extra {
  color: rgba(255,255,255,.72);
  font-size: .92rem;
  line-height: 1.7;
  max-width: 28ch;
  min-width: 0;
}
.ct-footer h2, .ct-footer h3, .ct-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .75rem; }
.ct-footer a { color: rgba(255,255,255,.65); text-decoration: none; transition: color .15s; }
.ct-footer a:hover { color: #fff; }
.ct-footer ul { list-style: none; padding: 0; margin: 0; }
.ct-footer ul li + li { margin-top: .4rem; }
.ct-footer .menu,
.ct-footer .menu--footer,
.ct-footer .menu__item,
.ct-footer .nav,
.ct-footer .nav-link {
  min-width: 0;
}
.ct-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.25rem 0;
  text-align: center;
  font-size: .85rem;
  color: rgba(255,255,255,.4);
}

/* ── Drupal action links (local tasks) ───────────────────────────────────────── */
.tabs--primary,
ul.tabs.primary,
.tabs.tabs--primary,
.tabs.primary,
.block-local-tasks-block > ul,
.block-local-tasks-block .content > ul,
.block-local-tasks-block .ct-block > ul {
  display: flex;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
  border-bottom: 1px solid var(--ct-border);
}

.tabs--primary .tabs__tab a,
ul.tabs.primary > li > a,
.tabs.primary > li > a,
.block-local-tasks-block > ul > li > a,
.block-local-tasks-block .content > ul > li > a,
.block-local-tasks-block .ct-block > ul > li > a {
  display: inline-block;
  padding: .55rem 1rem;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: .55rem .55rem 0 0;
  color: #475569;
  background: transparent;
  text-decoration: none;
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: -1px;
  transition: color .15s, background-color .15s, border-color .15s;
}

.tabs--primary .tabs__tab.is-active a,
.tabs--primary .tabs__tab a:hover,
ul.tabs.primary > li.is-active > a,
ul.tabs.primary > li > a:hover,
.tabs.primary > li.is-active > a,
.tabs.primary > li > a:hover,
.block-local-tasks-block > ul > li.is-active > a,
.block-local-tasks-block > ul > li > a:hover,
.block-local-tasks-block .content > ul > li.is-active > a,
.block-local-tasks-block .content > ul > li > a:hover,
.block-local-tasks-block .ct-block > ul > li.is-active > a,
.block-local-tasks-block .ct-block > ul > li > a:hover {
  background: transparent;
  border-color: transparent;
  color: var(--ct-primary);
}

.tabs--primary .tabs__tab.is-active a,
ul.tabs.primary > li.is-active > a,
.tabs.primary > li.is-active > a,
.block-local-tasks-block > ul > li.is-active > a,
.block-local-tasks-block .content > ul > li.is-active > a,
.block-local-tasks-block .ct-block > ul > li.is-active > a {
  font-weight: 700;
  position: relative;
}

.tabs--primary .tabs__tab.is-active a::after,
ul.tabs.primary > li.is-active > a::after,
.tabs.primary > li.is-active > a::after,
.block-local-tasks-block > ul > li.is-active > a::after,
.block-local-tasks-block .content > ul > li.is-active > a::after,
.block-local-tasks-block .ct-block > ul > li.is-active > a::after {
  content: '';
  position: absolute;
  left: .75rem;
  right: .75rem;
  bottom: -1px;
  height: 3px;
  border-radius: 999px;
  background: var(--ct-primary);
}

.ct-block--system-branding-block img {  height: 35px; }

/* Action links (edit/delete buttons above content) */
.action-links { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.action-links a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .9rem;
  background: var(--ct-primary);
  color: #fff;
  border-radius: var(--ct-radius-sm);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  transition: background .15s;
}
.action-links a:hover { background: var(--ct-primary-dark); color: #fff; }

/* ── Utility classes ─────────────────────────────────────────────────────────── */
.ct-surface { background: var(--ct-surface); border: 1px solid var(--ct-border); border-radius: var(--ct-radius); padding: 1.5rem; }
.ct-surface-sm { background: var(--ct-surface); border: 1px solid var(--ct-border); border-radius: var(--ct-radius-sm); padding: 1rem; }
.text-muted { color: var(--ct-text-muted) !important; }


/* =============================================================================
   LANDING PAGE (page--front.html.twig)
   ============================================================================= */

/* ── Hero Section ─────────────────────────────────────────────────────────── */
.ct-lp-hero {
  background: linear-gradient(135deg, #0f182c 0%, #1a1a2e 60%, #232529 100%);
  color: #fff;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.ct-lp-hero > * {
  position: relative;
  z-index: 1;
}

.ct-lp-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 2rem;
  padding: .4rem 1rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(255,255,255,.9);
}

.ct-lp-headline {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1.25rem;
}
.ct-lp-accent {
  background: linear-gradient(90deg, #818cf8 0%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ct-lp-subtext {
  font-size: 1.1rem;
  color: rgba(255,255,255,.8);
  max-width: 520px;
  line-height: 1.7;
}
.ct-lp-cta-row .btn { min-width: 180px; }

.ct-lp-trust { gap: 2rem; }
.ct-lp-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ct-lp-trust-item strong {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.ct-lp-trust-item span {
  font-size: .75rem;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── Browser / Chat Mockup ─────────────────────────────────────────────────── */
.ct-lp-mockup { max-width: 440px; width: 100%; }

.ct-lp-browser {
  background: #1e1e2e;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.06);
}
.ct-lp-browser-bar {
  background: #2a2a3e;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1rem;
}
.ct-lp-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ct-lp-dot--red    { background: #ff5f57; }
.ct-lp-dot--yellow { background: #ffbd2e; }
.ct-lp-dot--green  { background: #28c840; }
.ct-lp-browser-url {
  background: #383854;
  border-radius: 4px;
  padding: .15rem .75rem;
  font-size: .72rem;
  color: rgba(255,255,255,.5);
  flex: 1;
  text-align: center;
}
.ct-lp-browser-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  background: #f8f9fa;
}
.ct-lp-site-preview {
  background: #fff;
  border-radius: 8px;
  padding: .75rem;
  border: 1px solid #e9ecef;
}
.ct-lp-site-bar {
  height: 8px;
  background: linear-gradient(90deg, var(--ct-primary), #c084fc);
  border-radius: 4px;
  margin-bottom: .5rem;
}
.ct-lp-site-line {
  height: 6px;
  background: #e9ecef;
  border-radius: 3px;
  margin-bottom: .4rem;
}
.ct-lp-site-line--w75 { width: 75%; }
.ct-lp-site-line--w50 { width: 50%; }
.ct-lp-site-line--w90 { width: 90%; }

.ct-lp-chat {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  overflow: hidden;
}

.ct-chatbot-powered {
  text-align: center;
  font-size: .72rem;
  font-weight: 500;
  color: #64748b;
  padding: .45rem .75rem .55rem;
  border-top: 1px solid #e9ecef;
  background: #f8fafc;
}

#cbb-panel .ct-chatbot-powered {
  background: #fff;
  padding: .38rem .75rem .5rem;
}
.ct-lp-chat-head {
  background: var(--ct-primary);
  color: #fff;
  padding: .6rem .875rem;
  display: flex;
  align-items: center;
  gap: .625rem;
}
.ct-lp-chat-av {
  width: 30px; height: 30px;
  background: rgba(255,255,255,.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  font-weight: 700;
  flex-shrink: 0;
}
.ct-lp-chat-name { font-size: .78rem; font-weight: 600; line-height: 1.2; }
.ct-lp-chat-online { font-size: .65rem; opacity: .8; }

.ct-lp-chat-body { padding: .625rem .75rem; display: flex; flex-direction: column; gap: .5rem; }

.ct-lp-bubble {
  max-width: 85%;
  padding: .45rem .75rem;
  border-radius: 12px;
  font-size: .78rem;
  line-height: 1.45;
}
.ct-lp-bubble--bot {
  background: #f1f3f5;
  color: #333;
  border-bottom-left-radius: 2px;
  align-self: flex-start;
}
.ct-lp-bubble--user {
  background: var(--ct-primary);
  color: #fff;
  border-bottom-right-radius: 2px;
  align-self: flex-end;
}
.ct-lp-typing { display: inline-flex; gap: 3px; align-items: center; padding: .1rem 0; }
.ct-lp-typing span {
  width: 6px; height: 6px;
  background: #adb5bd;
  border-radius: 50%;
  animation: ct-typing 1.2s infinite ease-in-out;
}
.ct-lp-typing span:nth-child(2) { animation-delay: .2s; }
.ct-lp-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes ct-typing {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.ct-lp-chat-foot {
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  padding: .5rem .75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ct-lp-chat-placeholder { font-size: .72rem; color: #adb5bd; }
.ct-lp-send {
  width: 22px; height: 22px;
  background: var(--ct-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  cursor: default;
}

/* ── Platform Strip ─────────────────────────────────────────────────────────── */
.ct-lp-strip {
  background: var(--ct-surface);
  border-top: 1px solid var(--ct-border);
  border-bottom: 1px solid var(--ct-border);
}
.ct-lp-platform {
  background: var(--ct-bg);
  border: 1px solid var(--ct-border);
  border-radius: 2rem;
  padding: .35rem .9rem;
  font-size: .8rem;
  font-weight: 500;
  color: var(--ct-text-muted);
}

/* ── Features Section ──────────────────────────────────────────────────────── */
.ct-lp-features { background: var(--ct-bg); }
.ct-lp-section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
}
.ct-lp-section-sub {
  font-size: 1.05rem;
  color: var(--ct-text-muted);
  max-width: 560px;
  margin: .5rem auto 0;
}
.ct-lp-feat {
  background: var(--ct-surface);
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius-lg);
  padding: 1.75rem;
  transition: box-shadow .2s ease, transform .2s ease;
}
.ct-lp-feat:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
  transform: translateY(-3px);
}
.ct-lp-feat-icon {
  font-size: 2rem;
  margin-bottom: .875rem;
  display: block;
}
.ct-lp-feat h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.ct-lp-feat p {
  font-size: .9rem;
  color: var(--ct-text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ── How It Works ──────────────────────────────────────────────────────────── */
.ct-lp-how {
  position: relative;
  background:
    radial-gradient(1200px 420px at 10% -5%, rgba(37,99,235,.11) 0%, transparent 60%),
    radial-gradient(900px 360px at 95% 105%, rgba(6,182,212,.09) 0%, transparent 62%),
    linear-gradient(140deg, #f8fbff 0%, #ffffff 52%, #f7fafc 100%);
  color: #0f172a;
}
.ct-lp-how .ct-lp-section-title { color: #0f172a; }
.ct-lp-how .ct-lp-section-sub { color: #475569; }
.ct-lp-step {
  text-align: left;
  height: 100%;
  padding: 1.8rem 1.4rem;
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,.25);
  background: rgba(255,255,255,.88);
  box-shadow: 0 8px 26px rgba(15,23,42,.08);
  backdrop-filter: blur(3px);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  color: #0f172a;
}
.ct-lp-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(15,23,42,.14);
  border-color: rgba(37,99,235,.32);
}
.ct-lp-step-num {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--ct-primary) 0%, #0ea5e9 100%);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 1rem;
  box-shadow: 0 8px 20px rgba(37,99,235,.32);
}
.ct-lp-step h3 {
  font-size: 1.12rem;
  font-weight: 750;
  margin-bottom: .55rem;
  letter-spacing: -.01em;
  color: #0f172a;
}
.ct-lp-step p {
  font-size: .94rem;
  color: #475569;
  line-height: 1.7;
  margin: 0;
}

/* ── Pricing ───────────────────────────────────────────────────────────────── */
.ct-lp-pricing {
  background:
    radial-gradient(950px 360px at 50% -4%, rgba(37,99,235,.12) 0%, transparent 64%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 62%);
  color: #0f172a;
}
.ct-lp-pricing .ct-lp-section-title { color: #0f172a; }
.ct-lp-pricing .ct-lp-section-sub { color: #475569; }
.ct-lp-tier {
  position: relative;
  background: #fff;
  border: 1px solid rgba(148,163,184,.28);
  border-radius: 20px;
  padding: 2.1rem 1.6rem 1.7rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ct-lp-tier::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(37,99,235,.95), rgba(14,165,233,.95));
  opacity: .16;
}
.ct-lp-tier:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .16);
  border-color: rgba(37,99,235,.34);
}
.ct-lp-tier--featured {
  border-color: rgba(37,99,235,.5);
  box-shadow: 0 16px 40px rgba(37,99,235,.2);
  transform: translateY(-4px) scale(1.015);
}
.ct-lp-tier--featured::before {
  opacity: 1;
}
.ct-lp-tier-badge {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #0f172a 0%, #1d4ed8 100%);
  color: #fff;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: .34rem .72rem;
  white-space: nowrap;
}
.ct-lp-tier-name {
  margin: .35rem 0 0;
  font-size: 1.04rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #1e3a8a;
}
.ct-lp-tier-tagline {
  margin: .7rem 0 1.05rem;
  color: #475569;
  font-size: .9rem;
  line-height: 1.58;
  min-height: 2.6em;
}
.ct-lp-tier-price {
  display: flex;
  align-items: baseline;
  gap: .26rem;
  border-bottom: 1px dashed rgba(148,163,184,.55);
  padding-bottom: 1.05rem;
  margin-bottom: 1.05rem;
}
.ct-lp-tier-currency { font-size: 1.15rem; font-weight: 750; color: #334155; }
.ct-lp-tier-amount { font-size: 2.75rem; font-weight: 850; line-height: 1; color: #0f172a; letter-spacing: -.03em; }
.ct-lp-tier-period { font-size: .8rem; color: #64748b; margin-left: .25rem; font-weight: 600; }
.ct-lp-tier-features {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}
.ct-lp-tier-features li {
  display: flex;
  gap: .62rem;
  align-items: flex-start;
  padding: .4rem 0;
  color: #0f172a;
  font-size: .92rem;
  line-height: 1.55;
}
.ct-lp-tier-feat-icon {
  width: 19px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(34,197,94,.15);
  color: #16a34a;
  font-size: .7rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.ct-lp-tier-feat--off {
  color: #94a3b8;
  text-decoration: line-through;
  text-decoration-color: rgba(148,163,184,.6);
}
.ct-lp-tier-feat--off .ct-lp-tier-feat-icon {
  background: rgba(148,163,184,.2);
  color: #94a3b8;
}


/* ── Stats ─────────────────────────────────────────────────────────────────── */
.ct-lp-stats {
  background: var(--ct-primary);
  color: #fff;
}
.ct-lp-stat-val {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: .3rem;
}
.ct-lp-stat-lbl {
  font-size: .8rem;
  opacity: .8;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── Final CTA ─────────────────────────────────────────────────────────────── */
.ct-lp-cta-final {
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  color: #fff;
}
.ct-lp-cta-box h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: .75rem;
}
.ct-lp-cta-box .lead { color: rgba(255,255,255,.75); }
.ct-lp-cta-final .btn-outline-light { border-color: rgba(255,255,255,.4); }

/* ── Details / Fieldset Bootstrap overrides ─────────────────────────────────── */
.ct-details {
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius);
  background: var(--ct-surface);
}
.ct-details-summary {
  padding: .75rem 1rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--ct-radius);
  user-select: none;
}
.ct-details-summary::-webkit-details-marker { display: none; }
.ct-details-summary::after {
  content: '+';
  font-size: 1.1rem;
  line-height: 1;
  transition: transform .2s;
}
details[open] .ct-details-summary::after { content: '−'; }
.ct-details-body { padding: 1rem; border-top: 1px solid var(--ct-border); }

.ct-fieldset {
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius);
  background: var(--ct-surface);
  padding: 1rem 1.25rem;
}
.ct-fieldset legend {
  float: none;
  padding: 0 .5rem;
  font-size: .9rem;
  font-weight: 600;
  width: auto;
}
.ct-fieldset .fieldset-legend { color: var(--ct-text); }

/* ── py-6 utility ─────────────────────────────────────────────────────────── */
.py-6 { padding-top: 5rem !important; padding-bottom: 5rem !important; }

/* ── Centralized media queries ────────────────────────────────────────────── */

@media (prefers-color-scheme: dark) {
  :root {
    --ct-bg:      #0f172a;
    --ct-surface: #1e293b;
    --ct-border:  #334155;
    --ct-text:    #f1f5f9;
    --ct-text-muted: #94a3b8;
  }
  .ct-header { background: #020617; }
  .ct-footer { background: #020617; }
  code, pre { background: #1e293b; }
  table th { background: #1e293b; }
  tbody tr:hover { background: #1e293b; }
  .ct-help { background: #0c1a2e; }
  .form-control, .form-select { background-color: var(--ct-surface); color: var(--ct-text); }
}

@media (min-width: 1800px) {
  .container-xl {
    max-width: 1720px;
    --bs-gutter-x: 1rem;
  }

  .ct-lp-hero.align-items-center,
  .ct-lp-hero .align-items-center {
    margin: 50px !important;
  }
}

@media (min-width: 1400px) and (max-width: 1799.98px) {
  .container-xl {
    /* max-width: 1400px; */
    --bs-gutter-x: 1.25rem;
  }

  .ct-lp-hero.align-items-center,
  .ct-lp-hero .align-items-center {
    margin: 42px !important;
  }
}

@media (min-width: 992px) and (max-width: 1399.98px) {
  .container-xl {
    --bs-gutter-x: 1.5rem;
  }

  .ct-lp-hero.align-items-center,
  .ct-lp-hero .align-items-center {
    margin: 36px !important;
  }
}

@media (min-width: 992px) {
  .ct-header__collapse.collapse {
    display: flex !important;
  }

  .ct-toggler {
    display: none;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .container-xl {
    --bs-gutter-x: 1.25rem;
  }

  .ct-lp-hero.align-items-center,
  .ct-lp-hero .align-items-center {
    margin: 24px !important;
  }
}

@media (max-width: 991.98px) {
  .ct-header__collapse {
    flex-direction: column;
    align-items: stretch;
    padding: .75rem 0 1rem;
    border-top: 1px solid rgba(255,255,255,.08);
    gap: .25rem;
  }

  .ct-header__collapse.collapse.show {
    display: flex !important;
  }

  .ct-header__nav {
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
  }

  .ct-header__actions {
    width: 100%;
    min-width: 0;
    padding-left: 0;
    margin-left: 0;
    padding-top: .5rem;
    border-top: 1px solid rgba(255,255,255,.06);
  }

  .ct-header__nav .ct-menu.navbar-nav,
  .ct-header__actions .ct-menu.navbar-nav {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .ct-header__nav .ct-menu.navbar-nav .nav-link,
  .ct-header__actions .ct-menu-link {
    width: 100%;
    justify-content: flex-start;
    border-radius: var(--ct-radius-sm);
    white-space: normal;
  }

  .ct-header__actions .ct-menu-item:first-child .ct-menu-link {
    justify-content: center;
  }

  .ct-toggler {
    margin-left: auto;
  }

  .ct-lp-step {
    text-align: center;
    padding: 1.55rem 1.2rem;
  }

  .ct-lp-step-num {
    margin: 0 auto .9rem;
  }

  .ct-lp-tier--featured {
    transform: none;
  }
}

@media (max-width: 768px) {
  .py-6 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}

@media (max-width: 767.98px) {
  .ct-navbar {
    padding: .5rem 0;
  }

  .ct-navbar .container-xl {
    flex-wrap: wrap;
    gap: .35rem;
  }

  .ct-header__branding {
    padding-right: 0;
    flex: 1 1 auto;
    min-width: 0;
  }

  .ct-toggler {
    flex: 0 0 auto;
  }

  .ct-header__collapse {
    flex: 0 0 100%;
    width: 100%;
    order: 3;
    align-items: stretch;
  }

  .ct-brand {
    gap: 10px;
    padding: .15rem .45rem .15rem .1rem;
    font-size: 1rem;
  }

  .ct-brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    padding: 5px;
  }

  .ct-brand-name {
    font-size: 1rem;
    max-width: 52vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ct-main {
    padding-top: 1rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  .vertical-tabs__menu {
    display: flex;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--ct-border);
  }

  .vertical-tabs__pane {
    padding: 1rem;
  }

  .ct-footer__brand-col,
  .ct-footer__menu-col {
    text-align: center;
    align-items: center;
  }

  .ct-footer__extra {
    max-width: none;
  }

  .ct-footer-brand {
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .container-xl {
    --bs-gutter-x: 1rem;
  }

  .ct-lp-hero.align-items-center,
  .ct-lp-hero .align-items-center {
    margin: 16px !important;
  }

  .ct-lp-tier {
    padding: 1.85rem 1.2rem 1.45rem;
    border-radius: 16px;
  }

  .ct-lp-tier-amount {
    font-size: 2.35rem;
  }

  .ct-lp-tier-badge {
    top: 11px;
  }
}

/* ── Prevent horizontal scroll ──────────────────────────────────────────────── */
html, body {
  overflow-x: clip;
}
