/* ==================== BASE & HERO SYSTEM ==================== */
*, *::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 { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; border: none; background: none; cursor: pointer; }

/* ==================== SHELL ==================== */
.ph {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 5rem 0 5.5rem;
  background-color: var(--surface-muted);
}

.ph-container {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.ph-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 3.5rem;
  align-items: center;
}

.ph-grid.is-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

.ph-center {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.ph-center .ph-lead { margin-left: auto; margin-right: auto; }
.ph-center .ph-ctas,
.ph-center .ph-points,
.ph-center .ph-proof { justify-content: center; }

/* Soft brand mesh + fading grid behind the hero */
.ph-mesh::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 12% 18%, rgba(59, 123, 246, 0.14), transparent 38%),
    radial-gradient(circle at 88% 22%, rgba(99, 102, 241, 0.12), transparent 40%),
    radial-gradient(circle at 70% 95%, rgba(14, 165, 233, 0.10), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, var(--surface-muted) 100%);
}

.ph-mesh::after {
  content: "";
  position: absolute;
  inset: 0;
  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: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
}

/* Typography & Hero Bits */
.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);
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  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), var(--brand-600));
  border-radius: 999px;
}

.ph-title {
  font-size: clamp(2.3rem, 4.6vw, 3.35rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--ink-900);
  margin-bottom: 1.25rem;
}

.ph-hl { color: inherit; background: none; }

.ph-lead {
  max-width: 560px;
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--ink-600);
}

/* Shared UI Pills / Titles */
.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;
}

/* ==================== CTAs ==================== */
.ph-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem;
  margin-top: 2rem;
}

.ph-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 50px;
  padding: 0 1.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 12px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.ph-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s var(--ease);
}

.ph-btn:hover svg { transform: translateX(3px); }

.ph-btn.solid {
  color: #ffffff;
  background: linear-gradient(180deg, var(--brand-500), var(--brand-600));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 10px 24px -4px rgba(37, 99, 235, 0.45);
}

.ph-btn.solid:hover {
  background: linear-gradient(180deg, var(--brand-600), var(--brand-700));
  transform: translateY(-2px);
}

.ph-btn.ghost {
  color: var(--ink-800);
  background-color: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.ph-btn.ghost:hover { border-color: #cfe0fb; transform: translateY(-2px); }

.ph-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin-top: 1.75rem;
  list-style: none;
}

.ph-points li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-600);
}

.ph-points li::before {
  content: "";
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat,
    linear-gradient(180deg, #34d399, #10b981);
}

/* ==================== MOCKUP PRIMITIVES ==================== */
.ph-stage { position: relative; }

.ph-browser {
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.ph-browser-bar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  height: 40px;
  padding: 0 1rem;
  background-color: #f8fafc;
  border-bottom: 1px solid var(--line);
}

.ph-dots { display: flex; gap: 6px; }
.ph-dots i { width: 10px; height: 10px; border-radius: 50%; background-color: #e2e8f0; }
.ph-dots i:nth-child(1) { background-color: #fca5a5; }
.ph-dots i:nth-child(2) { background-color: #fcd34d; }
.ph-dots i:nth-child(3) { background-color: #86efac; }

.ph-url {
  flex: 1;
  max-width: 320px;
  margin: 0 auto;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-500);
  background-color: #ffffff;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.ph-url svg { width: 11px; height: 11px; }

.ph-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.95rem 0.7rem 0.7rem;
  background-color: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  white-space: nowrap;
}

.ph-card strong { display: block; font-size: 0.8rem; font-weight: 700; color: var(--ink-900); line-height: 1.3; }
.ph-card span:not(.ph-ico):not(.ph-pill):not(.ph-av) { display: block; font-size: 0.72rem; color: var(--ink-500); line-height: 1.35; }

.ph-ico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--ic, var(--brand-600));
  background-color: var(--ib, #e0edff);
}

.ph-ico svg, svg.ph-i {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ph-av {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 0.66rem;
  font-weight: 800;
  color: #ffffff;
  background: var(--av, linear-gradient(135deg, #60a5fa, #2563eb));
}

.ph-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.55rem;
  font-size: 0.66rem;
  font-weight: 700;
  border-radius: 999px;
  color: var(--tc, var(--brand-700));
  background-color: var(--tb, #e0edff);
}

/* ==================== ANIMATION ==================== */
.ph-in { animation: phUp 0.85s var(--ease) both; }
.ph-in.d1 { animation-delay: 0.08s; }
.ph-in.d2 { animation-delay: 0.16s; }
.ph-in.d3 { animation-delay: 0.24s; }
.ph-in.d4 { animation-delay: 0.36s; }

.ph-float { animation: phFloat 6s ease-in-out infinite; }
.ph-float.f2 { animation-duration: 7s; animation-delay: -2s; }

@keyframes phUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

@keyframes phFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ==================== SALES DASHBOARD MOCKUP ==================== */
.sc-app { display: grid; grid-template-columns: 1fr; gap: 0.9rem; padding: 1.1rem; background-color: #fbfcfe; }
.sc-head { display: flex; align-items: center; justify-content: space-between; }
.sc-head h3 { font-size: 0.95rem; font-weight: 800; color: var(--ink-900); letter-spacing: -0.01em; }
.sc-head small { display: block; font-size: 0.7rem; font-weight: 600; color: var(--ink-500); }
.sc-range { font-size: 0.68rem; font-weight: 700; color: var(--ink-600); padding: 0.3rem 0.65rem; border: 1px solid var(--line); border-radius: 8px; background-color: #fff; }

.sc-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.65rem; }
.sc-kpi { padding: 0.75rem 0.85rem; background-color: #fff; border: 1px solid var(--line); border-radius: 12px; }
.sc-kpi span { font-size: 0.66rem; font-weight: 600; color: var(--ink-500); }
.sc-kpi strong { display: block; margin: 0.15rem 0 0.2rem; font-size: 1.1rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink-900); }
.sc-kpi em { font-style: normal; font-size: 0.64rem; font-weight: 700; color: #059669; }

.sc-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0.65rem; }
.sc-panel { padding: 0.85rem; background-color: #fff; border: 1px solid var(--line); border-radius: 12px; }
.sc-panel h4 { margin-bottom: 0.7rem; font-size: 0.74rem; font-weight: 700; color: var(--ink-800); }

.sc-bars { display: flex; align-items: flex-end; gap: 7px; height: 118px; padding-bottom: 2px; border-bottom: 1px dashed var(--line); }
.sc-bars i {
  flex: 1;
  height: var(--h);
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, #93c5fd, #dbeafe);
  transform-origin: bottom;
  animation: scGrow 1.1s var(--ease) both;
  animation-delay: calc(var(--n) * 0.07s + 0.4s);
}
.sc-bars i.on { background: linear-gradient(180deg, var(--brand-500), var(--brand-600)); }
.sc-months { display: flex; gap: 7px; margin-top: 0.35rem; }
.sc-months span { flex: 1; text-align: center; font-size: 0.56rem; font-weight: 600; color: var(--ink-400); }

.sc-deals { display: grid; gap: 0.55rem; }
.sc-deal { display: flex; align-items: center; gap: 0.55rem; }
.sc-deal b { display: block; font-size: 0.7rem; font-weight: 700; color: var(--ink-800); }
.sc-deal small { font-size: 0.62rem; color: var(--ink-500); }
.sc-deal .ph-pill { margin-left: auto; }
.sc-deal .ph-av { width: 26px; height: 26px; font-size: 0.58rem; }

/* Floating cards */
.sc-won { top: 18%; left: -2.5rem; animation: scToast 6s var(--ease) infinite; }
.sc-won .ph-ico { --ic: #059669; --ib: #d1fae5; }
.sc-target { bottom: -3.25rem; right: -1.5rem; flex-direction: column; align-items: flex-start; gap: 0.35rem; padding: 0.9rem 1rem; }
.sc-ring { position: relative; width: 64px; height: 64px; }
.sc-ring svg { width: 64px; height: 64px; transform: rotate(-90deg); }
.sc-ring circle { fill: none; stroke-width: 7; }
.sc-ring .track { stroke: #e0edff; }
.sc-ring .val { stroke: url(#scGrad); stroke-linecap: round; stroke-dasharray: 163; stroke-dashoffset: 29; animation: scRing 1.6s var(--ease) 0.8s both; }
.sc-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 0.8rem; font-weight: 800; color: var(--ink-900); }

.sc-stage::before {
  content: "";
  position: absolute;
  inset: 8% -6% -8% 10%;
  z-index: -1;
  border-radius: 40px;
  background: linear-gradient(135deg, rgba(59, 123, 246, 0.18), rgba(99, 102, 241, 0.12));
  transform: rotate(3deg);
}

@keyframes scGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes scRing { from { stroke-dashoffset: 163; } to { stroke-dashoffset: 29; } }
@keyframes scToast {
  0%, 8% { opacity: 0; transform: translateY(12px) scale(0.92); }
  14%, 80% { opacity: 1; transform: none; }
  90%, 100% { opacity: 0; transform: translateY(-8px) scale(0.96); }
}

/* ==================== PAGE SECTIONS SHARED ==================== */
.sa-sec { position: relative; padding: 6.5rem 0; overflow: hidden; }
.sa-sec.white { background-color: var(--surface); }
.sa-wrap { position: relative; max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.sa-sec h2, .sa-sec h3, .sa-sec h4 { color: var(--ink-900); }
.sa-kicker { display: inline-block; margin-bottom: 0.9rem; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-600); }
.sa-h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.035em; }
.sa-lead { margin-top: 1rem; font-size: 1.05rem; line-height: 1.7; color: var(--ink-600); }
.sa-center { max-width: 720px; margin: 0 auto 3.5rem; text-align: center; }

.rv-on [data-rv] { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.rv-on [data-rv].in { opacity: 1; transform: none; }

/* ==================== SECTION 1: UNIFIED 360° WORKSPACE ==================== */
.sa-single-source {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.15fr);
  gap: 4.5rem;
  align-items: center;
}

.sa-unified-hub {
  position: relative;
  padding: 1.5rem;
  background: linear-gradient(145deg, #ffffff, #f7faff);
  border: 1px solid #d5e3fc;
  border-radius: 28px;
  box-shadow: 0 25px 60px -20px rgba(37, 99, 235, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.hub-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.1rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--line-soft);
}

.hub-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hub-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 0.9rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  box-shadow: 0 6px 14px -4px rgba(37, 99, 235, 0.5);
}

.hub-info strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink-900);
}

.hub-info span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-500);
}

.hub-stage-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.35rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #047857;
  background-color: #d1fae5;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
}

.hub-stage-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #059669;
}

/* Channels Connected Strip */
.hub-channels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.9rem;
  margin-bottom: 1.25rem;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.hub-channels-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-400);
}

.hub-channel-icons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hub-channel-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.2rem 0.55rem;
  font-size: 0.66rem;
  font-weight: 700;
  border-radius: 6px;
}

.hub-channel-chip.wa { color: #15803d; background-color: #dcfce7; }
.hub-channel-chip.call { color: #2563eb; background-color: #eff6ff; }
.hub-channel-chip.mail { color: #b45309; background-color: #fef3c7; }

.hub-channel-chip svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

/* Timeline Feed */
.hub-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background-color: #ffffff;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(11, 19, 36, 0.03);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.timeline-item:hover {
  transform: translateX(4px);
  border-color: #c7dafc;
}

.timeline-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 10px;
  color: var(--t-fg, var(--brand-600));
  background-color: var(--t-bg, #eff6ff);
}

.timeline-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.timeline-body {
  flex: 1;
  min-width: 0;
}

.timeline-body-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.timeline-body-head strong {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink-900);
}

.timeline-body-head time {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--ink-400);
}

.timeline-body p {
  font-size: 0.72rem;
  color: var(--ink-600);
  line-height: 1.4;
}

/* AI Action Banner */
.hub-ai-action {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.1rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(90deg, #f0f7ff, #faf5ff);
  border: 1px dashed #c084fc;
  border-radius: 14px;
}

.hub-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.2rem 0.55rem;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(135deg, #9333ea, var(--brand-600));
  border-radius: 999px;
  flex-shrink: 0;
}

.hub-ai-badge svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
}

.hub-ai-text {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-800);
}

.hub-floating-pill {
  position: absolute;
  bottom: -1.2rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.45rem 1rem;
  background-color: #ffffff;
  border: 1px solid #cfe0fb;
  border-radius: 999px;
  box-shadow: 0 12px 28px -8px rgba(37, 99, 235, 0.35);
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--brand-700);
  white-space: nowrap;
}

.hub-floating-pill .ping-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}

/* ==================== SECTION 2: FOUR WAYS BENTO GRID ==================== */
.sa-four-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.sa-four-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 2px 4px rgba(11, 19, 36, 0.03);
  transition: transform 0.25s var(--ease), border-color 0.25s ease, box-shadow 0.25s ease;
}

.sa-four-card:hover {
  transform: translateY(-4px);
  border-color: #c7dafc;
  box-shadow: 0 20px 40px -15px rgba(37, 99, 235, 0.15);
}

.sa-four-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.sa-four-num {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--brand-600);
  line-height: 1;
}

.sa-four-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.3rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  color: var(--c-fg, var(--brand-700));
  background-color: var(--c-bg, #eff6ff);
}

.sa-four-chip.c-blue    { --c-fg: #1d4ed8; --c-bg: #eff6ff; }
.sa-four-chip.c-emerald { --c-fg: #047857; --c-bg: #ecfdf5; }
.sa-four-chip.c-amber   { --c-fg: #b45309; --c-bg: #fffbeb; }
.sa-four-chip.c-purple  { --c-fg: #7e22ce; --c-bg: #faf5ff; }

.sa-four-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink-900);
  margin-bottom: 0.75rem;
  letter-spacing: -0.015em;
}

.sa-four-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-600);
  margin-bottom: 1.5rem;
  flex: 1;
}

.sa-four-benefit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-top: 1rem;
  border-top: 1px dashed var(--line-soft);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-800);
}

.sa-four-benefit svg {
  width: 15px;
  height: 15px;
  color: #059669;
  stroke-width: 2.5;
  fill: none;
  stroke: currentColor;
}

/* ---------- 3. Sales loop flowchart ---------- */
.sa-loop-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: center; }
.sa-loop { position: relative; width: min(100%, 520px); aspect-ratio: 1; margin: 0 auto 2.5rem; container-type: inline-size; }
.sa-loop > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sa-loop .ring { fill: none; stroke: #c9d9f5; stroke-width: 2; }
.sa-loop .orbit { transform-origin: 250px 250px; animation: saSpin 12s linear infinite; }
.sa-loop .dot { fill: #fff; stroke: var(--brand-600); stroke-width: 4; }
.sa-loop .halo { fill: rgba(59, 123, 246, 0.18); }

/* hub */
.sa-hubc { position: absolute; top: 50%; left: 50%; width: 34%; aspect-ratio: 1; translate: -50% -50%; display: grid; place-items: center; text-align: center; border-radius: 50%; background-color: #fff; border: 1px solid #dbe5f5; box-shadow: 0 0 0 2.4cqw rgba(59, 123, 246, 0.08), 0 0 0 4.8cqw rgba(59, 123, 246, 0.04), 0 24px 44px -16px rgba(37, 99, 235, 0.4); z-index: 1; }
.sa-hubc img { width: 11cqw; height: auto; margin: 0 auto 1.2cqw; }
.sa-hubc b { display: block; font-size: clamp(0.66rem, 2.9cqw, 0.95rem); font-weight: 800; color: var(--ink-800); line-height: 1.2; }
.sa-hubc small { display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 1cqw; padding: 0.5cqw 1.8cqw; font-size: clamp(0.54rem, 2cqw, 0.68rem); font-weight: 700; color: var(--brand-700); background-color: #eef4ff; border-radius: 99px; }
.sa-hubc small::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background-color: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.3); }

/* nodes: sit exactly on the r=200 ring, 60deg apart */
/* icon tile is centred on the ring; label sits inside the ring, facing the hub */
.sa-lnode { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; width: 11cqw; aspect-ratio: 1; z-index: 2; }
.sa-lcard { position: relative; width: 100%; height: 100%; }
.sa-lcard i { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 3.2cqw; background-color: #e7efff; color: var(--brand-600); box-shadow: 0 0 0 1.2cqw #fff, 0 10px 22px -10px rgba(37, 99, 235, 0.35); animation: saIconOn 12s var(--d, 0s) infinite; transition: transform 0.3s var(--ease); }
.sa-lcard:hover i { transform: translateY(-3px); }
.sa-lcard i svg { width: 5cqw; height: 5cqw; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sa-lcard span { position: absolute; top: calc(100% + 2.4cqw); left: 50%; translate: -50% 0; width: max-content; max-width: 22cqw; padding: 0.4cqw 1.2cqw; font-size: clamp(0.6rem, 2.3cqw, 0.78rem); font-weight: 700; line-height: 1.25; text-align: center; color: var(--ink-800); background-color: #fff; border-radius: 1.2cqw; }
.sa-lnode:nth-child(3) { --x: 50%;    --y: 10%; --d: -0.3s; }
.sa-lnode:nth-child(4) { --x: 84.64%; --y: 30%; --d: -10.3s; }
.sa-lnode:nth-child(5) { --x: 84.64%; --y: 70%; --d: -8.3s; }
.sa-lnode:nth-child(6) { --x: 50%;    --y: 90%; --d: -6.3s; }
.sa-lnode:nth-child(7) { --x: 15.36%; --y: 70%; --d: -4.3s; }
.sa-lnode:nth-child(8) { --x: 15.36%; --y: 30%; --d: -2.3s; }
.sa-loop:hover .orbit, .sa-loop:hover .sa-lcard i { animation-play-state: paused; }

@keyframes saIconOn {
  0%, 22%, 100% { background-color: #e7efff; color: var(--brand-600); }
  4%, 14% { background-color: var(--brand-600); color: #fff; box-shadow: 0 0 0 1.2cqw #fff, 0 0 0 2.2cqw rgba(59, 123, 246, 0.18), 0 14px 26px -10px rgba(37, 99, 235, 0.55); }
}
.rv-on .sa-loop .sa-lnode { opacity: 0; scale: 0.6; transition: opacity 0.5s ease, scale 0.6s var(--ease); }
.rv-on .sa-loop.in .sa-lnode { opacity: 1; scale: 1; }
.sa-loop.in .sa-lnode:nth-child(4) { transition-delay: 0.15s; }
.sa-loop.in .sa-lnode:nth-child(5) { transition-delay: 0.3s; }
.sa-loop.in .sa-lnode:nth-child(6) { transition-delay: 0.45s; }
.sa-loop.in .sa-lnode:nth-child(7) { transition-delay: 0.6s; }
.sa-loop.in .sa-lnode:nth-child(8) { transition-delay: 0.75s; }

.sa-steps { display: grid; gap: 0.9rem; counter-reset: sastep; }
.sa-steps li { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 0.9rem; padding: 1rem 1.1rem; list-style: none; background-color: #fff; border: 1px solid var(--line); border-radius: 16px; transition: transform 0.3s var(--ease), border-color 0.3s ease; }
.sa-steps li:hover { transform: translateX(6px); border-color: #cfe0fb; }
.sa-steps li::before { counter-increment: sastep; content: counter(sastep, decimal-leading-zero); display: grid; place-items: center; width: 40px; height: 40px; font-size: 0.8rem; font-weight: 800; color: var(--brand-700); background-color: #e0edff; border-radius: 12px; }
.sa-steps h3 { font-size: 0.98rem; font-weight: 700; }
.sa-steps p { margin-top: 0.2rem; font-size: 0.86rem; line-height: 1.55; color: var(--ink-500); }
/* ==================== 4. CONVENTIONAL VS TRANQUIL CRM ==================== */
.sa-vs-matrix {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.75rem;
  max-width: 1120px;
  margin: 0 auto;
  align-items: stretch;
}

/* Comparison Cards */
.sa-vs-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.25rem;
  border-radius: 24px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}

/* Left Card: Conventional */
.sa-vs-card.conventional {
  background-color: #ffffff;
  border: 1px dashed #cbd5e1;
  box-shadow: 0 4px 16px -8px rgba(15, 23, 42, 0.05);
}

/* Right Card: Tranquil Sales CRM */
.sa-vs-card.tranquil {
  background: linear-gradient(175deg, #ffffff 0%, #f4f8ff 100%);
  border: 2px solid #bfdbfe;
  box-shadow: 0 20px 45px -15px rgba(37, 99, 235, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.sa-vs-badge-top {
  position: absolute;
  top: -12px;
  right: 24px;
  background: linear-gradient(135deg, var(--brand-600), #4f46e5);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.sa-vs-card-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line-soft);
}

.sa-vs-icon-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
}

.sa-vs-card.conventional .sa-vs-icon-badge {
  background-color: #fee2e2;
  color: #ef4444;
}

.sa-vs-card.tranquil .sa-vs-icon-badge {
  background-color: #dbeafe;
  color: var(--brand-600);
}

.sa-vs-icon-badge svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.sa-vs-card-head h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink-900);
  line-height: 1.2;
}

.sa-vs-card-head p {
  font-size: 0.78rem;
  color: var(--ink-500);
  margin-top: 2px;
}

/* Comparison Item List */
.sa-vs-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  list-style: none;
  flex: 1;
}

.sa-vs-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.sa-vs-item-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
  margin-top: 2px;
}

.sa-vs-item-icon.cross {
  background-color: #fef2f2;
  color: #dc2626;
  border: 1px solid #fee2e2;
}

.sa-vs-item-icon.check {
  background-color: #eff6ff;
  color: var(--brand-600);
  border: 1px solid #dbeafe;
}

.sa-vs-item-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sa-vs-item strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ink-900);
  margin-bottom: 2px;
}

.sa-vs-item p {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-600);
  margin: 0;
}

/* Persona Section */
.sa-who-title {
  text-align: center;
  margin-top: 4.5rem;
  margin-bottom: 2rem;
}

.sa-who-title h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink-900);
}

.sa-who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.sa-who-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.85rem;
  border-radius: 20px;
  background-color: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(11, 19, 36, 0.03);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, border-color 0.25s ease;
}

.sa-who-card:hover {
  transform: translateY(-4px);
  border-color: #cfe0fb;
  box-shadow: 0 16px 36px -12px rgba(37, 99, 235, 0.12);
}

.sa-who-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}

.sa-who-avatar-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  flex-shrink: 0;
}

.sa-who-avatar-icon.role-rep {
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  color: #0284c7;
}

.sa-who-avatar-icon.role-mgr {
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  color: #4f46e5;
}

.sa-who-avatar-icon.role-cxo {
  background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
  color: #9333ea;
}

.sa-who-avatar-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.sa-who-header strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--ink-900);
}

.sa-who-header span {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--brand-600);
}

.sa-who-card p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink-600);
  margin-bottom: 1.25rem;
  flex: 1;
}

.sa-who-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--line-soft);
  font-size: 0.78rem;
  font-weight: 700;
  color: #047857;
}

.sa-who-stat svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
}

@media (max-width: 900px) {
  .sa-vs-matrix { grid-template-columns: 1fr; gap: 2rem; }
  .sa-who-grid { grid-template-columns: 1fr; }
}
.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;
  background: none;
  border: none;
  cursor: pointer;
}

.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;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.faq-question:hover .faq-icon {
  color: var(--brand-600);
}

.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);
}

/* ==================== RESPONSIVE RULES ==================== */
@media (max-width: 1024px) {
  .ph { padding: 4rem 0 5.5rem; }
  .ph-grid, .ph-grid.is-even { grid-template-columns: 1fr; gap: 3rem; }
  .ph-copy { max-width: 680px; }
  .ph-stage { width: 100%; max-width: 640px; margin: 0 auto; }
  .sc-won { left: -1rem; }
  .sc-target { right: -0.75rem; }
  .sa-single-source, .sa-loop-wrap { grid-template-columns: 1fr; gap: 3rem; }
  .sa-single-source > div:first-child { max-width: 680px; }
  .sa-unified-hub { width: 100%; max-width: 640px; margin: 0 auto; }
  .sa-four-grid { grid-template-columns: 1fr; }
  .sa-sec { padding: 5.5rem 0; }
}

@media (min-width: 641px) and (max-width: 900px) {
  .sa-who-grid { grid-template-columns: repeat(2, 1fr); }
  .sa-who-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .sa-sec { padding: 4.5rem 0; }
  .sa-wrap { padding: 0 1.25rem; }
  .sa-four-card { padding: 1.5rem; }
  .sa-vs-head { display: none; }
  .sa-vs-row { grid-template-columns: 1fr; gap: 0.4rem; margin-bottom: 1.25rem; }
  .sa-vs-row .arrow { display: none; }
  .sa-who { grid-template-columns: 1fr; }
  .sa-lnode { width: 12.5cqw; }
  .sa-lcard span { max-width: 24cqw; }
  .hub-floating-pill { position: static; margin-top: 1rem; justify-content: center; }

  /* Hero */
  .ph { padding: 3rem 0 4.5rem; }
  .ph-container { padding: 0 1.25rem; }
  .ph-badge { flex-wrap: wrap; font-size: 0.74rem; line-height: 1.4; border-radius: 16px; }
  .ph-title { font-size: clamp(2rem, 9vw, 2.5rem); }
  .ph-lead { font-size: 1rem; }
  .ph-ctas { flex-direction: column; align-items: stretch; }
  .ph-ctas .ph-btn { width: 100%; }
  .ph-points { gap: 0.6rem 1rem; }

  /* Hero dashboard mockup */
  .sc-app { padding: 0.8rem; gap: 0.7rem; }
  .sc-kpis { gap: 0.45rem; }
  .sc-kpi { padding: 0.6rem; }
  .sc-kpi strong { font-size: 0.95rem; }
  .sc-body { grid-template-columns: 1fr; }
  .sc-bars { height: 90px; }
  .sc-won { top: 0.75rem; left: 50%; translate: -50% 0; padding: 0.55rem 0.8rem 0.55rem 0.55rem; }
  .sc-won .ph-ico { width: 30px; height: 30px; }
  .sc-target { right: 0.5rem; bottom: -2.75rem; padding: 0.7rem 0.8rem; }
  .sc-ring, .sc-ring svg { width: 52px; height: 52px; }
  .sc-stage::before { inset: 6% -3% -5% 6%; border-radius: 28px; }

  /* Unified hub */
  .sa-single-source > div:first-child .ph-btn { width: 100%; }
  .sa-unified-hub { padding: 1rem; border-radius: 20px; }
  .hub-topbar { flex-wrap: wrap; gap: 0.75rem; }
  .hub-profile { min-width: 0; }
  .hub-info { min-width: 0; }
  .hub-channels { flex-wrap: wrap; gap: 0.5rem; }
  .hub-channel-icons { flex-wrap: wrap; gap: 0.4rem; }
  .timeline-item { padding: 0.75rem; gap: 0.7rem; }
  .timeline-item:hover { transform: none; }
  .timeline-body-head { flex-wrap: wrap; gap: 0.15rem 0.5rem; }
  .timeline-body p { overflow-wrap: anywhere; }
  .hub-ai-action { flex-direction: column; align-items: flex-start; gap: 0.5rem; }

  /* Four ways */
  .sa-center { margin-bottom: 2.5rem; }
  .sa-four-grid { gap: 1rem; }
  .sa-four-card h3 { font-size: 1.12rem; }
  .sa-four-card p { font-size: 0.9rem; }
  .sa-four-benefit { align-items: flex-start; }
  .sa-four-benefit svg { flex-shrink: 0; margin-top: 2px; }

  /* Sales loop */
  .sa-loop { margin-bottom: 3rem; }
  .sa-steps li { grid-template-columns: 34px 1fr; gap: 0.75rem; padding: 0.9rem; }
  .sa-steps li::before { width: 34px; height: 34px; border-radius: 10px; }
  .sa-steps li:hover { transform: none; }

  /* Comparison + personas */
  .sa-vs-card { padding: 1.5rem 1.25rem; border-radius: 20px; }
  .sa-vs-badge-top { right: 16px; }
  .sa-vs-card-head { gap: 0.7rem; }
  .sa-vs-list { gap: 1rem; }
  .sa-who-title { margin-top: 3rem; margin-bottom: 1.5rem; }
  .sa-who-title h3 { font-size: 1.2rem; }
  .sa-who-card { padding: 1.4rem; }
}

@media (max-width: 400px) {
  .sc-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sc-kpi span { font-size: 0.6rem; }
  .sc-kpi strong { font-size: 0.85rem; }
  .sc-kpi em { font-size: 0.58rem; }
  .sc-won { display: none; }
  .hub-avatar { width: 38px; height: 38px; border-radius: 12px; }
}

@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) {
  .sa-loop .orbit, .sa-lcard, .sa-lcard i,.sa-vs-row .arrow::before, .faq-answer, .faq-icon { animation: none; transition: none; }
}


/* ==================== 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; right: 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(--surface, #fff); border: 1px solid var(--kw-line); 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: #fff; background: var(--kw-accent); 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 0 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 ==================== */
