*, *::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%; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-600);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background-color: currentColor;
}

.btn-lg {
  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;
  border-radius: 12px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-lg svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.5;
  transition: transform 0.2s var(--ease);
}

.btn-lg:hover svg { transform: translateX(3px); }

.btn-lg.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);
}

.btn-lg.solid:hover {
  background: linear-gradient(180deg, var(--brand-600), var(--brand-700));
  transform: translateY(-2px);
}

svg.ico {
  display: block;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==================== SPLIT HERO SECTION ==================== */
.ed-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 2.5rem 0 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(59, 123, 246, 0.07), transparent 40%),
    linear-gradient(180deg, var(--brand-50) 0%, var(--surface-muted) 100%);
}

/* Light grid lines in the background (same as the home page hero) */
.ed-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  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 70% 65% at 50% 40%, #000 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 65% at 50% 40%, #000 20%, transparent 80%);
}

.ed-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 3rem;
  min-height: 600px;
}

/* Copy */
.ed-copy {
  max-width: 620px;
  align-self: start;
  padding: 3rem 0 4rem;
}

.ed-copy h1 {
  font-size: clamp(2.3rem, 5vw, 50px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--ink-900);
  margin-bottom: 1.25rem;
}

.ed-copy h1 .hl { color: var(--brand-600); }

.ed-copy p {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--ink-600);
  max-width: 540px;
}

/* CTAs */
.ed-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.25rem;
}

.ed-play {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-700);
  transition: color 0.2s ease;
}

.ed-play-btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: var(--brand-600);
  background-color: #ffffff;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.5), 0 10px 22px -8px rgba(11, 19, 36, 0.35);
  transition: transform 0.2s var(--ease);
}

.ed-play-btn svg { width: 18px; height: 18px; fill: currentColor; margin-left: 2px; }
.ed-play:hover { color: var(--brand-600); }
.ed-play:hover .ed-play-btn { transform: scale(1.06); }

/* ==================== HERO VISUAL ==================== */
.ed-visual {
  position: relative;
  align-self: end;
  display: flex;
  justify-content: center;
  height: 100%;
  min-height: 560px;
}

/* Soft backdrop circle behind the student */
.ed-visual::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -60px;
  width: min(520px, 100%);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(180deg, #dbe8ff 0%, var(--brand-50) 100%);
  z-index: -1;
}

.ed-student {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 580px;
  object-fit: contain;
  object-position: bottom center;
}

/* Floating stat cards */
.ed-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem 0.7rem 0.7rem;
  border-radius: 14px;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.ed-card-top { top: 3rem; left: 0; }
.ed-card-bottom { bottom: 5rem; right: 0; }

.ed-card-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(180deg, var(--brand-500), var(--brand-600));
  flex-shrink: 0;
}

.ed-card-icon svg { width: 20px; height: 20px; }
.ed-card strong { display: block; font-size: 0.825rem; font-weight: 700; color: var(--ink-900); line-height: 1.4; }
.ed-card span { font-size: 0.775rem; line-height: 1.4; color: var(--ink-500); }

.js .ed-card-top { animation: edUp 0.8s var(--ease) 0.4s forwards, edFloat 5s ease-in-out 1.2s infinite; }
.js .ed-card-bottom { animation: edUp 0.8s var(--ease) 0.5s forwards, edFloat 5s ease-in-out 1.8s infinite; }

/* Entrance animation */
.js .ed-anim {
  opacity: 0;
  transform: translateY(18px);
  animation: edUp 0.8s var(--ease) forwards;
}

.js .ed-anim.d1 { animation-delay: 0.08s; }
.js .ed-anim.d2 { animation-delay: 0.16s; }
.js .ed-anim.d3 { animation-delay: 0.24s; }
.js .ed-anim.d4 { animation-delay: 0.32s; }

@keyframes edUp {
  to { opacity: 1; transform: none; }
}

@keyframes edFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ==================== WHAT IS TRANQUIL (split intro + feature grid) ==================== */
.sec { padding: 6rem 0; }
.sec-white { background-color: var(--surface); }

.wi-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  align-items: center;
  gap: 4rem;
}

.wi-intro h2 {
  font-size: clamp(1.9rem, 3.6vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink-900);
  margin-bottom: 1rem;
}

.wi-intro p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-600);
}

.wi-intro p + p { margin-top: 0.875rem; }
.wi-intro .btn-lg { margin-top: 2rem; }

.wi-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 2.5rem;
}

.wi-item-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
  border-radius: 50%;
  color: var(--brand-600);
  background-color: var(--brand-50);
  box-shadow: 0 0 0 6px rgba(239, 245, 255, 0.6);
}

.wi-item-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wi-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink-900);
  margin-bottom: 0.4rem;
}

.wi-item p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-500);
}

/* ==================== FEATURES (accordion + animated mockup) ==================== */
.ft-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 3.5rem;
}

/* Compact so the whole section fits in one screen */
.sec.ft { padding: 3.5rem 0; }

.ft-head .eyebrow { margin-bottom: 0.6rem; }

.ft-head h2 {
  font-size: clamp(1.7rem, 3vw, 34px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink-900);
  margin-bottom: 0.75rem;
}

.ft-head p {
  font-size: 0.975rem;
  line-height: 1.6;
  color: var(--ink-600);
}

.ft-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.ft-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background-color: var(--surface);
  transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.ft-item:hover { border-color: #cfdcf3; }

.ft-item.is-active {
  border-color: transparent;
  background: linear-gradient(180deg, var(--brand-500), var(--brand-600));
  box-shadow: 0 16px 32px -12px rgba(37, 99, 235, 0.55);
}

.ft-item h3 { font-size: inherit; font-weight: inherit; }

.ft-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.55rem 0.9rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  color: var(--ink-900);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.3s ease;
}

.ft-btn:focus-visible { outline: 3px solid rgba(37, 99, 235, 0.3); outline-offset: -3px; border-radius: 14px; }
.ft-item.is-active .ft-btn { color: #ffffff; }

.ft-ico {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  color: var(--brand-600);
  background-color: var(--brand-50);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.ft-ico svg.i { width: 16px; height: 16px; }

.ft-item.is-active .ft-ico { color: #ffffff; background-color: rgba(255, 255, 255, 0.18); }

.ft-name { flex: 1; min-width: 0; }

.ft-chev {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--ink-400);
  transition: transform 0.35s var(--ease), color 0.3s ease;
}

.ft-item.is-active .ft-chev { color: #ffffff; transform: rotate(180deg); }

/* Smooth height reveal for the description */
.ft-desc {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}

.ft-item.is-active .ft-desc { grid-template-rows: 1fr; }
.ft-desc > div { overflow: hidden; }

.ft-desc p {
  padding: 0 0.9rem 0.8rem calc(0.9rem + 32px + 0.75rem);
  font-size: 0.825rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

/* Autoplay progress bar (its animationend advances to the next feature) */
.ft-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.6);
  transform: scaleX(0);
  transform-origin: left;
}

.ft.is-auto .ft-item.is-active .ft-progress { animation: ftProgress 7s linear forwards; }
.ft.is-paused .ft-item.is-active .ft-progress { animation-play-state: paused; }
@keyframes ftProgress { to { transform: scaleX(1); } }

/* Mockup window */
.ft-visual { position: relative; }

.ft-visual::before {
  content: "";
  position: absolute;
  inset: -8% -6%;
  z-index: -1;
  border-radius: 40px;
  background: radial-gradient(60% 60% at 60% 50%, rgba(59, 123, 246, 0.22), rgba(59, 123, 246, 0) 70%);
  filter: blur(10px);
}

.mk {
  position: relative;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mk-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 42px;
  padding: 0 1rem;
  background-color: #fbfcfe;
  border-bottom: 1px solid var(--line-soft);
}

.mk-dots { display: flex; gap: 6px; }
.mk-dots i { width: 10px; height: 10px; border-radius: 50%; background-color: #e2e8f0; }

.mk-url {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex: 1;
  max-width: 300px;
  height: 24px;
  margin: 0 auto;
  padding: 0 0.75rem;
  border-radius: 6px;
  background-color: var(--line-soft);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ink-500);
  white-space: nowrap;
  overflow: hidden;
}

.mk-url svg.i { width: 11px; height: 11px; flex-shrink: 0; }

.mk-body { position: relative; height: 480px; }

.mk-panel {
  position: absolute;
  inset: 0;
  padding: 1.35rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.45s var(--ease), transform 0.55s var(--ease), visibility 0s linear 0.45s;
}

.mk-panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.45s var(--ease), transform 0.55s var(--ease), visibility 0s;
}

.mk-panel.is-active .ma {
  animation: maIn 0.6s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 85ms + 120ms);
}

@keyframes maIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

svg.i {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Mockup building blocks */
.mp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.mp-head-l { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.mp-title { font-size: 0.95rem; font-weight: 700; line-height: 1.3; color: var(--ink-900); }
.mp-sub { font-size: 0.75rem; line-height: 1.35; color: var(--ink-500); }

.mp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(180deg, var(--brand-500), var(--brand-600));
  white-space: nowrap;
}

.mp-btn svg.i { width: 13px; height: 13px; stroke-width: 2.5; }

.av {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
  background-color: var(--c, var(--brand-500));
}

.av.sm { width: 26px; height: 26px; font-size: 0.62rem; }
.av.lg { width: 42px; height: 42px; font-size: 0.82rem; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--brand-600);
  background-color: var(--brand-50);
  white-space: nowrap;
}

.tag.green  { color: #15803d; background-color: #dcfce7; }
.tag.amber  { color: #b45309; background-color: #fef3c7; }
.tag.purple { color: #7e22ce; background-color: #f3e8ff; }
.tag.slate  { color: var(--ink-600); background-color: var(--line-soft); }
.tag svg.i  { width: 11px; height: 11px; stroke-width: 3; }

.m-rows { display: flex; flex-direction: column; gap: 0.55rem; }

.m-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background-color: var(--surface);
}

.m-grow { flex: 1; min-width: 0; }
.m-grow > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-name { font-size: 0.8rem; font-weight: 700; line-height: 1.3; color: var(--ink-900); }
.m-meta { font-size: 0.72rem; line-height: 1.35; color: var(--ink-500); }
.m-time { font-size: 0.7rem; color: var(--ink-400); white-space: nowrap; }

.m-card {
  padding: 0.8rem;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background-color: var(--surface);
}

.m-label {
  margin-bottom: 0.3rem;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-400);
}

.m-val { font-size: 0.85rem; font-weight: 700; line-height: 1.35; color: var(--ink-900); }
.m-big { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; color: var(--ink-900); }
.m-up { font-size: 0.68rem; font-weight: 700; color: #16a34a; }

.m-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.m-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.m-gap { margin-top: 0.75rem; }

.m-meter {
  height: 6px;
  border-radius: 6px;
  background-color: var(--line-soft);
  overflow: hidden;
}

.m-meter i {
  display: block;
  width: var(--w, 60%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-600));
}

.mk-panel.is-active .m-meter i { animation: mGrow 1s var(--ease) 0.45s both; }
@keyframes mGrow { from { width: 0; } }

.m-tabs {
  display: flex;
  gap: 1.1rem;
  margin: 0 0 0.8rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-500);
}

.m-tabs span { padding-bottom: 0.5rem; }
.m-tabs .on { color: var(--brand-600); box-shadow: inset 0 -2px 0 var(--brand-600); }

.m-sq {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  flex-shrink: 0;
  color: var(--brand-600);
  background-color: var(--brand-50);
}

.m-sq svg.i { width: 16px; height: 16px; }

.m-field {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.m-field .m-label { margin-bottom: 0.15rem; }
.m-field .m-val { font-size: 0.78rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Pipeline: stage tracker. Each step lights up in turn (--s = step index), 0.8s apart */
.pt {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 1rem;
  padding: 0.8rem 0.5rem 0.7rem;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background-color: var(--surface-muted);
}

.pt-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--ink-400);
  text-align: center;
  white-space: nowrap;
}

/* Connector to the previous step: grey track + brand fill */
.pt-step::before,
.pt-step::after {
  content: "";
  position: absolute;
  top: 13px;
  right: 50%;
  width: 100%;
  height: 2px;
  background-color: var(--line);
}

.pt-step::after { background-color: var(--brand-600); transform: scaleX(0); transform-origin: left; }
.pt-step:first-child::before,
.pt-step:first-child::after { display: none; }

.pt-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid var(--line);
  border-radius: 50%;
  color: var(--ink-400);
  background-color: var(--surface);
}

.pt-dot svg.i { width: 13px; height: 13px; stroke-width: 2.4; }

.mk-panel.is-active .pt-step::after { animation: ptFill 0.45s ease both; animation-delay: calc(var(--s) * 0.8s + 0.1s); }
.mk-panel.is-active .pt-dot { animation: ptOn 0.4s ease both; animation-delay: calc(var(--s) * 0.8s + 0.5s); }
.mk-panel.is-active .pt-step > span:last-child { animation: ptText 0.4s ease both; animation-delay: calc(var(--s) * 0.8s + 0.5s); }
.mk-panel.is-active .pt-step.win .pt-dot { animation-name: ptWin; }

@keyframes ptFill { to { transform: scaleX(1); } }
@keyframes ptOn {
  50%  { transform: scale(1.18); }
  100% { color: #ffffff; background-color: var(--brand-600); border-color: var(--brand-600); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15); }
}
@keyframes ptWin {
  50%  { transform: scale(1.18); }
  100% { color: #ffffff; background-color: #16a34a; border-color: #16a34a; box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18); }
}
@keyframes ptText { to { color: var(--ink-900); } }

/* Leads table */
.lt {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
}

.lt-tr {
  display: grid;
  grid-template-columns: 1.55fr 1fr 0.9fr 0.9fr 1fr;
  gap: 0.5rem;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.72rem;
  color: var(--ink-600);
}

.lt-tr:last-child { border-bottom: 0; }
.lt-tr > div { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.lt-th {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-400);
  background-color: var(--surface-muted);
}

.lt-name { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--ink-900); }
.lt-name .av { width: 24px; height: 24px; font-size: 0.56rem; }

/* The lead being processed */
.lt-tr.is-live { background-color: var(--brand-50); box-shadow: inset 3px 0 0 var(--brand-600); }

/* Its stage badge swaps in step with the tracker: all badges share one cell, each shows then hides */
.st-cycle { display: inline-grid; justify-items: start; }
.st-cycle > .tag { grid-area: 1 / 1; opacity: 0; }
.mk-panel.is-active .st-cycle > .tag { animation: stBlink 0.8s ease both; animation-delay: calc(var(--s) * 0.8s + 0.5s); }
.mk-panel.is-active .st-cycle > .tag:last-child { animation-name: stShow; animation-duration: 0.45s; }

@keyframes stBlink {
  0%       { opacity: 0; transform: scale(0.85); }
  15%, 85% { opacity: 1; transform: none; }
  100%     { opacity: 0; }
}

@keyframes stShow {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: none; }
}

/* Follow-up checklist */
.m-check {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--ink-400);
  border-radius: 6px;
  flex-shrink: 0;
  color: #ffffff;
}

.m-check svg.i { width: 11px; height: 11px; stroke-width: 3.5; opacity: 0; }
.mk-panel.is-active .m-check.auto { animation: mTick 0.35s ease both; animation-delay: calc(var(--i, 0) * 0.45s + 0.8s); }
.mk-panel.is-active .m-check.auto svg.i { animation: mTickIcon 0.35s ease both; animation-delay: calc(var(--i, 0) * 0.45s + 0.8s); }
@keyframes mTick { to { background-color: #16a34a; border-color: #16a34a; } }
@keyframes mTickIcon { to { opacity: 1; } }

.m-toast {
  position: absolute;
  right: 1.35rem;
  bottom: 1.35rem;
  left: 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background-color: var(--ink-900);
  color: #ffffff;
  font-size: 0.76rem;
  line-height: 1.4;
  box-shadow: 0 14px 30px -10px rgba(11, 19, 36, 0.5);
}

.m-toast span { color: #cbd5e1; }
.m-toast .m-sq { width: 30px; height: 30px; color: #ffffff; background-color: var(--brand-600); }
.mk-panel.is-active .m-toast { animation: maIn 0.6s var(--ease) 2.4s both; }

/* Counsellor workload bars */
.m-lb { display: flex; align-items: center; gap: 0.6rem; font-size: 0.72rem; font-weight: 600; color: var(--ink-700); }
.m-lb .av { width: 24px; height: 24px; font-size: 0.58rem; }
.m-lb > span:first-of-type { width: 84px; flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-lb .m-meter { flex: 1; }
.m-lb b { width: 24px; text-align: right; color: var(--ink-900); }
.m-lbs { display: flex; flex-direction: column; gap: 0.7rem; }

/* Live session pulse */
.m-live { position: relative; width: 8px; height: 8px; border-radius: 50%; background-color: #16a34a; }
.m-live::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: #16a34a;
  animation: mPing 1.6s ease-out infinite;
}
@keyframes mPing { to { transform: scale(2.6); opacity: 0; } }

/* Communication feed */
.m-feed { display: flex; flex-direction: column; gap: 0.75rem; }
.m-msg { display: flex; gap: 0.6rem; }
.m-msg-h { margin-bottom: 0.25rem; font-size: 0.72rem; font-weight: 700; color: var(--ink-900); }
.m-msg-h span { font-weight: 500; color: var(--ink-400); }

.m-bubble {
  padding: 0.55rem 0.75rem;
  border-radius: 4px 12px 12px 12px;
  background-color: var(--surface-muted);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--ink-700);
}

.m-bubble.wa { background-color: #dcfce7; color: #14532d; }
.m-bubble.ok { background-color: var(--brand-50); color: var(--ink-800); border: 1px solid #dbe7fe; }
.m-bubble b { color: var(--brand-600); }

.m-file {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.45rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: var(--surface);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-700);
}

.m-file svg.i { width: 13px; height: 13px; color: #e11d48; }

.m-sys { display: flex; align-items: center; gap: 0.45rem; font-size: 0.72rem; color: var(--ink-500); }
.m-sys svg.i { width: 14px; height: 14px; color: #16a34a; stroke-width: 2.5; }

/* Chart */
.m-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 104px;
  padding-top: 0.5rem;
}

.m-chart span {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--brand-500), var(--brand-600));
  opacity: 0.3;
  transform-origin: bottom;
}

.m-chart span.hl { opacity: 1; }
.mk-panel.is-active .m-chart span { animation: mBar 0.8s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 0.35s); }
@keyframes mBar { from { transform: scaleY(0); } }

.m-months { display: flex; gap: 0.5rem; margin-top: 0.4rem; }
.m-months span { flex: 1; font-size: 0.62rem; font-weight: 600; text-align: center; color: var(--ink-400); }

/* ==================== DEVICE MOCKUPS: laptop (CRM) + phone (mobile app) ==================== */
.dv-wrap { position: relative; padding: 0 84px 40px 0; }

.dv-lid {
  --dv-w: 700; /* layout width of the laptop screen before it is zoomed to fit */
  position: relative;
  padding: 16px 12px 12px;
  border-radius: 22px 22px 8px 8px;
  background-color: #0f172a;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

/* Webcam */
.dv-lid::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #334155;
  transform: translateX(-50%);
}

.dv-lid .mk { width: 700px; border: 0; border-radius: 6px; box-shadow: none; }
.dv-lid .mk-body { height: 430px; }
/* Keep laptop content clear of the overlapping phone */
.dv-lid .mk-panel { padding-right: 6rem; }
.dv-lid .m-toast { right: 6rem; }

.dv-base {
  position: relative;
  height: 16px;
  margin: 0 -5%;
  border-radius: 2px 2px 16px 16px;
  background: linear-gradient(180deg, #e2e8f0, #cbd5e1 55%, #94a3b8);
  box-shadow: 0 20px 30px -18px rgba(15, 23, 42, 0.5);
}

/* Hinge notch */
.dv-base::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 16%;
  height: 6px;
  border-radius: 0 0 8px 8px;
  background-color: #a8b4c6;
  transform: translateX(-50%);
}

.dv-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 164px;
  padding: 7px;
  border-radius: 30px;
  background-color: #0f172a;
  box-shadow: 0 30px 50px -20px rgba(15, 23, 42, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: edFloat 6s ease-in-out infinite;
}

/* Side button */
.dv-phone::before {
  content: "";
  position: absolute;
  top: 88px;
  right: -2px;
  width: 3px;
  height: 42px;
  border-radius: 0 3px 3px 0;
  background-color: #1e293b;
}

.ph-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 316px;
  border-radius: 24px;
  overflow: hidden;
  background-color: #ffffff;
}

.ph-status {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 26px;
  padding: 0 14px 0 18px;
  flex-shrink: 0;
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--ink-900);
  transition: color 0.4s ease;
}

.ph-island {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 50px;
  height: 15px;
  border-radius: 10px;
  background-color: #0f172a;
  transform: translateX(-50%);
}

.ph-sig { display: flex; align-items: flex-end; gap: 2px; }
.ph-sig i { width: 2px; border-radius: 1px; background-color: currentColor; }
.ph-sig i:nth-child(1) { height: 3px; }
.ph-sig i:nth-child(2) { height: 5px; }
.ph-sig i:nth-child(3) { height: 7px; }
.ph-sig b { width: 13px; height: 7px; margin-left: 3px; padding: 1px; border: 1px solid currentColor; border-radius: 2px; background-color: currentColor; background-clip: content-box; }

.ph-panels { position: relative; flex: 1; }
.ph-panels .mk-panel { display: flex; flex-direction: column; padding: 0; }

.ph-home {
  position: absolute;
  bottom: 5px;
  left: 50%;
  z-index: 3;
  width: 56px;
  height: 4px;
  border-radius: 4px;
  background-color: rgba(15, 23, 42, 0.35);
  transform: translateX(-50%);
}

.dv-phone.is-dark .ph-status { color: #ffffff; }
.dv-phone.is-dark .ph-home { background-color: rgba(255, 255, 255, 0.7); }

/* Phone: lock screen */
.ph-lock {
  flex: 1;
  margin-top: -26px;
  padding: 2.4rem 0.55rem 0.8rem;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(165deg, #1e3a8a, #2563eb 55%, #38bdf8);
}

.ph-clock { font-size: 2.1rem; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.ph-date { margin: 0.25rem 0 1rem; font-size: 0.58rem; opacity: 0.85; }

.ph-note {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.4rem;
  padding: 0.5rem;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.92);
  text-align: left;
  color: var(--ink-900);
}

.ph-note-ic {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 6px;
  background-color: var(--brand-600);
  color: #ffffff;
}

.ph-note-ic svg.i { width: 12px; height: 12px; stroke-width: 2.4; }
.ph-note-ic.green { background-color: #16a34a; }
.ph-note-ic.amber { background-color: #f59e0b; }
.ph-note > div { min-width: 0; flex: 1; }
.ph-note em { float: right; font-style: normal; font-size: 0.46rem; color: var(--ink-400); }
.ph-note b { display: block; font-size: 0.58rem; line-height: 1.3; }
.ph-note > div > span { display: block; font-size: 0.54rem; line-height: 1.35; color: var(--ink-600); }

/* Phone: chat */
.ph-app {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.55rem 0.45rem 0.4rem;
  border-bottom: 1px solid var(--line-soft);
  background-color: #fbfcfe;
}

.ph-app > div { flex: 1; min-width: 0; }
.ph-app .av { width: 22px; height: 22px; font-size: 0.5rem; }
.ph-app-n { overflow: hidden; font-size: 0.6rem; font-weight: 700; line-height: 1.2; color: var(--ink-900); white-space: nowrap; text-overflow: ellipsis; }
.ph-app-s { font-size: 0.52rem; color: #16a34a; }
.ph-back { width: 12px; height: 12px; flex-shrink: 0; stroke-width: 2.6; color: var(--ink-700); }

.ph-chat {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.55rem 0.5rem;
  overflow: hidden;
  background-color: #f1f5f9;
}

.ph-day {
  align-self: center;
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
  background-color: #ffffff;
  font-size: 0.5rem;
  font-weight: 600;
  color: var(--ink-500);
}

.ph-msg {
  max-width: 88%;
  padding: 0.4rem 0.5rem;
  border-radius: 10px;
  background-color: #ffffff;
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.06);
  font-size: 0.6rem;
  line-height: 1.4;
  color: var(--ink-900);
}

.ph-msg.in { align-self: flex-start; border-bottom-left-radius: 3px; }
.ph-msg.out { align-self: flex-end; border-bottom-right-radius: 3px; background-color: #dcfce7; }
.ph-msg small { display: block; margin-top: 0.15rem; text-align: right; font-size: 0.46rem; color: var(--ink-400); }
.ph-msg ul { margin: 0.25rem 0 0; padding-left: 0.8rem; }

.ph-file {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem;
  margin-bottom: 0.3rem;
  border-radius: 7px;
  background-color: rgba(15, 23, 42, 0.05);
}

.ph-fi {
  display: grid;
  place-items: center;
  width: 20px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 4px;
  background-color: #ef4444;
  font-size: 0.42rem;
  font-weight: 800;
  color: #ffffff;
}

.ph-file > div { min-width: 0; }
.ph-file > div b { display: block; font-size: 0.56rem; line-height: 1.25; word-break: break-all; }
.ph-file > div span { display: block; font-size: 0.48rem; color: var(--ink-500); }

.ph-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.5rem 1rem;
  border-top: 1px solid var(--line-soft);
  background-color: #fbfcfe;
}

.ph-bar i { flex: 1; height: 20px; border: 1px solid var(--line); border-radius: 10px; background-color: #ffffff; }
.ph-bar b { width: 20px; height: 20px; border-radius: 50%; background-color: #16a34a; }

/* Phone: app screens */
.ph-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.6rem 0.55rem;
  background-color: var(--brand-600);
  color: #ffffff;
}

.ph-top .ph-back { color: #ffffff; }
.ph-top > div { flex: 1; min-width: 0; }
.ph-top-t { display: flex; flex-direction: column; line-height: 1.25; }
.ph-top-t b { font-size: 0.68rem; }
.ph-top-t small { font-size: 0.5rem; opacity: 0.85; }

.ph-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.6rem 0.6rem 1rem;
  background-color: #f8fafc;
}

.ph-card { padding: 0.4rem 0.55rem; border: 1px solid var(--line-soft); border-radius: 10px; background-color: #ffffff; }
.ph-k { font-size: 0.48rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-400); }
.ph-v { font-size: 0.64rem; font-weight: 700; color: var(--ink-900); }
.ph-s { font-size: 0.52rem; color: var(--ink-500); }
.ph-row { display: flex; align-items: center; gap: 0.4rem; }
.ph-row > div { flex: 1; min-width: 0; }
.ph-row .av { width: 22px; height: 22px; font-size: 0.5rem; }
.ph-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4rem; }
.ph-big { font-size: 0.95rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink-900); }
.ph-up { font-size: 0.5rem; font-weight: 700; color: #16a34a; }

.ph-btn {
  display: block;
  margin-top: auto;
  padding: 0.45rem;
  border-radius: 8px;
  background-color: var(--brand-600);
  text-align: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: #ffffff;
}

.ph-btns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.35rem; margin-top: auto; }
.ph-btns .ph-btn { margin-top: 0; }
.ph-btn.ghost { color: var(--brand-600); background-color: var(--brand-50); }

.ph-chart { display: flex; align-items: flex-end; gap: 0.3rem; height: 56px; margin-top: 0.35rem; }
.ph-chart span { flex: 1; height: var(--h); border-radius: 4px 4px 1px 1px; background: linear-gradient(180deg, var(--brand-500), var(--brand-600)); opacity: 0.3; transform-origin: bottom; }
.ph-chart span.hl { opacity: 1; }
.mk-panel.is-active .ph-chart span { animation: mBar 0.8s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 0.35s); }

.ph-card .m-meter { height: 4px; margin-top: 0.3rem; }

/* Scroll reveal */
.js .rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .rv.d2 { transition-delay: 0.12s; }
.js .rv.in { opacity: 1; transform: none; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .ed-hero-grid { gap: 2rem; min-height: 540px; }
  .ed-visual { min-height: 500px; }
  .ed-card-top { left: -0.5rem; }
  .wi-grid { grid-template-columns: 1fr; gap: 3rem; }
  .wi-intro { max-width: 640px; }
  .ft-grid { grid-template-columns: 1fr; gap: 3rem; }
  .ft-head { max-width: 640px; }
  .ft-visual { max-width: 760px; width: 100%; margin: 0 auto; }
}

@media (max-width: 640px) {
  /* The laptop would have to shrink to ~40% (unreadable) on phones, so only the
     mobile-app mockup is shown here; it switches with the feature list just the same */
  .dv-wrap { display: flex; justify-content: center; padding: 0.5rem 0 1rem; }
  .dv-lid,
  .dv-base { display: none; }
  .dv-phone { position: relative; right: auto; bottom: auto; margin: 0 auto; zoom: 1.15; }
}

@media (max-width: 380px) {
  .dv-phone { zoom: 1; }
}

@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }
  .ed-hero { padding-top: 3.5rem; }
  .ed-hero-grid { grid-template-columns: 1fr; gap: 0; min-height: 0; }
  .ed-copy { padding: 0 0 2.5rem; }
  .ed-visual { min-height: 440px; max-width: 460px; width: 100%; margin: 0 auto; }
  .ed-student { max-height: 440px; }
  /* Keep the cards clear of the student's face: top card sits beside the shoulder, bottom card near the hem */
  .ed-card-top { top: 38%; left: 0; }
  .ed-card-bottom { bottom: 1.5rem; right: 0; }
  .ed-card strong { font-size: 0.75rem; }
  .ed-card span { font-size: 0.7rem; }
}

@media (max-width: 580px) {
  .ed-copy h1 { font-size: 2.1rem; }
  .ed-ctas { gap: 0.875rem; }
  .ed-ctas .btn-lg { width: 100%; }
  .sec { padding: 4.5rem 0; }
  .wi-features { grid-template-columns: 1fr; gap: 2rem; }
  .wi-intro .btn-lg { width: 100%; }
  .ft-btn { font-size: 0.875rem; padding: 0.55rem 0.8rem; }
  .ft-desc p { padding-left: 0.85rem; padding-right: 0.85rem; }
  .ed-visual { min-height: 380px; }
  .ed-student { max-height: 380px; }
  .ed-card { gap: 0.55rem; padding: 0.45rem 0.7rem 0.45rem 0.45rem; border-radius: 12px; }
  .ed-card-top { top: 34%; }
  .ed-card-bottom { bottom: 1rem; }
  .ed-card strong { font-size: 0.7rem; }
  .ed-card span { font-size: 0.65rem; }
  .ed-card-icon { width: 32px; height: 32px; }
  .ed-card-icon svg { width: 16px; height: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .ed-anim,
  .js .ed-card-top,
  .js .ed-card-bottom,
  .js .rv { opacity: 1; transform: none; animation: none; transition: none; }
  .ft-desc, .ft-chev, .mk-panel, .mk-panel.is-active { transition: none; }
  .mk-panel.is-active .ma,
  .mk-panel.is-active .m-meter i,
  .mk-panel.is-active .m-chart span,
  .mk-panel.is-active .m-toast,
  .mk-panel.is-active .pt-step::after,
  .mk-panel.is-active .pt-dot,
  .mk-panel.is-active .pt-step > span:last-child,
  .mk-panel.is-active .st-cycle > .tag,
  .mk-panel.is-active .ph-chart span,
  .dv-phone,
  .m-live::after { animation: none; }
  .mk-panel .m-check.auto { background-color: #16a34a; border-color: #16a34a; animation: none !important; }
  .mk-panel .m-check.auto svg.i { opacity: 1; animation: none !important; }
  .pt-step::after { transform: none; }
  .pt-step > span:last-child { color: var(--ink-900); }
  .pt-dot { color: #ffffff; background-color: var(--brand-600); border-color: var(--brand-600); }
  .pt-step.win .pt-dot { background-color: #16a34a; border-color: #16a34a; }
  .st-cycle > .tag:last-child { opacity: 1; }
}

/* ==================== 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; 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(2, 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 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 ==================== */
