/* ==================== RESET & BASE ==================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  background-color: var(--surface-muted);
  color: var(--ink-800);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.3);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Header & footer styles live in assets/js/headfooter.js; these are reused by page sections */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-600);
  white-space: nowrap;
}

.text-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--ease);
}

.text-link:hover svg {
  transform: translateX(3px);
}

.menu-item-detailed {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.625rem;
  border-radius: var(--radius-md);
  transition: background-color 0.2s ease;
}

.menu-item-detailed:hover {
  background-color: var(--surface-muted);
}

.menu-item-detailed .item-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #183777;
  line-height: 1.3;
  transition: color 0.15s ease;
}

.menu-item-detailed .item-desc {
  font-size: 0.775rem;
  color: var(--ink-500);
  line-height: 1.4;
}

.menu-item-detailed:hover .item-title {
  color: var(--brand-600);
}

/* Icon tiles */
.svg-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  padding: 8px;
  border-radius: 10px;
  stroke-width: 1.9;
  color: var(--icon-fg, var(--brand-600));
  background-color: var(--icon-bg, var(--brand-50));
  transition: transform 0.2s var(--ease);
}

.menu-item-detailed:hover .svg-icon {
  transform: scale(1.06);
}

.icon-blue    { --icon-fg: #2563eb; --icon-bg: #dfeeff; }
.icon-emerald { --icon-fg: #059669; --icon-bg: #dfeeff; }
.icon-amber   { --icon-fg: #d97706; --icon-bg: #dfeeff; }
.icon-indigo  { --icon-fg: #4f46e5; --icon-bg: #dfeeff; }
.icon-rose    { --icon-fg: #e11d48; --icon-bg: #dfeeff; }
.icon-purple  { --icon-fg: #9333ea; --icon-bg: #dfeeff; }
.icon-cyan    { --icon-fg: #0891b2; --icon-bg: #dfeeff; }
.icon-teal    { --icon-fg: #0d9488; --icon-bg: #dfeeff; }
.icon-slate   { --icon-fg: #475569; --icon-bg: #dfeeff; }

/* ==================== HERO SECTION ==================== */
.hero {
  position: relative;
  z-index: 1; /* keep the hero (and its CRM frame) stacked below the sticky header */
  overflow: hidden;
  padding: 2.5rem 0 2.5rem;
}

/* Rounded gradient panel behind the hero (fades from white into brand tint) */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 160px;
  left: 1.5rem;
  right: 1.5rem;
  z-index: 0;
  border-radius: 0 0 36px 36px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 100%, rgba(59, 123, 246, 0.22), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #f5f8ff 40%, #dfe9ff 100%);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 160px;
  left: 1.5rem;
  right: 1.5rem;
  z-index: 1;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.5rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 880px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem 0.375rem 0.5rem;
  background-color: var(--surface);
  border: 1px solid #d0e1fd;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-700);
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.06);
}

.hero-pill-tag {
  background: var(--brand-600);
  color: #ffffff;
  font-size: 0.675rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.hero-title {
  font-size: clamp(2.3rem, 5vw,50px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink-900);
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
}

.hero-desc {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--ink-600);
  margin-bottom: 2rem;
  max-width: 660px;
}

.hero-desc strong {
  color: var(--ink-900);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

/* Specific Hero Buttons */
.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 50px;
  padding: 0 1.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(180deg, var(--brand-500), var(--brand-600));
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 10px 24px -4px rgba(37, 99, 235, 0.45);
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease;
}

.hero-btn-primary:hover {
  background: linear-gradient(180deg, var(--brand-600), var(--brand-700));
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -6px rgba(37, 99, 235, 0.55);
}

.hero-btn-primary svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.5;
  transition: transform 0.2s var(--ease);
}

.hero-btn-primary:hover svg {
  transform: translateX(3px);
}

.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 50px;
  padding: 0 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-700);
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(11, 19, 36, 0.03);
  transition: all 0.2s ease;
}

.hero-btn-secondary:hover {
  background-color: var(--surface-muted);
  border-color: #cbd5e1;
  color: var(--ink-900);
  transform: translateY(-1px);
}

.hero-trust-proof {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.5rem 1.125rem 0.5rem 0.5rem;
  background-color: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 4px 14px -6px rgba(11, 19, 36, 0.08);
  text-align: left;
}

.hero-avatar-stack {
  display: flex;
  align-items: center;
}

.hero-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  margin-left: -8px;
  background-color: #cbd5e1;
  object-fit: cover;
}

.hero-avatar:first-child {
  margin-left: 0;
}

.hero-trust-text {
  font-size: 0.825rem;
  color: var(--ink-600);
  line-height: 1.4;
}

.hero-trust-text strong {
  color: var(--ink-900);
  display: block;
  font-weight: 700;
}

.hero-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  color: #f59e0b;
  margin-top: 2px;
}

.hero-stars svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  stroke: none;
}

/* ==================== AI DASHBOARD SIMULATOR ==================== */
.hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  width: 100%;
  max-width: 1180px;
}

/* Desktop monitor mockup: bezel (.crm-frame) + stand */
.desktop-device {
  position: relative;
  z-index: 1;
  min-width: 0;
  animation: frameIn 0.9s var(--ease) both;
}

@keyframes frameIn {
  from { opacity: 0; transform: translateY(24px) scale(0.985); }
}

.crm-frame {
  position: relative;
  padding: 14px 12px 12px;
  background: linear-gradient(160deg, #1e293b, #0b1324 70%);
  border-radius: 22px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 40px 80px -30px rgba(29, 78, 216, 0.45),
    0 20px 40px -20px rgba(11, 19, 36, 0.4);
}

/* Webcam dot */
.crm-frame::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background-color: #334155;
}

.monitor-stand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.monitor-neck {
  width: 110px;
  height: 28px;
  background: linear-gradient(90deg, #cbd5e1, #e2e8f0 45%, #cbd5e1);
  clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%);
}

.monitor-base {
  width: 260px;
  height: 10px;
  background: linear-gradient(180deg, #e2e8f0, #94a3b8);
  border-radius: 6px 6px 10px 10px;
  box-shadow: 0 14px 24px -10px rgba(11, 19, 36, 0.35);
}

.crm-app {
  position: relative;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
}

/* Browser chrome */
.browser-bar {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  padding: 0.5rem 1rem;
  background-color: #fbfcfe;
  border-bottom: 1px solid var(--line-soft);
}

.window-dots {
  display: flex;
  gap: 7px;
}

.window-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background-color: #ff5f57;
}

.window-dots span:nth-child(2) { background-color: #febc2e; }
.window-dots span:nth-child(3) { background-color: #28c840; }

.browser-nav,
.browser-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--ink-400);
}

.browser-nav svg,
.browser-actions svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.8;
}

.browser-url {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  justify-self: center;
  width: 100%;
  max-width: 520px;
  height: 30px;
  padding: 0 2rem;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--ink-500);
  white-space: nowrap;
  background-color: var(--line-soft);
  border-radius: 8px;
}

.browser-url svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.browser-url .url-reload {
  position: absolute;
  right: 0.65rem;
}

/* App layout */
.crm-layout {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
}

.crm-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0.85rem 0.75rem;
  background-color: var(--surface);
  border-right: 1px solid var(--line-soft);
}

.crm-brand {
  display: flex;
  align-items: center;
  padding: 0.1rem 0.5rem 0.7rem;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid var(--line-soft);
}

.crm-brand img {
  display: block;
  width: 132px;
  height: auto;
}

.side-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  height: 31px;
  padding: 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-500);
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.side-item svg {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  stroke-width: 1.9;
  transition: color 0.3s ease;
}

.side-item.is-active {
  color: var(--ink-900);
  background-color: var(--surface-muted);
  border-color: var(--line);
}

.side-item.is-active svg {
  color: var(--brand-600);
}

.side-item.is-active::before {
  content: "";
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: -13px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background-color: var(--brand-600);
}

.crm-main {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 0;
  padding: 0.85rem 1rem 1rem;
  background-color: #fcfdff;
}

.crm-main-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line-soft);
}

.crm-page-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--ink-900);
}

.crm-page-sub {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-400);
}

.crm-head-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.crm-search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 230px;
  height: 32px;
  padding: 0 0.65rem;
  font-size: 0.72rem;
  color: var(--ink-400);
  white-space: nowrap;
  overflow: hidden;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.crm-search svg {
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  color: var(--brand-600);
}

.agent-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 32px;
  padding: 0 11px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  background: linear-gradient(180deg, var(--brand-500), var(--brand-600));
  border-radius: 9px;
  box-shadow: 0 4px 12px -4px rgba(37, 99, 235, 0.5);
}

.agent-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #a5f3fc;
  animation: agentPing 1.8s ease-out infinite;
}

@keyframes agentPing {
  0% { box-shadow: 0 0 0 0 rgba(165, 243, 252, 0.7); }
  100% { box-shadow: 0 0 0 6px rgba(165, 243, 252, 0); }
}

/* KPI stat cards */
.crm-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.stat-card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.stat-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.7rem;
}

.stat-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  color: var(--brand-600);
  background-color: var(--brand-50);
  border: 1px solid #d0e1fd;
  border-radius: 9px;
}

.stat-icon svg {
  width: 16px;
  height: 16px;
}

.stat-label {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--ink-500);
  white-space: nowrap;
}

.stat-top > div {
  min-width: 0;
}

.stat-value {
  display: block;
  font-size: 0.98rem;
  font-weight: 800;
  white-space: nowrap;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  transform-origin: left center;
}

.stat-value.bump {
  animation: statBump 0.6s var(--ease);
}

@keyframes statBump {
  40% { transform: scale(1.1); color: var(--brand-600); }
}

.stat-trend {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  flex-shrink: 0;
  gap: 2px;
  margin-left: auto;
  padding: 2px 6px;
  font-size: 0.6rem;
  font-weight: 700;
  color: #059669;
  background-color: #ecfdf5;
  border-radius: 999px;
}

.stat-trend svg {
  width: 10px;
  height: 10px;
  stroke-width: 2.75;
}

/* Panels: pipeline + activity */
.crm-body {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  gap: 0.75rem;
}

.crm-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.55rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-900);
  white-space: nowrap;
  border-bottom: 1px solid var(--line-soft);
}

.panel-head small {
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--ink-400);
  white-space: nowrap;
}

.panel-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 8px;
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--ink-500);
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.panel-chip svg {
  width: 11px;
  height: 11px;
}

/* Kanban */
.kanban {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.55rem;
}

.kan-col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 100px;
  padding: 0.5rem;
  background-color: var(--surface-muted);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.kan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  padding: 0 0.125rem 0.125rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-600);
}

.kan-head > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kan-head i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background-color: var(--c);
  vertical-align: 1px;
}

.kan-count {
  font-size: 0.62rem;
  color: var(--ink-400);
}

.deal {
  position: relative;
  padding: 0.45rem 0.5rem;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(11, 19, 36, 0.04);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.4s ease;
}

.deal-name {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
  min-height: 16px;
  margin-top: 0.25rem;
}

.deal-src {
  margin-right: 2px;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--ink-400);
  white-space: nowrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 16px;
  padding: 0 5px;
  font-size: 0.58rem;
  font-weight: 700;
  white-space: nowrap;
  border-radius: 999px;
  animation: tagIn 0.4s var(--ease) both;
}

.tag svg {
  width: 9px;
  height: 9px;
  stroke-width: 2.5;
}

.tag-ai   { color: #6d28d9; background-color: #f3e8ff; }
.tag-wa   { color: #15803d; background-color: #dcfce7; }
.tag-time { color: #b45309; background-color: #fef3c7; }
.tag-rep  { width: 16px; padding: 0; color: #ffffff; background-color: #059669; }

@keyframes tagIn {
  from { opacity: 0; transform: scale(0.6); }
}

.deal.is-new {
  animation: dealIn 0.5s var(--ease) both;
}

@keyframes dealIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.96); }
}

.deal.is-leaving {
  opacity: 0;
}

/* Left column: deal board + agent log stacked */
.crm-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

/* WhatsApp inbox panel (shares bubble styles with the mobile app) */
.wa-contact {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--line-soft);
}

.wa-contact .p-ava {
  width: 30px;
  height: 30px;
  font-size: 0.62rem;
  color: #15803d;
  background-color: #dcfce7;
}

.wa-contact-body {
  flex: 1;
  min-width: 0;
}

.wa-contact-body b,
.wa-contact-body span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wa-contact-body b {
  font-size: 0.74rem;
  color: var(--ink-900);
}

.wa-contact-body span {
  font-size: 0.62rem;
  font-weight: 600;
  color: #15803d;
}

.wa-panel {
  flex: 1;
}

.wa-chat {
  position: relative;
  flex: 1;
  min-height: 120px;
}

/* ==================== AI STUDIO (desktop only): calling, image & video generation ==================== */
.studio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.6rem;
}

.studio-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
  padding: 0.45rem;
  background-color: var(--surface-muted);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.studio-top {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.studio-top b {
  flex: 1;
  min-width: 0;
  font-size: 0.66rem;
  color: var(--ink-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.studio-ico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #ffffff;
  border-radius: 6px;
}

.studio-ico svg {
  width: 11px;
  height: 11px;
  stroke-width: 2.2;
}

.ico-call { background: linear-gradient(180deg, #34d399, #059669); }
.ico-img  { background: linear-gradient(180deg, #c084fc, #9333ea); }
.ico-vid  { background: linear-gradient(180deg, #fb7185, #e11d48); }

.studio-state {
  flex-shrink: 0;
  font-size: 0.54rem;
  font-weight: 700;
  color: var(--ink-400);
  white-space: nowrap;
}

.studio-state.is-busy { color: var(--brand-600); }
.studio-state.is-done { color: #059669; }

.studio-line {
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--ink-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* AI calling: voice waveform */
.call-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 36px;
  background-color: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}

.call-wave i {
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background-color: #10b981;
  opacity: 0.45;
}

.studio-card.is-live .call-wave i {
  opacity: 1;
  animation: callWave 0.9s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.11s);
}

@keyframes callWave {
  0%, 100% { height: 6px; }
  50% { height: 28px; }
}

/* AI image & video previews */
.studio-media {
  position: relative;
  height: 36px;
  overflow: hidden;
  border-radius: 8px;
}

.img-media {
  background: linear-gradient(180deg, var(--wall, #dbeafe) 0 58%, #e7d3b5 58%);
}

.img-media::before {
  content: "";
  position: absolute;
  top: 14%;
  left: 12%;
  width: 24%;
  height: 36%;
  background: linear-gradient(180deg, #e0f2fe, #7dd3fc);
  border: 2px solid #ffffff;
  border-radius: 2px;
}

.img-media::after {
  content: "";
  position: absolute;
  bottom: 16%;
  left: 44%;
  width: 44%;
  height: 28%;
  background-color: var(--sofa, #6366f1);
  border-radius: 6px 6px 2px 2px;
  transition: background-color 0.4s ease;
}

.vid-media {
  background: linear-gradient(135deg, #1e293b, #334155);
}

.vid-media::before,
.vid-media::after {
  content: "";
  position: absolute;
  bottom: 0;
  background-color: #475569;
}

.vid-media::before {
  left: 14%;
  width: 22%;
  height: 72%;
}

.vid-media::after {
  left: 58%;
  width: 28%;
  height: 52%;
  background-color: #64748b;
}

.vid-play {
  position: absolute;
  top: 42%;
  left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: var(--ink-900);
  background-color: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.vid-play svg {
  width: 8px;
  height: 8px;
  margin-left: 1px;
  fill: currentColor;
}

.vid-bar {
  position: absolute;
  right: 6px;
  bottom: 5px;
  left: 6px;
  z-index: 2;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 999px;
}

.vid-bar i {
  display: block;
  width: 100%;
  height: 100%;
  background-color: #fb7185;
  border-radius: inherit;
  transition: width 0.1s linear;
}

/* Shimmer veil while the AI is generating */
.media-veil {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(110deg, #ede9fe 30%, #faf5ff 50%, #ede9fe 70%);
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  animation: veilShimmer 1.2s linear infinite;
}

.studio-media.is-generating .media-veil {
  opacity: 1;
}

@keyframes veilShimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

.wa-chat .p-chat {
  position: absolute;
  inset: 0;
  padding: 0.7rem;
  border-radius: 0;
}

.wa-chat .p-msg {
  max-width: 80%;
  font-size: 0.68rem;
}

.wa-chat .p-msg small {
  font-size: 0.54rem;
}

.wa-chat .p-file b {
  font-size: 0.64rem;
}

.wa-chat .p-file span {
  font-size: 0.56rem;
}

.ai-touch {
  border-color: #93b4fb !important;
  box-shadow: 0 0 0 3px rgba(59, 123, 246, 0.18), 0 6px 16px -6px rgba(37, 99, 235, 0.35) !important;
}

/* Agent log */
.agent-log-list {
  flex: 1;
  min-height: 68px;
  overflow: hidden;
}

.log-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 34px;
  padding: 0 0.8rem;
  font-size: 0.7rem;
  color: var(--ink-700);
  border-bottom: 1px solid var(--line-soft);
  animation: logIn 0.45s var(--ease) both;
}

@keyframes logIn {
  from { opacity: 0; transform: translateY(-8px); }
}

.log-check {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #059669;
  background-color: #d1fae5;
}

.log-check svg {
  width: 10px;
  height: 10px;
  stroke-width: 3;
}

.log-text {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.log-mod {
  padding: 2px 6px;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--brand-600);
  white-space: nowrap;
  background-color: var(--brand-50);
  border-radius: 999px;
}

.log-time {
  width: 22px;
  font-size: 0.6rem;
  font-weight: 600;
  text-align: right;
  color: var(--ink-400);
}

/* AI Agent Figure */
.ai-agent {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  pointer-events: none;
  transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}

.agent-bot {
  position: relative;
  width: 44px;
  height: 44px;
  animation: agentHover 3s ease-in-out infinite;
}

@keyframes agentHover {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.agent-glow {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 123, 246, 0.35), transparent 65%);
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.08); }
}

.agent-bubble {
  position: absolute;
  top: 50%;
  left: calc(100% + 12px);
  width: max-content;
  max-width: 220px;
  padding: 0.45rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.35;
  color: #ffffff;
  background-color: var(--ink-900);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.25s ease;
}

.ai-agent.flip .agent-bubble {
  left: auto;
  right: calc(100% + 12px);
}

.ai-agent.is-talking .agent-bubble {
  opacity: 1;
}

.agent-bubble b {
  display: block;
  margin-bottom: 1px;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a5b4fc;
}

.agent-caret {
  display: inline-block;
  width: 5px;
  height: 0.8em;
  margin-left: 2px;
  vertical-align: -1px;
  background-color: #67e8f9;
  animation: agentCaret 0.8s steps(1) infinite;
}

@keyframes agentCaret {
  50% { opacity: 0; }
}

/* ==================== COMPANION MOBILE APP MOCKUP ==================== */
.crm-phone {
  position: relative;
  z-index: 3;
  margin: 0 0 0 -24px;
  animation: phoneIn 1s 0.35s var(--ease) both;
}

@keyframes phoneIn {
  from { opacity: 0; transform: translate(40px, 30px) rotate(4deg); }
}

.phone-shell {
  position: relative;
  width: 228px;
  height: 468px;
  padding: 8px;
  background: linear-gradient(160deg, #1e293b, #0b1324 60%);
  border-radius: 38px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 40px 70px -24px rgba(11, 19, 36, 0.55),
    0 14px 30px -12px rgba(29, 78, 216, 0.35);
  animation: phoneFloat 6s ease-in-out infinite;
}

.phone-shell::before {
  content: "";
  position: absolute;
  top: 110px;
  right: -2px;
  width: 3px;
  height: 54px;
  border-radius: 0 3px 3px 0;
  background-color: #1e293b;
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.phone-island {
  position: absolute;
  top: 15px;
  left: 50%;
  z-index: 6;
  width: 72px;
  height: 20px;
  margin-left: -36px;
  border-radius: 12px;
  background-color: #05080f;
}

.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  text-align: left;
  background-color: var(--surface-muted);
  border-radius: 30px;
}

.phone-screen::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 70px;
  height: 3px;
  margin-left: -35px;
  border-radius: 3px;
  background-color: var(--ink-900);
  opacity: 0.8;
}

.phone-status {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  padding: 4px 20px 0 22px;
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--ink-900);
}

.phone-status-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.phone-status-icons svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.2;
}

/* Push notification banner */
.phone-notif {
  position: absolute;
  top: 40px;
  left: 8px;
  right: 8px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background-color: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 24px -10px rgba(11, 19, 36, 0.35);
  opacity: 0;
  transform: translateY(-120%);
  transition: transform 0.45s var(--ease), opacity 0.3s ease;
}

.phone-notif.show {
  opacity: 1;
  transform: translateY(0);
}

.phone-notif-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  color: #ffffff;
  background: linear-gradient(180deg, var(--brand-500), var(--brand-600));
  border-radius: 8px;
}

.phone-notif-icon svg {
  width: 14px;
  height: 14px;
}

.phone-notif-body {
  flex: 1;
  min-width: 0;
}

.phone-notif-body b,
.phone-notif-body span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone-notif-body b {
  font-size: 0.62rem;
  color: var(--ink-900);
}

.phone-notif-body span {
  font-size: 0.58rem;
  line-height: 1.3;
  color: var(--ink-500);
}

.phone-notif small {
  align-self: flex-start;
  font-size: 0.52rem;
  font-weight: 600;
  color: var(--ink-400);
}

.phone-appbar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px 10px;
}

.phone-appbar small {
  display: block;
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-600);
}

.phone-appbar strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink-900);
}

.p-ava {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  font-size: 0.56rem;
  font-weight: 800;
  color: var(--brand-700);
  background-color: #dfeeff;
  border-radius: 50%;
}

/* Screens that slide in as the agent switches modules */
.phone-views {
  position: relative;
  flex: 1;
  min-height: 0;
}

.phone-view {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 0 10px 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(16px);
  transition: opacity 0.35s ease, transform 0.45s var(--ease), visibility 0.35s;
}

.phone-view.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.p-filters {
  display: flex;
  gap: 5px;
}

.p-filters span {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  font-size: 0.54rem;
  font-weight: 700;
  color: var(--ink-500);
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.p-filters span:first-child {
  color: #ffffff;
  background-color: var(--ink-900);
  border-color: var(--ink-900);
}

.p-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.p-lead {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.p-lead.is-new {
  border-color: #93b4fb;
  box-shadow: 0 0 0 3px rgba(59, 123, 246, 0.15);
  animation: dealIn 0.5s var(--ease) both;
}

.p-lead-body {
  flex: 1;
  min-width: 0;
}

.p-lead-body b,
.p-lead-body span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-lead-body b {
  font-size: 0.64rem;
  color: var(--ink-900);
}

.p-lead-body span {
  font-size: 0.54rem;
  font-weight: 600;
  color: var(--ink-500);
}

.p-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  height: 17px;
  padding: 0 6px;
  font-size: 0.52rem;
  font-weight: 800;
  white-space: nowrap;
  color: var(--brand-700);
  background-color: var(--brand-50);
  border-radius: 999px;
  animation: tagIn 0.4s var(--ease) both;
}

.p-chip svg {
  width: 9px;
  height: 9px;
  stroke-width: 2.5;
}

.p-chip-ai   { color: #6d28d9; background-color: #f3e8ff; }
.p-chip-time { color: #b45309; background-color: #fef3c7; }
.p-chip-ok   { color: #15803d; background-color: #dcfce7; }

/* WhatsApp chat */
.p-chat-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.p-chat-head .p-ava {
  color: #15803d;
  background-color: #dcfce7;
}

.p-chat-head b {
  display: block;
  font-size: 0.64rem;
  color: var(--ink-900);
}

.p-chat-head span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.52rem;
  font-weight: 600;
  color: #15803d;
}

.p-chat-head span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #22c55e;
}

.p-chat {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 5px;
  padding: 8px;
  overflow: hidden;
  background-color: #eaf3ee;
  background-image: radial-gradient(rgba(21, 128, 61, 0.08) 1px, transparent 1px);
  background-size: 12px 12px;
  border-radius: 12px;
}

.p-msg {
  flex-shrink: 0;
  max-width: 86%;
  padding: 5px 8px 4px;
  font-size: 0.58rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink-800);
  border-radius: 10px;
  box-shadow: 0 1px 1px rgba(11, 19, 36, 0.06);
  animation: msgIn 0.35s var(--ease) both;
}

.p-msg.out {
  align-self: flex-end;
  background-color: #d9fdd3;
  border-bottom-right-radius: 3px;
}

.p-msg.in {
  align-self: flex-start;
  background-color: var(--surface);
  border-bottom-left-radius: 3px;
}

.p-msg small {
  display: block;
  margin-top: 1px;
  font-size: 0.48rem;
  font-weight: 600;
  text-align: right;
  color: var(--ink-400);
}

.p-msg.out small {
  color: #0ea5e9;
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(6px) scale(0.96); }
}

.p-file {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
  padding: 5px;
  background-color: rgba(255, 255, 255, 0.65);
  border-radius: 7px;
}

.p-file i {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 20px;
  height: 24px;
  font-size: 0.44rem;
  font-style: normal;
  font-weight: 800;
  color: #ffffff;
  background-color: #ef4444;
  border-radius: 4px;
}

.p-file div {
  min-width: 0;
}

.p-file b,
.p-file span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-file b {
  font-size: 0.55rem;
  color: var(--ink-900);
}

.p-file span {
  font-size: 0.48rem;
  color: var(--ink-400);
}

.p-typing {
  flex-shrink: 0;
  align-self: flex-start;
  display: flex;
  gap: 3px;
  padding: 7px 9px;
  background-color: var(--surface);
  border-radius: 10px;
  animation: msgIn 0.3s var(--ease) both;
}

.p-typing span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--ink-400);
  animation: typingDot 1s infinite;
}

.p-typing span:nth-child(2) { animation-delay: 0.15s; }
.p-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-3px); opacity: 1; }
}

/* Mobile dashboard */
.p-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.p-kpi {
  padding: 7px 8px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
}

.p-kpi small {
  display: block;
  font-size: 0.5rem;
  font-weight: 700;
  color: var(--ink-500);
}

.p-kpi strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  transform-origin: left center;
}

.p-kpi strong.bump {
  animation: statBump 0.6s var(--ease);
}

.p-stack {
  display: flex;
  gap: 2px;
  height: 8px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
}

.p-stack i {
  flex: var(--f);
  background-color: var(--c);
  transition: flex 0.8s var(--ease);
}

.p-legend {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-size: 0.48rem;
  font-weight: 700;
  color: var(--ink-500);
}

.p-legend b {
  color: var(--ink-900);
}

.p-agenda {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  animation: dealIn 0.5s var(--ease) both;
}

.p-agenda-time {
  flex-shrink: 0;
  width: 38px;
  font-size: 0.5rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  color: var(--brand-700);
  background-color: var(--brand-50);
  border-radius: 6px;
  padding: 3px 0;
}

.p-agenda .p-lead-body b {
  font-size: 0.6rem;
}

.p-agenda .p-lead-body span {
  font-size: 0.5rem;
}

/* Generic mobile cards (report, targets) */
.p-card {
  padding: 9px 10px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.p-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.p-card small {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-400);
}

.p-card strong {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--ink-900);
}

.p-card strong.p-big {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.p-card p {
  margin-top: 1px;
  font-size: 0.56rem;
  font-weight: 600;
  color: var(--ink-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-card-note {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  padding-top: 7px;
  font-size: 0.54rem;
  font-weight: 600;
  color: var(--ink-600);
  border-top: 1px dashed var(--line);
}

.p-card-note svg {
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  color: var(--brand-600);
}

.p-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 70px;
  margin-top: 8px;
}

.p-bars span {
  flex: 1;
  height: 8%;
  background: linear-gradient(180deg, #93b4fb, var(--brand-600));
  border-radius: 4px 4px 2px 2px;
  transition: height 0.8s var(--ease);
}

.p-bars span:last-child {
  background: linear-gradient(180deg, #34d399, #059669);
}

.p-pct {
  font-size: 0.64rem;
  font-weight: 800;
  color: var(--brand-600);
}

.p-progress {
  height: 6px;
  margin-top: 6px;
  overflow: hidden;
  background-color: var(--line-soft);
  border-radius: 999px;
}

.p-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--brand-500), #4338ca);
  border-radius: inherit;
  transition: width 1s var(--ease);
}

.p-rank {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--ink-800);
}

.p-rank .p-ava {
  width: 20px;
  height: 20px;
  font-size: 0.46rem;
}

.p-rank em {
  margin-left: auto;
  font-size: 0.54rem;
  font-style: normal;
  font-weight: 600;
  color: var(--ink-500);
}

/* Bottom tab bar */
.phone-tabs {
  display: grid;
  flex-shrink: 0;
  grid-template-columns: repeat(4, 1fr);
  padding: 7px 6px 13px;
  background-color: var(--surface);
  border-top: 1px solid var(--line-soft);
}

.phone-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.5rem;
  font-weight: 700;
  color: var(--ink-400);
  transition: color 0.3s ease;
}

.phone-tab svg {
  width: 15px;
  height: 15px;
}

.phone-tab.is-active {
  color: var(--brand-600);
}

/* ==================== ABOUT SECTION ==================== */
/* Reuses hero-pill, hero-title, hero-desc, hero CTAs, hero-stars and svg-icon */
.about {
  position: relative;
  overflow: hidden;
  padding: 7rem 0;
  background-color: var(--surface);
}

/* Soft grid + brand glow, echoing the hero backdrop */
.about::before,
.about::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.about::before {
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 45% 60% at 75% 45%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 45% 60% at 75% 45%, #000 10%, transparent 75%);
}

.about::after {
  top: -15%;
  right: -10%;
  width: 60%;
  height: 90%;
  background: radial-gradient(closest-side, rgba(59, 123, 246, 0.16), transparent);
}

.about-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 4.5rem;
}

.about .hero-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.about .hero-desc {
  margin-bottom: 1.75rem;
}

.about .hero-cta-group {
  justify-content: flex-start;
  margin-bottom: 0;
}

/* Capabilities grid (menu-item-detailed) */
.about-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1rem;
  margin: 0 0 1.75rem -0.625rem;
}

.about-features .menu-item-detailed {
  align-items: flex-start;
}

/* Key figures card */
.about-figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 2rem;
  padding: 1.1rem 1.35rem;
  background: linear-gradient(135deg, var(--surface), var(--brand-50));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.about-figure {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.about-figure + .about-figure {
  padding-left: 1.35rem;
  margin-left: 1.35rem;
  border-left: 1px solid var(--line);
}

.about-figure .svg-icon {
  width: 44px;
  height: 44px;
  padding: 11px;
  border-radius: 12px;
  background-color: var(--surface);
  border: 1px solid var(--line);
}

.about-figure strong {
  display: block;
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
}

.about-figure strong em {
  font-style: normal;
  color: var(--brand-600);
}

.about-figure strong + span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-500);
}

/* Video with layered backplate */
.about-media {
  position: relative;
  isolation: isolate;
}

.about-media::before {
  content: "";
  position: absolute;
  inset: 1.75rem -1.25rem -1.25rem 1.75rem;
  z-index: -1;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--brand-500), #6366f1);
  transform: rotate(2.5deg);
  opacity: 0.9;
}

.about-media::after {
  content: "";
  position: absolute;
  top: -2rem;
  left: -2rem;
  z-index: -1;
  width: 128px;
  height: 128px;
  background-image: radial-gradient(rgba(37, 99, 235, 0.35) 1.5px, transparent 1.6px);
  background-size: 14px 14px;
}

.about-video {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 6px solid var(--surface);
  border-radius: 24px;
  box-shadow: 0 0 0 1px var(--line), var(--shadow-lg);
  background:
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(59, 123, 246, 0.22), transparent 70%),
    linear-gradient(180deg, var(--brand-50), #dfe9ff);
}

.about-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* "Watch our story" pill button */
.about-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem;
  text-align: left;
  background-color: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 36px -12px rgba(11, 19, 36, 0.35);
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease), opacity 0.25s ease;
}

.about-play:hover {
  transform: translate(-50%, -50%) scale(1.04);
}

.about-play-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #ffffff;
  background: linear-gradient(180deg, var(--brand-500), var(--brand-600));
  border-radius: 50%;
  box-shadow: 0 8px 18px -6px rgba(37, 99, 235, 0.6);
}

.about-play-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(59, 123, 246, 0.55);
  animation: aboutPulse 2s ease-out infinite;
}

@keyframes aboutPulse {
  from { transform: scale(1); opacity: 0.9; }
  to { transform: scale(1.8); opacity: 0; }
}

.about-play svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke: none;
}

.about-play .icon-play {
  margin-left: 3px;
}

.about-play-text {
  padding-right: 1rem;
}

.about-play-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--ink-900);
}

.about-play-text small {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-500);
}

.about-play .icon-pause,
.about-media.is-playing .icon-play,
.about-media.is-playing .about-play-text {
  display: none;
}

.about-media.is-playing .icon-pause {
  display: block;
}

.about-media.is-playing .about-play-icon::before {
  animation: none;
}

.about-media.is-playing .about-play {
  opacity: 0;
}

.about-media.is-playing:hover .about-play {
  opacity: 1;
}

/* Badges on the video */
.about-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem 0.4rem 0.4rem;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 12px 30px -12px rgba(11, 19, 36, 0.3);
  animation: phoneFloat 6s ease-in-out infinite;
}

/* Badges sit outside the video, just touching its top / bottom edge */
.about-badge--years {
  bottom: calc(100% - 8px);
  left: 2rem;
}

.about-badge--rating {
  top: calc(100% - 8px);
  right: 2rem;
  animation-delay: -3s;
}

.about-badge .svg-icon,
.about-badge-score {
  width: 32px;
  height: 32px;
  padding: 7px;
  border-radius: 50%;
}

.about-badge-score {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  padding: 0;
  font-size: 0.8rem;
  font-weight: 800;
  color: #b45309;
  background-color: #fef3c7;
}

.about-badge strong,
.about-support-text strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink-900);
}

.about-badge span:not(.about-badge-score),
.about-support-text span {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-500);
}

.about-badge .hero-stars {
  margin: 0 0 2px;
}

/* Support card below the video */
.about-side {
  min-width: 0;
  padding-top: 2.25rem; /* room for the badge above the video */
}

.about-support {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 4rem;
  padding: 0.9rem 1.25rem 0.9rem 0.9rem;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.about-support .svg-icon {
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 12px;
}

.about-support-text {
  min-width: 0;
}

.about-support .text-link {
  margin-left: auto;
}

/* ==================== SCROLL REVEAL (shared) ==================== */
/* JS adds .reveal-ready to [data-reveal-section] blocks, so content never stays hidden without it */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0s);
}

.is-visible [data-reveal] {
  opacity: 1;
  transform: none;
}

.is-visible .cw-card,
.is-visible .feature-card {
  animation: cwCardIn 0.7s var(--ease) backwards;
  animation-delay: var(--d, 0s);
}

@keyframes cwCardIn {
  from { opacity: 0; transform: translateY(24px); }
}


/* ==================== CONSOLIDATED RESPONSIVE RULES ==================== */
@media (max-width: 1100px) {
  .crm-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .wa-chat {
    min-height: 170px;
  }
}

@media (max-width: 1024px) {
  /* Stack the mobile app under the dashboard on tablets and phones */
  .hero-visual {
    grid-template-columns: minmax(0, 1fr);
  }
  .crm-phone {
    justify-self: center;
    margin: 1.5rem 0 0;
  }
  .about-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 4rem;
  }
  .about-side {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
  }
  .cw-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 3.5rem;
  }
  .cw-roles {
    max-width: 640px;
    margin: 0 auto;
  }
  .cw-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cw-card--feature {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  /* Intro unwraps so the help card can drop below the questions */
  .faq-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .faq-intro {
    display: contents;
  }
  .faq-head {
    max-width: 720px;
    margin-bottom: 2.5rem;
  }
  .faq-help {
    order: 2;
    margin-top: 2rem;
  }
}

@media (max-width: 900px) {
  .crm-layout {
    grid-template-columns: 60px minmax(0, 1fr);
  }
  .crm-sidebar {
    align-items: center;
    padding: 0.9rem 0.5rem;
  }
  .crm-brand,
  .side-label,
  .browser-actions {
    display: none;
  }
  .side-item {
    justify-content: center;
    width: 38px;
    padding: 0;
  }
  .side-item.is-active::before {
    left: -11px;
  }
  .crm-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .about {
    padding: 4rem 0;
  }
  .about-inner {
    padding: 0 1rem;
    gap: 3rem;
  }
  .about-features {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.25rem;
  }
  .about-figures {
    grid-template-columns: minmax(0, 1fr);
    padding: 1rem 1.1rem;
  }
  .about-figure + .about-figure {
    padding: 0.9rem 0 0;
    margin: 0.9rem 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .about-figure strong {
    font-size: 1.6rem;
  }
  .about-media::before,
  .about-media::after {
    display: none;
  }
  .about-video {
    border-width: 4px;
    border-radius: 18px;
  }
  .about-play-text small {
    display: none;
  }
  .about-play-icon {
    width: 44px;
    height: 44px;
  }
  /* Compact badges, still touching the video edges */
  .about-side {
    padding-top: 1.5rem;
  }
  .about-badge {
    gap: 0.4rem;
    padding: 0.25rem 0.7rem 0.25rem 0.25rem;
    animation: none;
  }
  .about-badge--years {
    left: 1rem;
  }
  .about-badge--rating {
    right: 1rem;
  }
  .about-badge .svg-icon,
  .about-badge-score {
    width: 26px;
    height: 26px;
  }
  .about-badge .svg-icon {
    padding: 5px;
  }
  .about-badge span:not(.about-badge-score) {
    display: none;
  }
  .about-badge strong {
    font-size: 0.75rem;
  }
  .about-support {
    flex-wrap: wrap;
    margin-top: 2.75rem;
  }
  .about-support .text-link {
    flex-basis: 100%;
    margin-left: 0;
    padding-left: calc(42px + 0.85rem);
  }

  .hero {
    padding: 3rem 0 2rem;
  }
  .hero::before,
  .hero::after {
    left: 0;
    right: 0;
    bottom: 100px;
    border-radius: 0 0 24px 24px;
  }
  .hero-inner {
    padding: 0 1rem;
    gap: 2.5rem;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .hero-btn-primary,
  .hero-btn-secondary {
    width: 100%;
  }
  .hero-trust-proof {
    border-radius: 16px;
  }
  .crm-frame {
    padding: 10px 6px 6px;
    border-radius: 14px;
  }
  .crm-frame::before {
    top: 3px;
    width: 4px;
    height: 4px;
    margin-left: -2px;
  }
  .crm-app {
    border-radius: 8px;
  }
  .monitor-neck {
    width: 64px;
    height: 24px;
  }
  .monitor-base {
    width: 150px;
    height: 7px;
  }
  .wa-chat {
    min-height: 190px;
  }
  .browser-bar {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
  }
  .browser-nav {
    display: none;
  }
  .crm-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .crm-main {
    padding: 0.75rem;
  }
  .crm-search,
  .kan-col[data-col="booked"],
  .ai-studio,
  .side-item[data-mod="calls"],
  .side-item[data-mod="studio"],
  .log-mod,
  .stat-trend {
    display: none;
  }
  /* Sidebar becomes a swipeable module chip row that follows the agent */
  .crm-sidebar {
    flex-direction: row;
    gap: 6px;
    padding: 0.55rem 0.75rem;
    overflow-x: auto;
    scrollbar-width: none;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .crm-sidebar::-webkit-scrollbar {
    display: none;
  }
  .side-label {
    display: inline;
  }
  .side-item {
    flex-shrink: 0;
    width: auto;
    height: 30px;
    gap: 0.35rem;
    padding: 0 0.7rem;
    font-size: 0.7rem;
    border-color: var(--line);
    border-radius: 999px;
  }
  .side-item svg {
    width: 14px;
    height: 14px;
  }
  .side-item.is-active {
    color: #ffffff;
    background-color: var(--brand-600);
    border-color: var(--brand-600);
  }
  .side-item.is-active svg {
    color: #ffffff;
  }
  .side-item.is-active::before {
    display: none;
  }
  .kanban {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .kan-col {
    min-height: 150px;
  }
  .agent-bubble {
    max-width: 160px;
  }

  /* Compact hero mockup on phones: shorter panels and a scaled-down mobile app */
  .hero-visual {
    max-width: 480px;
    margin: 0 auto;
  }
  .crm-main {
    gap: 0.5rem;
    padding: 0.6rem;
  }
  .crm-main-head {
    padding-bottom: 0.5rem;
  }
  .crm-page-title {
    font-size: 0.92rem;
  }
  .agent-status {
    height: 28px;
    padding: 0 9px;
    font-size: 0.64rem;
  }
  .crm-stats {
    gap: 0.45rem;
  }
  .stat-top {
    gap: 0.45rem;
    padding: 0.45rem 0.5rem;
  }
  .stat-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
  }
  .stat-icon svg {
    width: 13px;
    height: 13px;
  }
  .stat-value {
    font-size: 0.86rem;
  }
  .crm-body,
  .crm-col {
    gap: 0.5rem;
  }
  .kan-col {
    min-height: 110px;
  }
  .wa-chat {
    min-height: 150px;
  }
  .agent-log-list {
    min-height: 60px;
  }
  .log-row {
    height: 30px;
  }
  .monitor-neck {
    height: 16px;
  }
  /* Slimmer browser chrome */
  .browser-bar {
    padding: 0.4rem 0.6rem;
  }
  .browser-url {
    height: 24px;
    font-size: 0.66rem;
  }
  .crm-sidebar {
    padding: 0.4rem 0.6rem;
  }
  .side-item {
    height: 26px;
  }
  /* KPIs in one row of four, value-first, no icons */
  .crm-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
  }
  .stat-top {
    padding: 0.4rem 0.45rem;
  }
  .stat-icon {
    display: none;
  }
  .stat-label {
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.56rem;
  }
  .stat-value {
    font-size: 0.8rem;
  }
  /* Deal board columns capped in height */
  .kan-col {
    min-height: 0;
    max-height: 132px;
    overflow: hidden;
  }
  .panel-head {
    padding: 0.45rem 0.65rem;
  }
  /* WhatsApp chat + activity log column is dropped on phones (the phone app shows the chat) */
  .crm-body > .crm-col:last-child {
    display: none;
  }
  /* Phone app floats over the bottom-right corner of the monitor instead of stacking below it */
  .crm-phone {
    position: absolute;
    right: -4px;
    bottom: 0;
    margin: 0;
    zoom: 0.42;
  }
}

@media (max-width: 400px) {
  .crm-phone {
    zoom: 0.38;
  }
  .stat-label {
    font-size: 0.52rem;
  }
  .stat-value {
    font-size: 0.74rem;
  }
}

@media (max-width: 480px) {
  /* Hub nodes become icon-only so they fit narrow screens */
  .cw-node-card {
    padding: 0.25rem;
  }
  .cw-node-label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
/* ==================== WHAT IS CRM (CLEAN REFERENCE DESIGN) ==================== */
.ref-crm-section {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
  background-color: var(--surface);
  border-top: 1px solid var(--line-soft);
}

.ref-crm-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: 4.5rem;
}

/* ==================== LEFT: MATTER & TYPOGRAPHY ==================== */
.ref-crm-left {
  display: flex;
  flex-direction: column;
}

.ref-crm-tag {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0284c7;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.ref-crm-title {
  font-size: clamp(2.3rem, 4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--ink-900);
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.ref-crm-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-600);
  margin-bottom: 1.5rem;
  max-width: 600px;
}

/* Roles Block */
.ref-roles-block {
  margin-bottom: 2.25rem;
}

.ref-roles-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 1rem;
}

.ref-roles-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

.ref-roles-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  counter-reset: role;
}

.ref-role {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem 0.85rem 0.85rem;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(11, 19, 36, 0.04);
  counter-increment: role;
  transition: transform 0.2s var(--ease), border-color 0.2s ease, box-shadow 0.2s ease;
}

.ref-role:last-child {
  grid-column: 1 / -1;
}

.ref-role:hover {
  transform: translateY(-2px);
  border-color: #c7dafc;
  box-shadow: 0 10px 22px -12px rgba(37, 99, 235, 0.35);
}

.ref-role:hover .svg-icon {
  transform: scale(1.06);
}

.ref-role-text {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink-800);
}

/* Faint step number in the corner */
.ref-role::after {
  content: counter(role, decimal-leading-zero);
  position: absolute;
  top: 0.5rem;
  right: 0.7rem;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--ink-400);
  opacity: 0.6;
}

/* Primary Button */
.ref-action-wrap {
  display: flex;
  align-items: center;
}

.ref-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 50px;
  padding: 0 2rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(180deg, var(--brand-500), var(--brand-600));
  border-radius: 999px;
  box-shadow: 0 10px 24px -4px rgba(37, 99, 235, 0.45);
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease;
}

.ref-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -4px rgba(37, 99, 235, 0.55);
}

.ref-btn-primary svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.5;
}

/* ==================== RIGHT: PERSON + FLOATING CRM CARDS ==================== */
.ref-crm-right {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-size: 10px; /* card sizes scale from this */
}

.ref-crm-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 64%;
  height: auto;
}

.rc-card {
  position: absolute;
  z-index: 2;
  padding: 1em 1.1em;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 30px -14px rgba(11, 19, 36, 0.22);
  text-align: left;
  animation: rcFloat 6s ease-in-out infinite;
}

@keyframes rcFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.rc-title {
  font-size: 1.15em;
  font-weight: 800;
  color: var(--ink-900);
  margin-bottom: 0.7em;
}

/* CRM Dashboard */
.rc-dash {
  top: 3%;
  left: 0;
  width: 42%;
}

.rc-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6em;
  padding-bottom: 0.7em;
  margin-bottom: 0.7em;
  border-bottom: 1px solid var(--line-soft);
}

.rc-kpis small,
.rc-sub {
  display: block;
  font-size: 0.8em;
  font-weight: 600;
  color: var(--ink-500);
  white-space: nowrap;
}

.rc-kpis b {
  font-size: 1.25em;
  font-weight: 800;
  color: var(--ink-900);
  white-space: nowrap;
}

.rc-kpis em {
  margin-left: 0.3em;
  font-size: 0.75em;
  font-style: normal;
  font-weight: 700;
  color: #059669;
}

.rc-line {
  width: 100%;
  height: auto;
  margin-top: 0.4em;
  stroke-width: 1.6;
}

/* Feature icon tiles */
.rc-icons {
  top: 0;
  right: 0;
  display: flex;
  gap: 0.8em;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  animation-delay: -1.5s;
}

.rc-icons span {
  display: grid;
  place-items: center;
  width: 4.4em;
  height: 4.4em;
  color: var(--ink-800);
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 22px -12px rgba(11, 19, 36, 0.25);
}

.rc-icons svg {
  width: 2em;
  height: 2em;
  stroke-width: 1.7;
}

.rc-icons span:nth-child(3) svg { color: var(--brand-600); }

/* Sales Report */
.rc-report {
  top: 20%;
  right: 0;
  width: 30%;
  animation-delay: -3s;
}

.rc-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.6em;
  height: 7em;
  padding-top: 0.4em;
  border-bottom: 1px solid var(--line-soft);
}

.rc-bars i {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, #60a5fa, var(--brand-600));
  border-radius: 3px 3px 0 0;
}

.rc-bars i:nth-child(odd) { opacity: 0.7; }

.rc-months {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35em;
  font-size: 0.75em;
  font-weight: 600;
  color: var(--ink-400);
}

/* Tasks */
.rc-tasks {
  top: 50%;
  left: 0;
  width: 29%;
  animation-delay: -2s;
}

.rc-list {
  display: flex;
  flex-direction: column;
  gap: 0.65em;
}

.rc-list li {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.85em;
  font-weight: 600;
  color: var(--ink-700);
  white-space: nowrap;
}

.rc-list li span:nth-child(2) {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rc-list small {
  font-size: 0.85em;
  font-weight: 600;
  color: var(--ink-400);
}

.rc-dot {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 1.5em;
  height: 1.5em;
  color: #ffffff;
  background-color: var(--c);
  border-radius: 4px;
}

.rc-dot svg {
  width: 1em;
  height: 1em;
  stroke-width: 3;
}

/* Recent Activities */
.rc-activity {
  bottom: 22%;
  right: 0;
  width: 28%;
  animation-delay: -4s;
}

.rc-activity .rc-dot {
  border-radius: 50%;
}

@media (prefers-reduced-motion: reduce) {
  .rc-card { animation: none; }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .ref-crm-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 3.5rem;
  }
  .ref-crm-right {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .ref-crm-section {
    padding: 3.5rem 0;
  }
  .ref-crm-container {
    padding: 0 1.25rem;
    gap: 2.5rem;
  }
  .ref-crm-right {
    min-height: 400px;
    font-size: 7.5px;
  }
  .rc-icons,
  .rc-activity {
    display: none;
  }
  .rc-dash { width: 50%; }
  .rc-report { width: 40%; top: 4%; }
  .rc-tasks { width: 38%; }
  .ref-roles-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .ref-btn-primary {
    width: 100%;
  }
}

/* ==================== FEATURES SECTION ==================== */
/* Reuses hero-pill, hero-title, hero-desc, hero-btn-secondary and svg-icon */
.features {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
  background-color: var(--surface-muted);
  border-top: 1px solid var(--line-soft);
}

/* Soft grid + brand glow, echoing the hero backdrop */
.features::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 55% 45% at 50% 0%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 55% 45% at 50% 0%, #000 10%, transparent 75%);
  pointer-events: none;
}

.features-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.features-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.features .hero-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.features .hero-desc {
  margin-bottom: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(11, 19, 36, 0.04);
  transition: transform 0.25s var(--ease), border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: #c7dafc;
  box-shadow: 0 18px 36px -18px rgba(37, 99, 235, 0.35);
}

.feature-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.feature-card .svg-icon {
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 12px;
}

.feature-card:hover .svg-icon {
  transform: scale(1.06);
}

/* Corner arrow chip */
.feature-arrow {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--ink-500);
  background-color: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.25s var(--ease);
}

.feature-arrow svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.25;
}

.feature-card:hover .feature-arrow {
  color: #ffffff;
  background-color: var(--brand-600);
  border-color: var(--brand-600);
  transform: rotate(45deg);
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin-bottom: 0.5rem;
}

.feature-desc {
  flex: 1;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--ink-500);
  margin-bottom: 1.35rem;
}

.feature-card .hero-btn-secondary {
  width: 100%;
  height: 42px;
  font-size: 0.85rem;
  border-radius: 999px;
  background-color: var(--surface-muted);
}

.feature-card:hover .hero-btn-secondary {
  color: var(--brand-700);
  border-color: #c7dafc;
  background-color: var(--brand-50);
}

@media (max-width: 1100px) {
  .features-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .features {
    padding: 3.5rem 0;
  }
  .features-inner {
    padding: 0 1.25rem;
  }
  .features-head {
    margin-bottom: 2.25rem;
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* ==================== LEAD JOURNEY SECTION ==================== */
/* Reuses hero-pill, hero-title and hero-desc; diagram styles below are shared with crm-automation-software.html */
.journey {
  --brand-400: #60a5fa; /* lighter brand blue used by the diagram (not defined globally) */
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
  background-color: var(--surface);
  border-top: 1px solid var(--line-soft);
}

.journey-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 820px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
  text-align: center;
}

.journey .hero-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.journey .hero-desc {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .journey {
    padding: 3.5rem 0;
  }
  .journey-head {
    padding: 0 1.25rem;
  }
}

@keyframes phBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
/* ==================== LEAD JOURNEY DIAGRAM ==================== */
/* Fixed 1480x530 canvas (nodes + SVG lines share coordinates); JS scales it to fit, phones scroll sideways. */
/* Same box as the header (.header-inner): logo left edge to "Schedule a Demo" right edge */
.jf-wrap { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.jf-scroll { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; padding: 0.5rem 0; }
.jf-fit { position: relative; width: 1480px; height: 530px; margin: 0 auto; }
.jf { position: absolute; top: 0; left: 0; width: 1480px; height: 530px; transform-origin: 0 0; }
.jf svg { display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.jf-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.jf-lines path { stroke: #a9c1ee; stroke-width: 2; }
.jf-lines .jf-dot { fill: var(--brand-600); stroke: #fff; stroke-width: 2; }
.jf-lines .tick { fill: #fff; stroke: var(--brand-600); stroke-width: 2.5; }
.jf-lines text { fill: var(--ink-700); stroke: none; font-family: inherit; font-size: 11px; font-weight: 800; text-anchor: middle; }
.jf-lines text.tpl { fill: var(--brand-600); font-size: 9.5px; font-weight: 700; text-anchor: start; }

/* Centred elements: left/top = centre point */
.jf-n { position: absolute; transform: translate(-50%, -50%); }

/* Blue hub circles (CRM, Lead Nurturing, Auto Follow-ups, Re-churn) */
.jf-c { display: grid; place-items: center; width: var(--s); height: var(--s); padding: 6px; text-align: center; font-size: 12px; font-weight: 800; line-height: 1.15; color: #fff; border-radius: 50%; background: linear-gradient(160deg, var(--brand-500), var(--brand-700)); box-shadow: 0 0 0 5px #e0edff, 0 12px 24px -10px rgba(37, 99, 235, 0.55); }
.jf-c.xl { font-size: 22px; letter-spacing: -0.02em; }

/* AI calling nodes (in place of the callers) */
.jf-ai { display: grid; place-items: center; width: var(--s); height: var(--s); color: #fff; border-radius: 50%; background: linear-gradient(160deg, var(--brand-500), var(--brand-700)); box-shadow: 0 0 0 5px #e0edff, 0 12px 24px -10px rgba(37, 99, 235, 0.55); }
.jf-ai::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--brand-400); animation: jfRipple 2.2s ease-out infinite; }
.jf-ai svg { width: 44%; height: 44%; }
.jf-ai em { position: absolute; top: -5px; right: -9px; padding: 1px 6px; font-style: normal; font-size: 9.5px; font-weight: 800; color: var(--brand-700); background-color: #fff; border: 1px solid #d0e1fd; border-radius: 999px; }
.jf-cap { position: absolute; top: calc(100% + 9px); left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 800; color: var(--brand-700); white-space: nowrap; }

/* People / places as white icon circles */
.jf-p { display: grid; place-items: center; width: var(--s); height: var(--s); color: var(--brand-600); background-color: #fff; border: 2px solid var(--brand-500); border-radius: 50%; box-shadow: 0 0 0 5px #e0edff, 0 10px 20px -10px rgba(11, 19, 36, 0.25); }
.jf-p svg { width: 42%; height: 42%; }

/* Small icon bubbles on lines */
.jf-b { display: grid; place-items: center; width: var(--s); height: var(--s); color: var(--brand-600); background-color: #fff; border: 1px solid #d0e1fd; border-radius: 50%; box-shadow: 0 4px 10px -4px rgba(37, 99, 235, 0.35); }
.jf-b svg { width: 50%; height: 50%; }

/* Line labels */
.jf-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; font-size: 10px; font-weight: 700; color: var(--ink-700); white-space: nowrap; background-color: #fff; border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 2px 6px rgba(11, 19, 36, 0.06); }
.jf-chip svg { width: 12px; height: 12px; color: var(--brand-600); }

/* Blue option boxes with white pills */
.jf-box { position: absolute; display: grid; gap: 6px; padding: 7px; background-color: var(--brand-600); border-radius: 12px; box-shadow: 0 12px 24px -12px rgba(37, 99, 235, 0.6); }
.jf-box span { display: flex; align-items: center; justify-content: center; gap: 4px; height: 22px; padding: 0 6px; font-size: 10px; font-weight: 700; color: var(--brand-700); white-space: nowrap; background-color: #fff; border-radius: 6px; }
.jf-box span.hd { color: #fff; background-color: rgba(255, 255, 255, 0.18); }
.jf-box span svg { width: 12px; height: 12px; }

/* Grey schedule panels (Day 1–7, Mon–Sun) */
.jf-list { position: absolute; display: grid; gap: 6px; padding: 8px; background-color: #eef2f8; border: 1px solid var(--line); border-radius: 14px; }
.jf-list div { display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 4px; }
.jf-list small { font-size: 9.5px; font-weight: 700; color: var(--ink-500); }
.jf-list span { display: flex; align-items: center; justify-content: center; height: 28px; font-size: 10.5px; font-weight: 700; color: #fff; white-space: nowrap; background-color: var(--brand-600); border-radius: 7px; animation: jfRow 7s ease-in-out infinite; }
.jf-list div:nth-child(2) span { animation-delay: 1s; }
.jf-list div:nth-child(3) span { animation-delay: 2s; }
.jf-list div:nth-child(4) span { animation-delay: 3s; }
.jf-list div:nth-child(5) span { animation-delay: 4s; }
.jf-list div:nth-child(6) span { animation-delay: 5s; }
.jf-list div:nth-child(7) span { animation-delay: 6s; }

/* Lead source labels */
.jf-src { position: absolute; display: grid; justify-items: center; gap: 3px; width: 52px; font-size: 9px; font-weight: 700; line-height: 1.2; text-align: center; color: var(--ink-600); }
.jf-src svg { width: 14px; height: 14px; color: var(--brand-600); }

/* WhatsApp message mock-ups drawn with shapes */
.jf-phone { position: absolute; padding: 6px 5px; background-color: #fff; border: 2px solid #cbd5e1; border-radius: 12px; box-shadow: 0 10px 22px -10px rgba(11, 19, 36, 0.3); }
.jf-phone .bar { display: flex; align-items: center; gap: 4px; margin-bottom: 5px; }
.jf-phone .bar i { width: 8px; height: 8px; border-radius: 50%; background-color: var(--brand-500); }
.jf-phone .bar b { flex: 1; height: 3px; border-radius: 2px; background-color: #cbd5e1; }
.jf-phone .vid { display: grid; place-items: center; height: var(--vh, 46px); color: #fff; border-radius: 6px; background: linear-gradient(160deg, var(--brand-400), var(--brand-700)); }
.jf-phone .vid svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.jf-phone .ln { height: 4px; margin-top: 5px; border-radius: 2px; background-color: #e2e8f0; }
.jf-phone .wa { position: absolute; right: 5px; bottom: 5px; display: grid; place-items: center; width: 16px; height: 16px; color: #fff; border-radius: 50%; background-color: var(--brand-600); }
.jf-phone .wa svg { width: 9px; height: 9px; }

/* Mockup animations: phone floats, video shines + plays, message lines type in, WhatsApp icon pings */
.jf-phone { animation: jfFloat 5s ease-in-out infinite; }
.jf-phone .bar i { animation: phBlink 1.4s ease-in-out infinite; }
.jf-phone .vid { position: relative; overflow: hidden; }
.jf-phone .vid::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%); transform: translateX(-100%); animation: jfShine 3.2s ease-in-out infinite; }
.jf-phone .vid::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 4px; height: 3px; border-radius: 2px; background-color: #fff; transform-origin: left center; animation: jfProg 4s linear infinite; }
.jf-phone .vid svg { position: relative; animation: jfPlay 1.6s ease-in-out infinite; }
.jf-phone .ln { transform-origin: left center; animation: jfType 4s ease-out infinite; }
.jf-phone .ln:nth-of-type(4) { animation-delay: 0.35s; }
.jf-phone .ln:nth-of-type(5) { animation-delay: 0.7s; }
.jf-phone .wa::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--brand-500); animation: jfPing 1.8s ease-out infinite; }
/* Re-churn campaign card: delivery funnel bars fill on loop */
.jf-camp { position: absolute; font-size: 8px; line-height: 1.25; padding: 0.7em 0.8em 0.85em; background-color: #fff; border: 1px solid var(--line); border-radius: 1.2em; box-shadow: 0 10px 22px -10px rgba(11, 19, 36, 0.3); animation: jfFloat 5s ease-in-out infinite; }
.jf-camp .hd { display: flex; align-items: center; gap: 0.5em; margin-bottom: 0.5em; }
.jf-camp .hd > svg { flex-shrink: 0; width: 2.5em; height: 2.5em; padding: 0.55em; color: #fff; background-color: var(--brand-600); border-radius: 0.6em; }
.jf-camp .hd span { flex: 1; min-width: 0; font-size: 1.05em; font-weight: 800; color: var(--ink-900); }
.jf-camp .hd small { display: block; font-size: 0.78em; font-weight: 600; color: var(--ink-500); }
.jf-camp .live { flex-shrink: 0; display: inline-flex; align-items: center; gap: 0.3em; padding: 0.2em 0.5em; font-style: normal; font-size: 0.8em; font-weight: 800; color: var(--brand-700); background-color: #e0edff; border-radius: 999px; }
.jf-camp .live::before { content: ""; width: 0.6em; height: 0.6em; border-radius: 50%; background-color: var(--brand-600); animation: phBlink 1.2s ease-in-out infinite; }
.jf-camp .st { display: grid; grid-template-columns: 1fr auto; row-gap: 0.25em; margin-top: 0.45em; font-weight: 700; color: var(--ink-600); }
.jf-camp .st b { font-weight: 800; color: var(--ink-900); }
.jf-camp .st i { position: relative; grid-column: 1 / -1; height: 0.45em; overflow: hidden; border-radius: 1em; background-color: #e2e8f0; }
.jf-camp .st i::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: var(--v); border-radius: inherit; background: linear-gradient(90deg, var(--brand-500), var(--brand-600)); transform-origin: left center; animation: jfBar 6s ease-out infinite; }
.jf-camp .st:nth-child(3) i::after { animation-delay: 0.3s; }
.jf-camp .st:nth-child(4) i::after { animation-delay: 0.6s; }
.jf-camp .st:nth-child(5) i::after { animation-delay: 0.9s; }
@keyframes jfBar { 0% { transform: scaleX(0); } 25%, 92% { transform: scaleX(1); } 100% { transform: scaleX(0); } }

@keyframes jfFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes jfShine { 0%, 20% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
@keyframes jfProg { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes jfPlay { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
@keyframes jfType { 0% { transform: scaleX(0); } 20%, 85% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes jfPing { from { transform: scale(1); opacity: 0.9; } to { transform: scale(2.2); opacity: 0; } }

/* Industry switcher: same diagram, industry-specific labels */
.jf-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: -1rem auto 1.75rem; }
.jf-tabs button { display: inline-flex; align-items: center; gap: 0.45rem; height: 40px; padding: 0 1rem; font: inherit; font-size: 0.85rem; font-weight: 700; color: var(--ink-700); background-color: #fff; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.jf-tabs button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--brand-600); }
.jf-tabs button:hover { border-color: #b9cff7; }
.jf-tabs button[aria-selected="true"] { color: #fff; background: linear-gradient(180deg, var(--brand-500), var(--brand-600)); border-color: transparent; box-shadow: 0 8px 18px -8px rgba(37, 99, 235, 0.6); }
.jf-tabs button[aria-selected="true"] svg { color: #fff; }
.jf-tabs button:focus-visible { outline: 3px solid rgba(37, 99, 235, 0.3); outline-offset: 2px; }
.jf-wrap [data-t] { transition: opacity 0.25s ease; }
.jf-wrap.is-swapping [data-t] { opacity: 0; }


@keyframes jfRipple { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.4); opacity: 0; } }
@keyframes jfRow {
  0%, 15%, 100% { background-color: var(--brand-600); box-shadow: none; }
  4%, 11% { background-color: var(--brand-500); box-shadow: 0 0 0 3px #bfd5ff; }
}
/* Mobile: the same diagram, laid out top to bottom (replaces the wide canvas) */
.jv { display: none; max-width: 400px; margin: 0 auto; }
.jv svg { display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.jv-col { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.jv .jf-ai, .jv .jf-box, .jv .jf-list, .jv .jf-phone, .jv .jf-camp { position: relative; flex-shrink: 0; }
.jv .jf-camp { font-size: 9.5px; }
.jv .jf-c, .jv .jf-p, .jv .jf-b { flex-shrink: 0; }
.jv-cap { margin-top: 9px; font-size: 11px; font-weight: 800; color: var(--brand-700); }
.jv-src { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; width: 100%; max-width: 300px; margin-bottom: 10px; }
.jv-src > span { display: grid; justify-items: center; gap: 3px; font-size: 9.5px; font-weight: 700; line-height: 1.2; text-align: center; color: var(--ink-600); }
.jv-src svg { width: 15px; height: 15px; color: var(--brand-600); }

/* Connector segments; a dot travels down the main ones */
.vl { position: relative; display: block; flex-shrink: 0; width: 2px; height: 22px; background-color: #a9c1ee; }
.vl.grow { flex: 1 1 auto; min-height: 22px; }
.vl.flow::after { content: ""; position: absolute; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background-color: var(--brand-600); box-shadow: 0 0 0 2px #fff; animation: jvDot 1.4s linear infinite; }
.hl { flex-shrink: 0; width: 14px; height: 2px; background-color: #a9c1ee; }

/* Two-way split / merge */
.jv-split { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; width: 100%; }
.jv-split::before, .jv-split.merge::after { content: ""; position: absolute; left: calc(25% - 3px); right: calc(25% - 3px); height: 2px; background-color: #a9c1ee; }
.jv-split::before { top: 0; }
.jv-split.merge::after { bottom: 0; }
.jv-split .jf-box { width: 100%; }
.jv-split .jf-box span { font-size: 9.5px; }

.jv-row { display: flex; align-items: center; justify-content: center; }
.jv .jf-chip { flex-shrink: 0; }

/* Re-churn timeline, vertical */
.jv-time { position: relative; display: grid; gap: 9px; padding-left: 24px; list-style: none; }
.jv-time::before { content: ""; position: absolute; top: 6px; bottom: 6px; left: 6px; width: 2px; background-color: var(--brand-600); }
.jv-time li { position: relative; }
.jv-time li::before { content: ""; position: absolute; top: 2px; left: -24px; width: 14px; height: 14px; border-radius: 50%; background-color: #fff; border: 3px solid var(--brand-600); }
.jv-time b { display: block; font-size: 11px; font-weight: 800; line-height: 1.2; color: var(--ink-900); }
.jv-time small { font-size: 9.5px; font-weight: 700; color: var(--brand-600); }

@keyframes jvDot { from { top: -4px; opacity: 1; } 85% { opacity: 1; } to { top: calc(100% - 4px); opacity: 0; } }

@media (max-width: 760px) {
  .jf-scroll { display: none; }
  .jv { display: block; }
  .jf-tabs { margin-top: -0.5rem; }
  .jf-tabs button { height: 36px; padding: 0 0.8rem; font-size: 0.8rem; }
}
@media (max-width: 480px) {
  .jf-wrap { padding: 0 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .jf-ai::before, .jf-list span { animation: none; }
  .jf-phone, .jf-phone *, .jf-phone .vid::before, .jf-phone .vid::after, .jf-phone .wa::after, .jf-camp, .jf-camp .live::before, .jf-camp .st i::after { animation: none !important; }
  .jv .vl::after { display: none; }
  .jf-lines .jf-dot { display: none; }
}

/* ==================== FAQ SECTION ==================== */
/* Reuses hero-pill, hero-title and hero-desc; accordion toggled by JS */
.faq {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
  background-color: var(--surface);
  border-top: 1px solid var(--line-soft);
}

.faq::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(59, 123, 246, 0.1), transparent 70%);
  pointer-events: none;
}

.faq-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.faq-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3rem;
  text-align: center;
}

.faq .hero-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.faq .hero-desc {
  margin-bottom: 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.faq-item {
  background-color: #eef4ff;
  border: 1px solid transparent;
  border-radius: 20px;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
  border-color: #d0e1fd;
}

.faq-item.is-open {
  background-color: var(--surface);
  border-color: var(--line);
  box-shadow: 0 18px 40px -20px rgba(37, 99, 235, 0.3);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.1rem 1.1rem 1.1rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  color: var(--ink-900);
  border-radius: 20px;
}

.faq-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  color: var(--ink-700);
  background-color: var(--surface);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(11, 19, 36, 0.06);
  transition: transform 0.3s var(--ease), color 0.2s ease, background-color 0.2s ease;
}

.faq-icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.25;
}

.faq-question:hover .faq-icon {
  color: var(--brand-600);
}

/* Plus rotates into a close (x) when open */
.faq-item.is-open .faq-icon {
  color: var(--ink-900);
  background-color: #e2eafa;
  box-shadow: none;
  transform: rotate(45deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer p {
  padding: 0 4.5rem 1.35rem 1.5rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ink-500);
}

@media (max-width: 640px) {
  .faq {
    padding: 3.5rem 0;
  }
  .faq-inner {
    padding: 0 1.25rem;
  }
  .faq-head {
    margin-bottom: 2.25rem;
  }
  .faq-question {
    padding: 0.95rem 0.9rem 0.95rem 1.15rem;
    font-size: 0.925rem;
  }
  .faq-icon {
    width: 34px;
    height: 34px;
  }
  .faq-answer p {
    padding: 0 1.15rem 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-answer,
  .faq-icon {
    transition: none;
  }
}

/* ==================== CTA SECTION ==================== */
/* Reuses hero-pill-tag, hero-btn-primary/secondary shapes and hero-stars */
.cta {
  padding: 1rem 0 4rem;
  background-color: var(--surface);
}

.cta-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.cta-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: 2.5rem;
  padding: 2.5rem 3rem;
  color: #ffffff;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(255, 255, 255, 0.18), transparent 60%),
    linear-gradient(135deg, var(--brand-500), var(--brand-700));
  border-radius: 32px;
  box-shadow: 0 30px 60px -30px rgba(37, 99, 235, 0.55);
}

/* Soft grid, echoing the hero backdrop */
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 55% 75% at 80% 40%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 55% 75% at 80% 40%, #000 10%, transparent 75%);
  pointer-events: none;
}

.cta-copy,
.cta-side {
  position: relative;
  z-index: 1;
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem 0.375rem 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-50);
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.cta-pill .hero-pill-tag {
  color: var(--brand-700);
  background: #ffffff;
}

.cta-title {
  margin-bottom: 0.75rem;
  font-size: clamp(1.75rem, 3.2vw, 2.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.cta-desc {
  max-width: 560px;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.cta .hero-btn-primary {
  color: var(--brand-700);
  background: #ffffff;
  box-shadow: 0 10px 24px -6px rgba(11, 19, 36, 0.45);
}

.cta .hero-btn-primary:hover {
  background: var(--brand-50);
  box-shadow: 0 14px 28px -6px rgba(11, 19, 36, 0.55);
}

.cta .hero-btn-secondary {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: none;
}

.cta .hero-btn-secondary:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.45);
}

.cta-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-50);
}

.cta-points li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.cta-points svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
  color: #ffffff;
}

/* Right: glass stats card */
.cta-side {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.cta-stat {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.cta-stat + .cta-stat {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.cta-stat-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}

.cta-stat-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.9;
}

.cta-stat strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.cta-stat span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Stacked layouts: stats become one compact row instead of a tall card */
@media (max-width: 960px) {
  .cta-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
    padding: 2.25rem 2rem;
  }
  .cta-side {
    flex-direction: row;
    gap: 0;
    padding: 1rem;
  }
  .cta-stat {
    flex: 1;
    min-width: 0;
  }
  .cta-stat + .cta-stat {
    padding: 0 0 0 1rem;
    margin-left: 1rem;
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
  }
}

@media (max-width: 640px) {
  .cta {
    padding: 0.5rem 0 3rem;
  }
  .cta-inner {
    padding: 0 1rem;
  }
  .cta-card {
    gap: 1.5rem;
    padding: 1.75rem 1.25rem;
    border-radius: 24px;
  }
  .cta-actions > a {
    flex: 1 1 100%;
  }
  .cta-points {
    display: none;
  }
  .cta-side {
    padding: 0.85rem 0.5rem;
  }
  .cta-stat {
    flex-direction: column;
    gap: 0.15rem;
    text-align: center;
  }
  .cta-stat + .cta-stat {
    padding-left: 0.5rem;
    margin-left: 0.5rem;
  }
  .cta-stat-icon {
    display: none;
  }
  .cta-stat strong {
    font-size: 1.05rem;
  }
  .cta-stat span {
    display: block;
    font-size: 0.7rem;
    line-height: 1.3;
  }
}

/* ==================== HEADING BADGE (shared .ph-badge design) ==================== */
.ph-badge {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0.9rem 0.3rem 0.3rem;
  margin-bottom: 1.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-700, #334155);
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 999px;
  box-shadow: var(--shadow-md, 0 4px 12px rgba(15, 23, 42, 0.08));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ph-badge b {
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(180deg, var(--brand-500, #3b7bf6), var(--brand-600, #2563eb));
  border-radius: 999px;
}

/* ==================== SEO SECTIONS (page design) ==================== */
.kw-section, .alt-section, .rel-section {
  --kw-accent: #2563eb;
  --kw-accent-ink: color-mix(in srgb, #2563eb 82%, #000);
  --kw-tint: color-mix(in srgb, #2563eb 9%, #fff);
  --kw-tint-2: color-mix(in srgb, #2563eb 16%, #fff);
  --kw-ink: var(--ink-900, #0b1324);
  --kw-text: var(--ink-600, #475569);
  --kw-line: var(--line, #e6ebf2);
  position: relative;
  padding: 6rem 0;
  background-color: var(--surface, #fff);
}
.kw-inner, .rel-inner, .alt-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* Badge: same pill as the page headers (ph-badge) */
.kw-badge {
  display: inline-flex; width: fit-content; max-width: 100%; align-items: center; gap: 0.6rem;
  padding: 0.3rem 0.9rem 0.3rem 0.3rem; margin-bottom: 1.4rem; font-size: 0.8rem; font-weight: 600;
  color: var(--ink-700, #334155); background-color: rgba(255, 255, 255, 0.85); border: 1px solid var(--kw-line);
  border-radius: 999px; box-shadow: var(--shadow-md, 0 8px 24px rgba(11, 19, 36, 0.06));
}
.kw-badge b {
  padding: 0.2rem 0.6rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: #fff; background: linear-gradient(180deg, var(--brand-500, #3b7bf6), var(--brand-600, #2563eb)); border-radius: 999px;
}

/* ---------- Keyword section: copy + product panel ---------- */
.kw-section .kw-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 4.5rem; align-items: center; }
.kw-section.kw-flip .kw-copy { order: 2; }
.kw-copy h2 { margin: 0 0 1.1rem; font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.035em; color: var(--kw-ink); }
.kw-lead { margin: 0 0 1.75rem; font-size: 1.05rem; line-height: 1.75; color: var(--kw-text); }
.kw-lead strong { color: var(--kw-ink); }
.kw-list { display: grid; gap: 1.1rem; margin: 0; padding: 0; list-style: none; }
.kw-item { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 0.9rem; align-items: start; }
.kw-check { display: grid; place-items: center; width: 28px; height: 28px; margin-top: 1px; color: var(--kw-accent-ink); background: var(--kw-tint-2); border-radius: 8px; }
.kw-check svg { width: 15px; height: 15px; stroke-width: 3; }
.kw-item h3 { margin: 0 0 0.25rem; font-size: 1rem; font-weight: 700; line-height: 1.4; color: var(--kw-ink); }
.kw-item p { margin: 0; font-size: 0.92rem; line-height: 1.65; color: var(--kw-text); }
.kw-item a, .alt-card a { font-weight: 700; color: var(--kw-accent-ink); text-decoration: none; }

.kw-visual { position: relative; padding: 2rem 1rem 3rem; }
.kw-visual::before { content: ""; position: absolute; inset: 8% 4%; background: radial-gradient(closest-side, var(--kw-tint-2), transparent); filter: blur(10px); }
.kw-panel { position: relative; overflow: hidden; background: var(--surface, #fff); border: 1px solid var(--kw-line); border-radius: 22px; box-shadow: var(--shadow-lg, 0 24px 60px -12px rgba(11, 19, 36, 0.18)); }
.kw-panel-head { display: flex; align-items: center; gap: 0.8rem; padding: 1rem 1.25rem; color: #fff; background: linear-gradient(135deg, var(--kw-accent), var(--kw-accent-ink)); }
.kw-panel-logo { display: grid; place-items: center; width: 38px; height: 38px; background: rgba(255, 255, 255, 0.18); border-radius: 11px; }
.kw-panel-logo svg { width: 19px; height: 19px; }
.kw-panel-head strong { display: block; font-size: 0.95rem; font-weight: 700; }
.kw-panel-head small { display: block; font-size: 0.72rem; opacity: 0.8; }
.kw-live { display: inline-flex; align-items: center; gap: 0.4rem; margin-left: auto; padding: 0.25rem 0.6rem; font-size: 0.7rem; font-weight: 700; color: var(--kw-accent-ink); background: #fff; border-radius: 999px; }
.kw-live i { width: 6px; height: 6px; background: #22c55e; border-radius: 50%; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2); }
.kw-ico { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; color: var(--kw-accent-ink); background: var(--kw-tint); border-radius: 10px; }
.kw-ico svg { width: 17px; height: 17px; }
.kw-panel-rows { margin: 0; padding: 0.4rem 0; list-style: none; }
.kw-panel-rows li { display: flex; align-items: center; gap: 0.85rem; padding: 0.8rem 1.25rem; border-bottom: 1px solid var(--line-soft, #f0f3f8); }
.kw-panel-rows li:last-child { border-bottom: 0; }
.kw-row-txt { flex: 1; min-width: 0; font-size: 0.88rem; font-weight: 600; color: var(--kw-ink); }
.kw-panel-rows em { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.72rem; font-style: normal; font-weight: 700; color: #15803d; }
.kw-panel-rows em svg { width: 13px; height: 13px; stroke-width: 3; }
.kw-panel-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin: 0; padding: 1.1rem; list-style: none; }
.kw-panel-tiles li { display: flex; flex-direction: column; gap: 0.6rem; padding: 1rem; background: var(--surface-muted, #f7f9fc); border: 1px solid var(--line-soft, #f0f3f8); border-radius: 14px; }
.kw-panel-tiles b { font-size: 0.85rem; font-weight: 700; line-height: 1.35; color: var(--kw-ink); }
.kw-panel-tiles em { width: fit-content; padding: 0.15rem 0.5rem; font-size: 0.68rem; font-style: normal; font-weight: 700; color: #15803d; background: #dcfce7; border-radius: 999px; }
.kw-panel-foot { display: flex; justify-content: space-between; gap: 1rem; padding: 0.85rem 1.25rem; font-size: 0.75rem; color: var(--ink-500, #64748b); background: var(--surface-muted, #f7f9fc); border-top: 1px solid var(--line-soft, #f0f3f8); }
.kw-panel-foot b { color: var(--kw-accent-ink); }
.kw-toast { position: absolute; bottom: 0; left: 0; display: flex; align-items: center; gap: 0.7rem; max-width: 280px; padding: 0.75rem 1rem 0.75rem 0.75rem; background: var(--surface, #fff); border: 1px solid var(--kw-line); border-radius: 16px; box-shadow: var(--shadow-lg, 0 24px 60px -12px rgba(11, 19, 36, 0.18)); }
.kw-toast-ico { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; color: #fff; background: linear-gradient(180deg, #22c55e, #16a34a); border-radius: 10px; }
.kw-toast-ico svg { width: 17px; height: 17px; stroke-width: 3; }
.kw-toast b { display: block; font-size: 0.82rem; font-weight: 700; line-height: 1.3; color: var(--kw-ink); }
.kw-toast small { display: block; font-size: 0.72rem; color: var(--ink-500, #64748b); }

/* ---------- Related solutions: one rounded card with tinted link chips ---------- */
.rel-section { padding-top: 2rem; }
.rel-card { padding: 2.25rem; background: var(--surface, #fff); border: 1px solid var(--kw-line); border-radius: 28px; box-shadow: 0 18px 50px -30px rgba(11, 19, 36, 0.25); }
.rel-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.75rem; }
.rel-top .kw-badge { margin-bottom: 0.9rem; }
.rel-top h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; color: var(--kw-ink); }
.rel-all { flex-shrink: 0; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.65rem 1.1rem; font-size: 0.88rem; font-weight: 700; color: var(--kw-ink); text-decoration: none; background: var(--surface, #fff); border: 1px solid var(--kw-line); border-radius: 12px; box-shadow: var(--shadow-md, 0 8px 24px rgba(11, 19, 36, 0.06)); transition: border-color 0.2s ease, color 0.2s ease; }
.rel-all:hover { color: var(--brand-600, #2563eb); border-color: var(--brand-600, #2563eb); }
.rel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.rel-grid a { display: flex; align-items: center; gap: 0.9rem; height: 100%; padding: 0.95rem 1rem; text-decoration: none; background: var(--kw-tint); border: 1px solid transparent; border-radius: 16px; transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.rel-grid a:hover { background: var(--surface, #fff); border-color: color-mix(in srgb, var(--kw-accent) 40%, #fff); transform: translateY(-2px); }
.rel-grid a:focus-visible { outline: 3px solid color-mix(in srgb, var(--kw-accent) 40%, transparent); outline-offset: 2px; }
.rel-ico { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; color: var(--kw-accent-ink); background: var(--surface, #fff); border-radius: 12px; box-shadow: 0 2px 6px rgba(11, 19, 36, 0.06); }
.rel-ico svg { width: 19px; height: 19px; }
.rel-txt { flex: 1; min-width: 0; }
.rel-txt strong { display: block; font-size: 0.95rem; font-weight: 700; color: var(--kw-ink); }
.rel-txt-desc { display: block; margin-top: 0.15rem; font-size: 0.8rem; line-height: 1.45; color: var(--kw-text); }
.rel-arrow { flex-shrink: 0; color: var(--kw-accent); transition: transform 0.2s ease; }
.rel-grid a:hover .rel-arrow { transform: translateX(3px); }

/* Breadcrumb in the hero, above the badge */
.crumbs { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 0.4rem; margin: 0 0 1.1rem; padding: 0; list-style: none; font-size: 0.85rem; color: var(--ink-500, #64748b); }
.crumbs li { display: inline-flex; align-items: center; gap: 0.4rem; }
.crumbs li + li::before { content: "›"; color: var(--ink-400, #94a3b8); }
.crumbs a { font-weight: 600; color: #2563eb; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current="page"] { font-weight: 600; color: #0b1324; }

/* Contextual links in body copy: no underline, keep the paragraph colour */
main p a.ctx-link { color: inherit; font-weight: 600; text-decoration: none; }

@media (max-width: 1000px) {
  .kw-section .kw-inner { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .kw-section.kw-flip .kw-copy { order: 0; }
  .kw-visual { max-width: 520px; width: 100%; margin: 0 auto; }
  .rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .kw-section, .rel-section, .alt-section { padding: 3.5rem 0; }
  .rel-section { padding-top: 1rem; }
  .kw-inner, .rel-inner, .alt-inner { padding: 0 1rem; }
  .kw-visual { padding: 1rem 0 3.5rem; }
  .kw-toast { left: 0.5rem; right: auto; }
  .rel-card { padding: 1.5rem 1.1rem; border-radius: 22px; }
  .rel-top { flex-direction: column; align-items: flex-start; }
  .rel-grid, .alt-grid { grid-template-columns: minmax(0, 1fr); }
  .alt-card:last-child:nth-child(3n + 1) { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .rel-grid a, .rel-arrow { transition: none; }
}
/* Hero badge sits inside the H1 (keyword first); keep it looking like the normal badge */
main h1 .ph-badge.h1-badge {
  display: flex; width: fit-content; max-width: 100%; margin: 0 auto 1.4rem;
  font-size: 0.8rem; font-weight: 600; line-height: 1.4; letter-spacing: 0; text-transform: none;
  -webkit-text-fill-color: currentColor;
}
main h1 .ph-badge.h1-badge b { display: inline; }
main h1 .ph-badge.h1-badge b::before { content: attr(data-label); }
/* ==================== END SEO SECTIONS ==================== */
