/* Further Education brochure page — reuses homepage look, adds page-specific pieces */

/* ---------- Static trusted-by logo strip ---------- */
.fe-logo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
}

.fe-logo-slot {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.fe-logo-slot img {
  max-width: 82%;
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.88;
  filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
  .fe-logo-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }
  .fe-logo-slot { height: 44px; }
  .fe-logo-slot img { max-height: 26px; max-width: 90%; }

  .fe-pipeline { display: none; }
}

/* ---------- Centered savings badge ---------- */
.fe-savings-wrap {
  max-width: 1050px;
  margin: 0 auto;
  padding: 26px 20px 4px;
  display: flex;
  justify-content: center;
}

.fe-savings-wrap .topa-feature-b2b-note { justify-content: center; }

.fe-savings-wrap .topa-feature-b2b-note-pill {
  font-size: 13.5px;
  padding: 13px 20px;
}

.fe-savings-wrap .topa-feature-b2b-note-icon:last-child { display: inline-flex; }

/* ---------- Use case rows (pipeline + phone) ---------- */
.fe-usecase-intro {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: clamp(24px, 3.5vw, 34px);
}

.fe-usecase-intro .topa-feature-desc { max-width: 640px; }

.fe-usecase-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(28px, 4.5vw, 48px);
  align-items: center;
}

.fe-usecase-row .topa-feature-mock.topa-vm-mock-wrap {
  max-width: 300px;
  margin: 0 auto;
}

.fe-usecase-row .topa-vm-mock-inner {
  display: flex;
  flex-direction: column;
  padding: 10px;
  min-height: 0;
}

@media (max-width: 900px) {
  .fe-usecase-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ---------- SMS conversation mock (class-scoped clone of homepage styles) ---------- */
.fe-sms .topa-sms-mock-wrap {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  height: 460px;
  max-height: min(460px, 58vh);
  min-height: 0;
}

.fe-sms .topa-sms-mock-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
  flex-shrink: 0;
}

.fe-sms .topa-sms-mock-avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.fe-sms .topa-sms-mock-contact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.fe-sms .topa-sms-mock-name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.2;
}

.fe-sms .topa-sms-mock-sub {
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.2;
}

.fe-sms .topa-sms-mock-thread {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px 4px 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

.fe-sms .topa-sms-mock-thread::-webkit-scrollbar { display: none; }

.fe-sms .topa-sms-bubble {
  max-width: 90%;
  border-radius: 16px;
  font-size: 11.5px;
  line-height: 1.45;
  flex-shrink: 0;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin: 0;
  padding: 0 12px;
  border-width: 0;
  box-shadow: none;
  transform: translateY(10px) scale(0.98);
  pointer-events: none;
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    max-height 0.6s ease,
    margin 0.6s ease,
    padding 0.6s ease;
}

.fe-sms .topa-sms-mock-thread.sms-mock-ready .topa-sms-bubble.is-visible {
  opacity: 1;
  max-height: 320px;
  margin-top: 8px;
  padding: 9px 12px;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.fe-sms .topa-sms-mock-thread.sms-mock-ready > .topa-sms-bubble.is-visible:first-child,
.fe-sms .topa-sms-typing.is-visible + .topa-sms-bubble.is-visible {
  margin-top: 0;
}

.fe-sms .topa-sms-bubble--out.is-visible { box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25); }
.fe-sms .topa-sms-bubble--in.is-visible { border-width: 1px; }

.fe-sms .topa-sms-typing {
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: 16px;
  border-bottom-right-radius: 4px;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0 14px;
  transform: translateY(10px) scale(0.98);
  pointer-events: none;
  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    max-height 0.45s ease,
    margin 0.45s ease,
    padding 0.45s ease;
}

.fe-sms .topa-sms-typing.is-visible {
  opacity: 1;
  max-height: 40px;
  margin-top: 8px;
  padding: 10px 14px;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.fe-sms .topa-sms-mock-thread > .topa-sms-typing.is-visible:first-child { margin-top: 0; }

.fe-sms .topa-sms-typing span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  animation: fe-sms-typing-dot 1.2s ease-in-out infinite;
}

.fe-sms .topa-sms-typing span:nth-child(2) { animation-delay: 0.15s; }
.fe-sms .topa-sms-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes fe-sms-typing-dot {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  .fe-sms .topa-sms-bubble,
  .fe-sms .topa-sms-typing {
    transition: none;
    animation: none;
  }
  .fe-sms .topa-sms-typing span {
    animation: none;
    opacity: 0.85;
  }
}

.fe-sms .topa-sms-bubble p { margin: 0; }

.fe-sms .topa-sms-bubble--out {
  align-self: flex-end;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
}

.fe-sms .topa-sms-bubble--in {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  border-bottom-left-radius: 4px;
}

.fe-sms .topa-sms-time {
  display: block;
  margin-top: 4px;
  font-size: 9px;
  opacity: 0.55;
  text-align: right;
}

.fe-sms .topa-sms-bubble--in .topa-sms-time { text-align: left; }

@media (max-width: 900px) {
  .fe-sms .topa-sms-mock-wrap {
    height: 400px;
    max-height: min(400px, 52vh);
  }
  .fe-sms .topa-sms-bubble { font-size: 11px; }
}

/* ---------- Pipeline (kanban) diagram ---------- */
.fe-pipeline {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(12, 11, 28, 0.88) 0%, rgba(8, 7, 27, 0.62) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 24px rgba(0, 0, 0, 0.18);
}

.fe-pipeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px 12px;
}

.fe-pipeline-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.fe-pipeline-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  color: #86efac;
  white-space: nowrap;
}

.fe-pipeline-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.8);
  animation: fe-live-pulse 1.8s ease-in-out infinite;
}

@keyframes fe-live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.fe-pipeline-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.fe-pipe-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
  min-width: 0;
}

.fe-pipe-col--win {
  border-color: rgba(52, 211, 153, 0.32);
  background: rgba(16, 185, 129, 0.05);
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.08);
}

.fe-pipe-col-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.fe-pipe-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.fe-pipe-dot--green { background: #34d399; box-shadow: 0 0 8px rgba(52, 211, 153, 0.7); }
.fe-pipe-dot--purple { background: #a855f7; box-shadow: 0 0 8px rgba(168, 85, 247, 0.7); }
.fe-pipe-dot--amber { background: #fbbf24; box-shadow: 0 0 8px rgba(251, 191, 36, 0.7); }
.fe-pipe-dot--grey { background: rgba(255, 255, 255, 0.35); }
.fe-pipe-dot--blue { background: #60a5fa; box-shadow: 0 0 8px rgba(96, 165, 250, 0.7); }

.fe-pipe-col-title {
  flex: 1;
  min-width: 0;
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.25;
  white-space: nowrap;
}

.fe-pipe-col-badge {
  flex-shrink: 0;
  padding: 2px 7px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  color: #86efac;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.4);
  white-space: nowrap;
}

.fe-pipe-col-badge--muted {
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.fe-pipe-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 11px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 9, 26, 0.85);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.fe-pipe-avatar {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.fe-pipe-card:nth-child(odd) .fe-pipe-avatar {
  background: linear-gradient(135deg, #2563eb, #60a5fa);
}

.fe-pipe-card-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.fe-pipe-card-name {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.25;
  min-width: 0;
}

.fe-pipe-card-tag {
  font-size: 9px;
  font-weight: 600;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.5);
}

.fe-pipe-card-tag--green { color: #86efac; }
.fe-pipe-card-tag--purple { color: #d8b4fe; }
.fe-pipe-card-tag--amber { color: #fcd34d; }
.fe-pipe-card-tag--blue { color: #93c5fd; }

@media (max-width: 560px) {
  .fe-pipeline-cols { grid-template-columns: 1fr; }
}

/* ---------- CRM feature grid ---------- */
.fe-crm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 22px;
}

@media (max-width: 640px) {
  .fe-crm-grid { grid-template-columns: 1fr; }
}

.fe-tick-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 4px 0;
}

.fe-tick {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: rgba(99, 38, 162, 0.22);
  border: 1px solid rgba(168, 85, 247, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c084fc;
  margin-top: 1px;
}

.fe-tick svg {
  width: 11px;
  height: 11px;
}

.fe-tick-text {
  flex: 1;
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
  min-width: 0;
}

/* ---------- Integrations strip ---------- */
.fe-integrations {
  margin-top: clamp(22px, 3vw, 30px);
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(12, 11, 28, 0.88) 0%, rgba(8, 7, 27, 0.62) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 24px rgba(0, 0, 0, 0.18);
}

.fe-integrations-label {
  margin: 0 0 12px;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.fe-integrations-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
}

.fe-integrations-grid .fe-logo-slot { height: 44px; }
.fe-integrations-grid .fe-logo-slot img { max-height: 22px; }

.fe-integrations-grid .fe-logo-slot img[alt="Meta"] {
  max-height: 18px;
}

.fe-integrations-grid .fe-logo-slot img[alt="Indeed"] {
  max-height: 14px;
}

.fe-integrations-divider {
  height: 1px;
  margin: 12px 0 0;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.38), rgba(244, 114, 182, 0.28), transparent);
}

@media (max-width: 768px) {
  .fe-integrations-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Pricing ---------- */
.fe-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
  align-items: stretch;
}

@media (max-width: 900px) {
  .fe-pricing-grid { grid-template-columns: 1fr; }
}

.fe-price-frame {
  position: relative;
  padding: 1px;
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
}

.fe-price-frame--popular {
  padding: 3px;
  background: linear-gradient(135deg, #ff8866 0%, #ff66d4 24%, #c084fc 48%, #a855f7 62%, #60a5fa 100%);
  box-shadow:
    0 12px 40px rgba(168, 85, 247, 0.24),
    0 0 56px rgba(255, 102, 212, 0.12);
}

.fe-price-card {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(24px, 3.5vw, 34px);
  border-radius: 19px;
  background: rgba(10, 9, 26, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  min-width: 0;
}

.fe-price-popular-ribbon {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  box-shadow: 0 6px 18px rgba(168, 85, 247, 0.45);
  white-space: nowrap;
}

.fe-price-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.fe-price-amount {
  font-size: clamp(34px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(135deg, #c084fc, #f472b6, #fb923c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fe-price-amount span {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.55);
}

.fe-price-headline {
  display: inline-block;
  width: fit-content;
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(96, 165, 250, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.45);
  color: #dbeafe;
}

.fe-price-card--popular .fe-price-headline {
  background: rgba(244, 114, 182, 0.22);
  border-color: rgba(244, 114, 182, 0.45);
  color: #fbcfe8;
}

.fe-price-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: -6px;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.5);
  color: #bbf7d0;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
}

.fe-price-whatsapp svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: #25D366;
}

.fe-price-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.fe-sub-list {
  list-style: none;
  margin: -2px 0 2px;
  padding: 0 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fe-sub-list li {
  position: relative;
  padding-left: 14px;
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.55);
}

.fe-sub-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.65);
}

.fe-price-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid rgba(168, 85, 247, 0.4);
  background: rgba(99, 38, 162, 0.22);
  color: #f3e8ff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.fe-price-cta:hover {
  border-color: rgba(244, 114, 182, 0.5);
  background: rgba(99, 38, 162, 0.34);
  box-shadow: 0 6px 20px rgba(99, 38, 162, 0.3);
  transform: translateY(-1px);
}

.fe-price-cta svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.fe-pricing-footnote {
  margin: 14px auto 0;
  max-width: 640px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Section spacing helpers ---------- */
.fe-section-gap { margin-top: clamp(10px, 2vw, 18px); }

/* ---------- Print / PDF ----------
   Scoped to the scrolling brochure page only. The paginated document at
   /further-education/document/ carries its own print rules (fe-document.css). */
@page { margin: 0; }

@media print {
  html, body:not(.fe-doc) { background: #05060c !important; }

  body:not(.fe-doc) .fe-sms .topa-sms-bubble {
    opacity: 1 !important;
    max-height: none !important;
    margin-top: 8px !important;
    padding: 9px 12px !important;
    transform: none !important;
    transition: none !important;
    break-inside: avoid;
  }

  body:not(.fe-doc) .fe-sms .topa-sms-bubble--in { border-width: 1px !important; }

  body:not(.fe-doc) .fe-sms .topa-sms-mock-wrap {
    height: auto !important;
    max-height: none !important;
  }

  body:not(.fe-doc) .fe-sms .topa-sms-mock-thread { overflow: visible !important; }

  body:not(.fe-doc) .fe-sms .topa-sms-typing { display: none !important; }

  body:not(.fe-doc) .fe-sms .topa-feature-orbit { display: none !important; }

  /* Flex/grid items can't honour break-inside in Chromium; stack as blocks. */
  body:not(.fe-doc) .fe-usecase-row { display: block !important; }
  body:not(.fe-doc) .fe-usecase-row > * + * { margin-top: 28px; }

  body:not(.fe-doc) .topa-features-section,
  body:not(.fe-doc) .topa-feature-card {
    display: block !important;
  }

  body:not(.fe-doc) .topa-features-section > * + * { margin-top: clamp(28px, 4vw, 40px); }
  body:not(.fe-doc) .topa-feature-card > * + * { margin-top: 14px; }

  body:not(.fe-doc) .fe-usecase-row .fe-sms { break-before: page; }

  /* Ribbon overhangs the card top and gets clipped at page boundaries. */
  body:not(.fe-doc) .fe-price-popular-ribbon {
    position: static;
    transform: none;
    align-self: center;
    margin-bottom: 6px;
  }

  body:not(.fe-doc) .topa-ft-wrap { break-inside: avoid; }

  body:not(.fe-doc) .topa-feature-card,
  body:not(.fe-doc) .topa-combo-card,
  body:not(.fe-doc) .fe-price-frame,
  body:not(.fe-doc) .fe-pipeline,
  body:not(.fe-doc) .fe-sms,
  body:not(.fe-doc) .fe-sms .topa-feature-visual-scene,
  body:not(.fe-doc) .fe-sms .topa-feature-mock,
  body:not(.fe-doc) .xyasda-logo-panel {
    break-inside: avoid;
  }
}
