/* Public marketing site (www.rithma.ai) — uses :root tokens from marketing-core.css */
.marketing-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  max-width: 100%;
  --mk-gutter-left: max(20px, env(safe-area-inset-left));
  --mk-gutter-right: max(20px, env(safe-area-inset-right));
}

.marketing-main {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
  /* Reserve space for the fixed site header (updated from JS on load/resize). */
  padding-top: var(--mk-header-h, 63px);
}

.marketing-main img,
.marketing-main picture,
.marketing-main video {
  max-width: 100%;
  height: auto;
}

.marketing-body--product .pf-frame,
.marketing-body--product .pf-frame__screen,
.marketing-body--product .pf-scene,
.marketing-body--product picture {
  max-width: 100%;
  min-width: 0;
}

.marketing-body--product .pf-frame__screen img,
.marketing-body--product .pf-scene__img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
}

.marketing-body.is-marketing-nav-open {
  overflow: hidden;
}

.marketing-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top, 0px);
  /* Fixed headers must not consume flex layout space (avoids double gap with main padding-top). */
  flex: none;
  margin: 0;
}

.marketing-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px var(--mk-gutter-right) 14px var(--mk-gutter-left);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
}

.marketing-header__actions {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.marketing-btn-signup--compact {
  padding: 8px 14px;
  font-size: 0.9rem;
}

.marketing-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
}

.marketing-nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.is-marketing-nav-open .marketing-nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.is-marketing-nav-open .marketing-nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.is-marketing-nav-open .marketing-nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.marketing-header__panel {
  display: contents;
}

.marketing-nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 1040;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(15, 23, 42, 0.45);
  cursor: pointer;
}

.marketing-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.marketing-brand__mark {
  display: block;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.marketing-brand__lockup {
  display: block;
  width: auto;
  height: 32px;
  flex-shrink: 0;
}

.marketing-brand--jobs .marketing-brand__lockup {
  height: 28px;
}

.marketing-brand__suffix {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  color: var(--muted);
}

.marketing-brand--jobs:hover .marketing-brand__suffix {
  color: var(--primary);
}

.marketing-brand__text {
  line-height: 1;
}

.marketing-brand:hover {
  color: var(--primary);
  text-decoration: none;
}

.marketing-brand:hover .marketing-brand__text {
  color: var(--primary);
}

.marketing-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  flex: 1;
  justify-content: center;
}

.marketing-nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}

.marketing-nav a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.marketing-nav a[aria-current="page"] {
  color: var(--primary);
}

.marketing-header__cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.marketing-link-login {
  font-weight: 500;
  color: var(--muted);
}

.marketing-btn-signup {
  white-space: nowrap;
}

.marketing-hero {
  padding: 56px 20px 48px;
  background: linear-gradient(165deg, var(--primary-light) 0%, var(--bg) 55%);
}

.marketing-hero__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.marketing-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin: 0 0 12px;
}

.marketing-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.55rem);
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.03em;
}

.marketing-lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 52ch;
  margin: 0 auto 24px;
  line-height: 1.55;
}

.marketing-hero .marketing-lead {
  margin-left: auto;
  margin-right: auto;
}

.marketing-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn-lg {
  padding: 12px 22px;
  font-size: 1rem;
}

.marketing-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 20px;
}

.marketing-section--tight {
  padding-top: 40px;
  padding-bottom: 24px;
}

.marketing-section--muted {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.marketing-section h1 {
  font-size: 2rem;
  margin: 0 0 12px;
}

.marketing-section h2 {
  font-size: 1.35rem;
  margin: 0 0 12px;
}

.marketing-narrow {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.marketing-grid-3 {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.marketing-grid-3 h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.marketing-grid-3 p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.marketing-pricing-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.marketing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.marketing-card--featured {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.12);
}

.marketing-card--price h2 {
  margin-top: 0;
}

.marketing-price-desc {
  margin: 0 0 12px;
  color: var(--text);
}

.marketing-price-note {
  margin: 0 0 20px;
  font-size: 0.9rem;
}

.marketing-disclaimer {
  margin-top: 28px;
  max-width: 60ch;
}

.marketing-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.marketing-feature-list li {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.marketing-feature-list li:last-child {
  border-bottom: none;
}

.marketing-feature-list h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.marketing-feature-list p {
  margin: 0;
  color: var(--muted);
}

.marketing-faq {
  margin: 0;
}

.marketing-faq dt {
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
}

.marketing-faq dt:first-child {
  margin-top: 0;
}

.marketing-faq dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.marketing-card--contact h2 {
  margin-top: 0;
}

.marketing-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.marketing-footer {
  margin-top: auto;
  background: var(--text);
  color: #e2e8f0;
  padding: 40px 20px 24px;
}

.marketing-footer a {
  color: #93c5fd;
}

.marketing-footer a:hover {
  color: #bfdbfe;
  text-decoration: underline;
}

.marketing-footer__logo {
  display: block;
  width: auto;
  height: 30px;
  margin-bottom: 8px;
}

.marketing-footer__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}

.marketing-footer__tagline {
  margin: 8px 0 0;
  color: #94a3b8;
  font-size: 0.95rem;
  max-width: 280px;
}

.marketing-footer__brand .ui-locale-toggle {
  margin-top: 10px;
}

.marketing-footer__brand .ui-locale-toggle__select {
  max-width: 8.5rem;
}

.marketing-footer__cols {
  display: flex;
  gap: 48px;
}

.marketing-footer__cols > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.marketing-footer__linkbtn {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.marketing-footer__linkbtn:hover,
.marketing-footer__linkbtn:focus-visible {
  color: #e2e8f0;
}

.marketing-footer__heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 4px;
}

.marketing-footer__legal {
  max-width: 900px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid #334155;
  font-size: 0.85rem;
  color: #64748b;
  text-align: center;
}

@media (max-width: 899px) {
  .marketing-header__actions {
    display: flex;
  }

  .marketing-nav-toggle {
    display: inline-flex;
  }

  .marketing-header__inner {
    position: relative;
  }

  .marketing-brand {
    flex: 1;
    min-width: 0;
  }

  .marketing-header__panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 21;
    flex-direction: column;
    gap: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
    padding: 8px 0 12px;
    max-height: min(70vh, calc(100dvh - 88px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.is-marketing-nav-open .marketing-header__panel {
    display: flex;
  }

  .marketing-nav {
    flex: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    justify-content: flex-start;
    width: 100%;
  }

  .marketing-nav a {
    display: block;
    padding: 12px 20px;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .marketing-nav a:last-child {
    border-bottom: none;
  }

  .marketing-header__cta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 20px 4px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
  }

  .marketing-header__cta .marketing-btn-signup,
  .marketing-header__cta .marketing-link-login {
    width: 100%;
    text-align: center;
    display: block;
    box-sizing: border-box;
  }

  .marketing-header__cta .marketing-link-login {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
  }
}

@media (min-width: 900px) {
  .marketing-btn-signup--compact {
    display: none;
  }
}

/* www.rithma.ai–aligned storytelling, hero split, generated imagery */
.marketing-beta-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0 0 14px;
}

.marketing-hero--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 20px 48px;
  background: linear-gradient(165deg, var(--primary-light) 0%, var(--bg) 52%);
}

.marketing-hero__copy .marketing-kicker {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.marketing-hero__copy h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.45rem);
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: -0.03em;
  text-align: left;
}

.marketing-hero__copy .marketing-lead,
.marketing-hero__copy .marketing-sublead {
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}

.marketing-sublead {
  font-size: 1rem;
  line-height: 1.55;
  margin: 0 0 20px;
}

.marketing-hero__copy .marketing-hero__actions {
  justify-content: flex-start;
}

.marketing-hero__figure {
  margin: 0;
}

.marketing-hero__figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.marketing-section--showcase {
  max-width: 1120px;
}

.marketing-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.marketing-split--reverse {
  direction: rtl;
}

.marketing-split--reverse > * {
  direction: ltr;
}

.marketing-figure {
  margin: 0;
}

.marketing-figure img {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.marketing-figure--wide img {
  max-width: none;
  border: 1px solid var(--border);
}

.marketing-caption {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

.marketing-quote {
  margin: 20px 0 0;
  padding: 16px 20px;
  border-left: 4px solid var(--primary);
  background: var(--bg);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.marketing-quote p {
  margin: 0;
}

.marketing-team-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 20px;
}

.marketing-team-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.marketing-team-list li:last-child {
  border-bottom: none;
}

.marketing-grid-3--about {
  margin-top: 28px;
}

@media (max-width: 900px) {
  .marketing-hero--split {
    grid-template-columns: 1fr;
  }

  .marketing-split {
    grid-template-columns: 1fr;
  }

  .marketing-split--reverse {
    direction: ltr;
  }
}

/* ---------------------------------------------------------------------------
 * mk-* — modernized marketing styles for the rebuilt home/features/pricing/
 * faq/contact pages. The legacy ``marketing-*`` styles above stay for the
 * About page until that page is migrated.
 * --------------------------------------------------------------------------- */

.mk-beta-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0 0 14px;
}

.mk-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin: 0 0 8px;
}

.mk-lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 60ch;
  margin: 0 0 24px;
  line-height: 1.55;
}

.mk-section-lead {
  max-width: 65ch;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

/* Hero */
.mk-hero {
  background: linear-gradient(170deg, var(--primary-light) 0%, var(--bg) 55%);
  padding: 48px 20px 64px;
}

.mk-hero__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.mk-hero__copy h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

.mk-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.mk-hero__trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-size: 0.9rem;
  color: var(--muted);
}

.mk-hero__trust li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
  margin-right: 6px;
}

.mk-hero__figure {
  margin: 0;
}

.mk-hero__figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

/* Section primitives */
.mk-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 20px;
}

.mk-section--tight {
  padding-top: 56px;
  padding-bottom: 24px;
  max-width: 880px;
}

.mk-section--muted {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-width: none;
}

.mk-section--muted > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.mk-section--cta {
  text-align: center;
  padding-top: 48px;
  padding-bottom: 56px;
}

.mk-section h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.4rem);
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}

.mk-section h2,
.mk-section__title {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.mk-narrow {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.mk-narrow-wide {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

/* Why home care — dark contrast band */
.mk-section--why {
  max-width: none;
  padding: 72px 20px;
  background: linear-gradient(165deg, #0f172a 0%, #1e3a5f 52%, #0f172a 100%);
  color: #e2e8f0;
  text-align: center;
}

.mk-why__inner {
  max-width: 720px;
  margin: 0 auto;
}

.mk-section--why .mk-eyebrow {
  color: #93c5fd;
}

.mk-section--why h2 {
  color: #f8fafc;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  margin: 0 0 8px;
}

.mk-section--why .mk-section-lead {
  color: #cbd5e1;
  margin-left: auto;
  margin-right: auto;
}

.mk-why-names {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 28px 0 24px;
  padding: 0;
}

.mk-why-names span {
  display: inline-block;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 8px 18px;
  border-radius: 999px;
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(148, 163, 184, 0.35);
  backdrop-filter: blur(4px);
}

.mk-why__closing {
  margin-top: 20px;
  color: #f8fafc !important;
}

/* Three agents grid */
.mk-section--audiences {
  padding-top: 56px;
  padding-bottom: 72px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--card) 100%);
}

.mk-section--audiences .mk-narrow-wide {
  margin-bottom: 8px;
}

.mk-section--audiences h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
}

.mk-agent-grid {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.mk-agent-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 0;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.mk-agent-card__tagline {
  margin: 0;
  padding: 14px 22px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mk-agent-card h3 {
  margin: 0;
  padding: 0 22px 6px;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.mk-agent-card__sub {
  margin: 0 0 16px;
  padding: 0 22px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.mk-agent-card > p:not(.mk-agent-card__tagline):not(.mk-agent-card__sub):not(.mk-agent-card__close) {
  margin: 0 0 12px;
  padding: 0 22px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

.mk-agent-card__close {
  margin: auto 0 0;
  padding: 16px 22px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.mk-agent-card .mk-link-arrow {
  display: block;
  padding: 14px 22px 20px;
  font-size: 0.95rem;
  border-top: 1px solid var(--border);
}

.mk-agent-card--caregiver {
  border-top: 4px solid #3b82f6;
}

.mk-agent-card--caregiver .mk-agent-card__tagline {
  color: #1d4ed8;
  background: #eff6ff;
}

.mk-agent-card--agency {
  border-top: 4px solid #1e3a8a;
}

.mk-agent-card--agency .mk-agent-card__tagline {
  color: #1e3a8a;
  background: #eef2ff;
}

.mk-agent-card--family {
  border-top: 4px solid #5f8a7a;
}

.mk-agent-card--family .mk-agent-card__tagline {
  color: #3d6b5e;
  background: #ecf5f0;
}

.mk-metric-callout--center {
  max-width: 640px;
  margin: 36px auto 0;
}

/* The pattern — flow + examples */
.mk-section--pattern {
  padding-top: 56px;
  padding-bottom: 72px;
}

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

.mk-pattern-flow {
  list-style: none;
  margin: 28px 0 32px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  position: relative;
}

.mk-pattern-flow__step {
  position: relative;
  padding: 22px 18px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  animation: mk-pattern-step-in 0.6s ease both;
}

.mk-pattern-flow__step:nth-child(1) { animation-delay: 0.05s; }
.mk-pattern-flow__step:nth-child(2) { animation-delay: 0.15s; }
.mk-pattern-flow__step:nth-child(3) { animation-delay: 0.25s; }

.mk-pattern-flow__step::before {
  counter-increment: pattern-step;
  content: counter(pattern-step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.mk-pattern-flow {
  counter-reset: pattern-step;
}

.mk-pattern-flow__step:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -14px;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 700;
  z-index: 1;
}

.mk-pattern-flow__label {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 6px;
}

.mk-pattern-flow__desc {
  display: block;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--muted);
}

.mk-example-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.mk-example-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: 24px 22px;
  box-shadow: var(--shadow);
}

.mk-example-card__role {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-dark);
}

.mk-example-card__quote {
  margin: 0 0 16px;
  padding: 14px 16px;
  font-size: 0.95rem;
  line-height: 1.5;
  font-style: italic;
  color: var(--text);
  background: var(--bg);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.mk-example-card > p:last-child {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

@keyframes mk-pattern-step-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mk-pattern-flow__step {
    animation: none;
  }
}

.mk-audience-grid {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.mk-audience-grid li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  position: relative;
}

.mk-audience-tag {
  position: absolute;
  top: 18px;
  right: 22px;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.mk-audience-grid h3 {
  margin: 4px 0 8px;
  font-size: 1.15rem;
}

.mk-audience-grid p {
  margin: 0 0 12px;
  color: var(--muted);
}

.mk-link-arrow {
  font-weight: 600;
  font-size: 0.95rem;
}

/* Showcase / split */
.mk-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.mk-split--reverse { direction: rtl; }
.mk-split--reverse > * { direction: ltr; }

.mk-checklist {
  list-style: none;
  margin: 12px 0 20px;
  padding: 0;
}

.mk-checklist li {
  padding: 6px 0 6px 28px;
  position: relative;
  color: var(--text);
}

.mk-checklist li::before {
  content: "✓";
  position: absolute;
  left: 4px;
  top: 6px;
  color: var(--primary);
  font-weight: 700;
}

/* Figure / dashboard placeholder */
.mk-figure { margin: 0; }

.mk-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.mk-figure--frame {
  background: linear-gradient(135deg, var(--primary-light), #ffffff 70%);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  padding: 18px;
}

.mk-dashboard-placeholder {
  background: var(--card);
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--border);
  box-shadow: none;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, sans-serif;
}

.mk-dashboard-placeholder__top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}

.mk-dashboard-placeholder__top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.mk-dashboard-placeholder__top em {
  margin-left: 12px;
  font-style: normal;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.mk-dashboard-placeholder__grid {
  display: grid;
  grid-template-columns: minmax(0, 110px) minmax(0, 1fr);
  min-height: 320px;
}

.mk-dashboard-placeholder {
  max-width: 100%;
}

.mk-dp-sidebar {
  background: #f8fafc;
  border-right: 1px solid var(--border);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mk-dp-sidebar > div {
  height: 16px;
  border-radius: 4px;
  background: #e2e8f0;
}

.mk-dp-sidebar > div.is-active {
  background: var(--primary);
  opacity: 0.85;
}

.mk-dp-main {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #ffffff;
}

.mk-dp-bar {
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(90deg, #cbd5e1 0%, #e2e8f0 80%);
  max-width: 60%;
}

.mk-dp-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.mk-dp-cards > div {
  height: 64px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--border);
}

.mk-dp-cards > div:nth-child(2) {
  background: #f8fafc;
}

.mk-dp-cards > div:nth-child(3) {
  background: #f8fafc;
}

.mk-dp-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mk-dp-rows > div {
  height: 28px;
  border-radius: 6px;
  background: #f1f5f9;
  border: 1px solid var(--border);
}

.mk-dashboard-placeholder__caption {
  margin: 0;
  padding: 10px 16px 14px;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--card);
  border-top: 1px solid var(--border);
  text-align: center;
}

/* Feature tiles */
.mk-feature-grid {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.mk-feature-grid li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.mk-feature-grid h3 {
  margin: 8px 0 6px;
  font-size: 1.05rem;
}

.mk-feature-grid p {
  margin: 0;
  color: var(--muted);
}

.mk-feature-grid--compact li {
  padding: 18px;
}

.mk-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--primary-light);
  font-size: 1.1rem;
}

/* Role tabs (features page) */
.mk-section--features {
  padding-top: 48px;
  padding-bottom: 64px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--card) 100%);
}

.mk-section--tabs {
  max-width: 1180px;
  padding-top: 24px;
}

.mk-role-tabs__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  width: max-content;
  max-width: 100%;
  box-shadow: var(--shadow);
}

.mk-role-tab {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.mk-role-tab.is-active {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.mk-role-tab[data-role-target="caregiver"].is-active {
  background: #3b82f6;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.mk-role-tab[data-role-target="agency"].is-active {
  background: #1e3a8a;
  box-shadow: 0 4px 14px rgba(30, 58, 138, 0.3);
}

.mk-role-tab[data-role-target="family"].is-active {
  background: #5f8a7a;
  box-shadow: 0 4px 14px rgba(95, 138, 122, 0.3);
}

.mk-role-tab[data-role-target="senior"].is-active {
  background: #475569;
  box-shadow: 0 4px 14px rgba(71, 85, 105, 0.3);
}

.mk-role-tab:hover:not(.is-active) {
  color: var(--text);
  background: var(--bg);
}

.mk-role-tab__icon {
  font-size: 1.05rem;
}

.mk-role-panel {
  display: none;
}

.mk-role-panel.is-active {
  display: block;
}

.mk-role-panel__intro {
  max-width: 720px;
  margin-bottom: 28px;
  padding: 22px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
}

.mk-role-panel__tagline {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mk-role-panel__intro h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.mk-role-panel--caregiver .mk-role-panel__tagline { color: #1d4ed8; }
.mk-role-panel--agency .mk-role-panel__tagline { color: #1e3a8a; }
.mk-role-panel--family .mk-role-panel__tagline { color: #3d6b5e; }
.mk-role-panel--senior .mk-role-panel__tagline { color: #475569; }

.mk-role-panel--caregiver .mk-role-panel__intro { border-top: 4px solid #3b82f6; }
.mk-role-panel--agency .mk-role-panel__intro { border-top: 4px solid #1e3a8a; }
.mk-role-panel--family .mk-role-panel__intro { border-top: 4px solid #5f8a7a; }
.mk-role-panel--senior .mk-role-panel__intro { border-top: 4px solid #64748b; }

.mk-role-panel__intro p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0;
}

.mk-role-panel__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
}

.mk-feature-list {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.mk-feature-list article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mk-feature-list article:hover {
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.mk-feature-list h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--text);
}

.mk-feature-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Pricing */
.mk-section--pricing {
  padding-top: 56px;
  padding-bottom: 56px;
}

.mk-section--pricing-why .mk-why__inner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.mk-section--pricing-includes .mk-section__title {
  text-align: center;
  margin-bottom: 8px;
}

.mk-pricing-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.mk-card--price-solo {
  border-top: 4px solid #3b82f6;
}

.mk-card--price-solo header h2 {
  color: #1d4ed8;
}

.mk-card--price-agency {
  border-top: 4px solid #1e3a8a;
}

.mk-card--price-agency header h2 {
  color: #1e3a8a;
}

.mk-card--price-family {
  border-top: 4px solid #5f8a7a;
}

.mk-card--price-family header h2 {
  color: #3d6b5e;
}

.mk-pricing-fineprint {
  margin-top: 28px;
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.mk-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.mk-card--price {
  position: relative;
}

.mk-card--featured {
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.16);
  transform: translateY(-4px);
}

.mk-card__badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}

.mk-card--price header h2 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.mk-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
}

.mk-price__amount {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.mk-price__per {
  color: var(--muted);
  font-size: 0.9rem;
}

.mk-price__sub {
  margin: 6px 0 18px;
  font-size: 0.95rem;
}

.mk-price-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  flex: 1;
}

.mk-price-bullets li {
  padding: 6px 0 6px 26px;
  position: relative;
  color: var(--text);
  font-size: 0.95rem;
}

.mk-price-bullets li::before {
  content: "✓";
  position: absolute;
  left: 4px;
  top: 6px;
  color: var(--primary);
  font-weight: 700;
}

.mk-card__cta {
  width: 100%;
  text-align: center;
}

/* FAQ */
.mk-faq-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 0;
}

.mk-faq-jump a {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.mk-faq-jump a:hover {
  background: var(--primary-light);
  border-color: rgba(37, 99, 235, 0.3);
  color: var(--primary-dark);
}

.mk-section--faq {
  padding-top: 40px;
  padding-bottom: 40px;
  max-width: none;
}

.mk-section--faq-alt {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.mk-faq-section {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

.mk-faq__heading {
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-light);
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
}

.mk-faq-list {
  display: grid;
  gap: 14px;
}

.mk-faq-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.mk-section--faq-alt .mk-faq-card {
  background: var(--bg);
}

.mk-faq-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text);
}

.mk-faq-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.mk-faq-card a {
  color: var(--primary);
}

/* Legacy dl.faq — kept for compatibility */
.mk-faq {
  margin: 0;
}

.mk-faq dt {
  font-weight: 600;
  margin-top: 22px;
  margin-bottom: 6px;
  color: var(--text);
}

.mk-faq dt:first-child {
  margin-top: 0;
}

.mk-faq dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.mk-faq dd a {
  color: var(--primary);
}

/* Contact form */
.mk-section--contact {
  padding-top: 48px;
  padding-bottom: 64px;
}

.mk-contact-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1.6fr 1fr;
  align-items: start;
}

.mk-contact-form-card {
  padding: 32px;
  border-top: 4px solid var(--primary);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

.mk-contact-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.mk-contact-side__block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.mk-contact-side__block:first-child {
  border-top: 4px solid #1e3a8a;
}

.mk-contact-side h2 {
  margin-top: 0;
  font-size: 1.15rem;
}

.mk-contact-side h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.mk-belief-grid--compact {
  gap: 8px;
}

.mk-belief-grid--compact li {
  padding: 10px 14px 10px 36px;
  font-size: 0.88rem;
}

.mk-belief-grid--compact li::before {
  left: 12px;
  top: 10px;
}

.mk-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mk-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 500;
  font-size: 0.95rem;
}

.mk-form label > span em {
  color: var(--danger);
  font-style: normal;
  margin-left: 4px;
}

.mk-form input[type="text"],
.mk-form input[type="email"],
.mk-form textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  width: 100%;
}

.mk-form input:focus,
.mk-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background: var(--card);
}

.mk-form textarea {
  resize: vertical;
  min-height: 140px;
}

.mk-form-row--cols {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}

.mk-form__hidden {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.mk-form__actions {
  margin: 8px 0 0;
}

.mk-side-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

/* Flash messages */
.mk-flash {
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 0 0 16px;
  border: 1px solid var(--border);
}

.mk-flash p { margin: 4px 0 0; }

.mk-flash--success {
  background: #ecfdf5;
  border-color: #86efac;
  color: #14532d;
}

.mk-flash--success a { color: #14532d; text-decoration: underline; }

.mk-flash--error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #7f1d1d;
}

/* CTA section */
.mk-section--cta h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
}

/* Responsive */
@media (max-width: 960px) {
  .mk-hero__inner,
  .mk-split,
  .mk-contact-grid,
  .mk-role-panel__grid {
    grid-template-columns: 1fr;
  }

  .mk-split--reverse { direction: ltr; }

  .mk-card--featured { transform: none; }

  .mk-agent-grid,
  .mk-example-grid,
  .mk-pricing-grid {
    grid-template-columns: 1fr;
  }

  .mk-pattern-flow {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .mk-pattern-flow__step:not(:last-child)::after {
    content: "↓";
    top: auto;
    bottom: -18px;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  .mk-idea-grid {
    grid-template-columns: 1fr;
  }

  .mk-why-names--inline {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .mk-form-row--cols { grid-template-columns: 1fr; }
  .mk-role-tabs__bar { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .mk-role-tab { white-space: nowrap; }

  .mk-hero {
    padding: 32px max(16px, env(safe-area-inset-right)) 40px max(16px, env(safe-area-inset-left));
  }

  .mk-section {
    padding: 48px max(16px, env(safe-area-inset-right)) 48px max(16px, env(safe-area-inset-left));
  }

  .mk-section--tight {
    padding-top: 40px;
  }

  .mk-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .mk-hero__actions .btn {
    width: 100%;
    text-align: center;
  }

  .mk-hero__trust {
    flex-direction: column;
    gap: 10px;
  }

  .mk-section--why {
    padding: 56px max(16px, env(safe-area-inset-right)) 56px max(16px, env(safe-area-inset-left));
  }

  .mk-why-names {
    gap: 8px;
  }

  .mk-why-names span {
    font-size: 0.85rem;
    padding: 7px 14px;
  }

  .mk-hero--about,
  .mk-hero--page {
    padding: 40px max(16px, env(safe-area-inset-right)) 48px max(16px, env(safe-area-inset-left));
  }

  .mk-legal-card {
    padding: 24px 20px;
  }

  .mk-split p {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .mk-split p .btn {
    width: 100%;
    text-align: center;
    margin: 0;
  }

  .mk-section--cta .mk-hero__actions {
    align-items: stretch;
  }

  .mk-audience-grid li {
    padding-top: 36px;
  }

  .mk-dashboard-placeholder__grid {
    grid-template-columns: 72px 1fr;
    min-height: 260px;
  }

  .mk-dp-cards {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .mk-dp-cards > div {
    height: 56px;
  }

  .mk-figure--frame {
    padding: 12px;
  }

  .marketing-footer {
    padding: 32px max(16px, env(safe-area-inset-right)) 24px max(16px, env(safe-area-inset-left));
  }

  .marketing-footer__inner {
    flex-direction: column;
    gap: 24px;
  }

  .marketing-footer__cols {
    flex-direction: column;
    gap: 24px;
    width: 100%;
  }
}

@media (max-width: 400px) {
  .mk-dp-cards {
    grid-template-columns: 1fr;
  }

  .mk-dashboard-placeholder__grid {
    grid-template-columns: 1fr;
  }

  .mk-dp-sidebar {
    display: none;
  }
}

/* About-page specific extras */
.mk-hero--about,
.mk-hero--page {
  padding: 56px 20px 64px;
  text-align: center;
  background: linear-gradient(170deg, var(--primary-light) 0%, var(--bg) 55%);
}

.mk-about-hero__inner,
.mk-page-hero__inner {
  max-width: 720px;
  margin: 0 auto;
}

.mk-hero--page h1,
.mk-hero--about h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}

.mk-hero--page .mk-lead,
.mk-hero--about .mk-lead {
  margin-left: auto;
  margin-right: auto;
}

.mk-hero--legal .mk-page-hero__inner {
  max-width: 680px;
}

.mk-legal-date {
  margin: 12px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.mk-hero--page .mk-faq-jump {
  justify-content: center;
  margin-top: 24px;
}

.mk-section--plex {
  padding-top: 56px;
  padding-bottom: 64px;
}

.mk-plex__copy h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  line-height: 1.35;
  margin: 0 0 16px;
}

.mk-plex__copy p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 14px;
}

.mk-why-names--inline {
  justify-content: flex-start;
  margin: 20px 0 16px;
}

.mk-why-names--inline span {
  color: var(--primary-dark);
  background: var(--primary-light);
  border-color: rgba(37, 99, 235, 0.2);
}

.mk-callout {
  margin: 0;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%);
  border: 1px solid rgba(37, 99, 235, 0.2);
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--text);
}

.mk-section--about-why .mk-why__inner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.mk-section--name {
  padding-top: 56px;
  padding-bottom: 64px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--card) 100%);
}

.mk-name__header {
  max-width: 640px;
  margin: 0 auto 32px;
  text-align: center;
}

.mk-idea-grid {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.mk-idea-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 28px 24px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.mk-idea-card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.mk-idea-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.mk-idea-card--rhythm {
  border-top: 4px solid #3b82f6;
}

.mk-idea-card--rhythm h3 {
  color: #1d4ed8;
}

.mk-idea-card--algorithm {
  border-top: 4px solid #1e3a8a;
}

.mk-idea-card--algorithm h3 {
  color: #1e3a8a;
}

.mk-quote--center {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  border-left: none;
  border-top: 4px solid var(--primary);
  border-radius: var(--radius);
}

.mk-section--showcase {
  max-width: 1180px;
}

.mk-quote {
  margin: 22px 0 0;
  padding: 18px 22px;
  border-left: 4px solid var(--primary);
  background: var(--bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.05rem;
}

.mk-quote p { margin: 0; }

.mk-section--team {
  padding-top: 56px;
  padding-bottom: 64px;
  background: linear-gradient(180deg, var(--card) 0%, var(--bg) 100%);
}

.mk-section--team .mk-narrow-wide {
  margin-bottom: 8px;
}

.mk-team-grid {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.mk-team-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 28px 22px 24px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  text-align: center;
  border-top: 4px solid var(--primary);
}

.mk-team__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  margin: 0 auto 14px;
}

.mk-team-grid h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
}

.mk-team__role {
  margin: 0 0 12px;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mk-team-grid p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

@media (max-width: 960px) {
  .mk-team-grid {
    grid-template-columns: 1fr;
  }
}

.mk-team__note {
  max-width: 720px;
  margin: 24px auto 0;
  text-align: center;
}

.mk-section--beliefs {
  padding-top: 56px;
  padding-bottom: 64px;
}

.mk-section--beliefs h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  margin-bottom: 20px;
}

.mk-belief-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.mk-belief-grid li {
  position: relative;
  padding: 14px 16px 14px 40px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text);
  box-shadow: var(--shadow);
}

.mk-belief-grid li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 14px;
  color: var(--primary);
  font-weight: 700;
}

/* Pause Sign in / Get started → dashboard URLs (www marketing “coming soon” mode). */
a.marketing-dash-link-paused,
a.marketing-dash-link-paused:hover,
a.marketing-dash-link-paused:focus {
  pointer-events: none;
  cursor: not-allowed;
  text-decoration: none;
}

/* Breadcrumbs (subpages) */
.mk-breadcrumbs {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
}

.mk-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--muted);
}

.mk-breadcrumbs__item:not(:last-child)::after {
  content: "/";
  margin: 0 8px;
  color: var(--border);
  pointer-events: none;
}

.mk-breadcrumbs__item a {
  color: var(--primary);
  text-decoration: none;
}

.mk-breadcrumbs__item a:hover {
  text-decoration: underline;
}

.mk-breadcrumbs__item span[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

/* Related internal links */
.mk-section--related {
  padding-top: clamp(40px, 6vw, 56px);
}

.mk-related__title {
  margin: 0 0 16px;
  font-size: 1.25rem;
  text-align: center;
}

.mk-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mk-related__card {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface, #fff);
}

.mk-related__card p {
  margin: 8px 0 0;
}

/* Legal pages (Privacy, Terms) */
.mk-legal-card {
  max-width: 780px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 36px 40px;
  box-shadow: var(--shadow);
}

.mk-legal-prose {
  padding-top: 0;
  padding-bottom: 64px;
}

.mk-legal-prose h2 {
  margin: 32px 0 12px;
  font-size: 1.25rem;
  scroll-margin-top: 80px;
}

.mk-legal-prose h2:first-child {
  margin-top: 0;
}

.mk-legal-prose p,
.mk-legal-prose li {
  line-height: 1.65;
  color: var(--text);
}

.mk-legal-prose ul {
  margin: 0 0 16px;
  padding-left: 1.25rem;
}

.mk-legal-prose li {
  margin-bottom: 8px;
}

.mk-legal-prose a {
  color: var(--primary);
}

/* Internal privacy redline drafts */
.mk-legal-card--enzuzo [ez-policy-mode] {
  color: var(--text);
  line-height: 1.6;
}

.mk-legal-card--enzuzo [ez-policy-mode] table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.mk-legal-card--enzuzo [ez-policy-mode] th,
.mk-legal-card--enzuzo [ez-policy-mode] td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.mk-legal-correction {
  color: #c41e3a;
}

.mk-legal-card--redline .mk-legal-correction a {
  color: #c41e3a;
  text-decoration: underline;
}

.marketing-footer__legal a {
  color: var(--muted);
  text-decoration: none;
  margin: 0 4px;
}

.marketing-footer__legal a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Agent pattern steps (features page) */
.mk-pattern-steps {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  text-align: left;
  display: grid;
  gap: 20px;
}

.mk-pattern-steps li {
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  line-height: 1.6;
  color: var(--muted);
}

.mk-pattern-steps strong {
  display: block;
  color: var(--text);
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.mk-metric-callout {
  margin: 28px 0 0;
  padding: 18px 22px;
  text-align: center;
  font-size: 1.05rem;
  color: var(--text);
  background: var(--primary-light);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* 404 page */
.mk-hero--not-found .mk-not-found-code {
  margin: 0 0 10px;
  font-size: clamp(3rem, 10vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--primary);
  opacity: 0.92;
}
.mk-not-found-path {
  margin: 18px auto 0;
  max-width: 520px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
}
.mk-not-found-path__label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.mk-not-found-path code {
  display: block;
  word-break: break-all;
  font-size: 0.92rem;
}
.mk-not-found-section {
  padding-top: 0;
  padding-bottom: 72px;
}
.mk-not-found-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}
.mk-not-found-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.mk-not-found-card:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}
.mk-not-found-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.mk-not-found-card__blurb {
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted);
}
.mk-not-found-help {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px;
  text-align: center;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--card) 100%);
  border: 1px solid var(--border);
}
.mk-not-found-help h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}
.mk-not-found-help p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.5;
}
.mk-not-found-help__actions {
  justify-content: center;
  margin-bottom: 0;
}
@media (max-width: 640px) {
  .mk-not-found-grid {
    grid-template-columns: 1fr;
  }
}

/* 403 page */
.mk-hero--forbidden .mk-forbidden-code {
  margin: 0 0 10px;
  font-size: clamp(3rem, 10vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: #b45309;
  opacity: 0.92;
}
.mk-forbidden-detail {
  margin: 14px auto 0;
  max-width: 520px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  line-height: 1.45;
}
.mk-forbidden-path {
  margin: 18px auto 0;
  max-width: 520px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
}
.mk-forbidden-path__label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.mk-forbidden-path code {
  display: block;
  word-break: break-all;
  font-size: 0.92rem;
}
.mk-forbidden-section {
  padding-top: 0;
  padding-bottom: 72px;
}

/* HTTP error pages */
.mk-hero--http-error .mk-http-error-code {
  margin: 0 0 10px;
  font-size: clamp(3rem, 10vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}
.mk-hero--http-error-client .mk-http-error-code {
  color: #b45309;
}
.mk-hero--http-error-server .mk-http-error-code {
  color: #b91c1c;
}
.mk-http-error-detail {
  margin: 14px auto 0;
  max-width: 560px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  color: var(--text);
  line-height: 1.45;
}
.mk-http-error-ref {
  margin: 18px auto 0;
  max-width: 520px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
}
.mk-http-error-ref__label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.mk-http-error-ref code {
  display: block;
  word-break: break-all;
  font-size: 0.92rem;
}
.mk-http-error-section {
  padding-top: 0;
  padding-bottom: 72px;
}

/* Home-care knowledge hub (marketing engine) */
.mk-hub-lane-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mk-hub-lane-card .btn {
  margin-top: auto;
  align-self: flex-start;
}
.mk-hub-tool-list {
  list-style: none;
  padding: 0;
}
.mk-hub-tool-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.mk-hub-tool__name {
  font-weight: 600;
}
.mk-hub-tool__status {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 2px 10px;
  white-space: nowrap;
}
.mk-hub-back {
  margin: 0 0 14px;
}
.mk-hub-back a {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
.mk-hub-back a:hover {
  text-decoration: underline;
}
.mk-content-verified {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 8px;
}
.mk-content-stale {
  font-size: 0.85rem;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}
.mk-data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
}
.mk-data-table th,
.mk-data-table td {
  text-align: left;
  padding: 11px 14px;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.mk-data-table thead th {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: color-mix(in srgb, var(--bg) 65%, var(--card));
  white-space: nowrap;
}
.mk-data-table tbody tr:last-child td,
.mk-data-table tbody tr:last-child th {
  border-bottom: 0;
}
.mk-data-num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  font-weight: 700;
  white-space: nowrap;
  text-align: right;
}
.mk-data-table th.mk-data-num,
.mk-data-table td.mk-data-num,
.mk-data-table th[data-kb-sort="num"],
.mk-data-table td[data-kb-num] {
  text-align: right;
}
.mk-data-sub {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.35;
}
.mk-content-disclaimer {
  font-size: 0.85rem;
  color: var(--muted);
  border-left: 3px solid rgba(0, 0, 0, 0.12);
  padding-left: 12px;
}
/* Geo-metric page family (Phase 7): headline number + nearby-county compare. */
.mk-statcard {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 28px 32px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(37, 99, 235, 0.01));
  margin-bottom: 20px;
}
.mk-statcard__value {
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}
.mk-statcard__unit {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mk-statcard__label {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 6px;
}
.mk-statcard .mk-source-link {
  margin-top: 10px;
}
.mk-statcontext {
  font-size: 0.98rem;
  color: var(--muted);
  margin: 0 0 24px;
}
.mk-h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 8px 0 12px;
}
.mk-related-grid {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.mk-related-card a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  line-height: 1.3;
  background: var(--surface, #fff);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.mk-related-card a:hover {
  border-color: var(--accent, #2563eb);
  transform: translateY(-1px);
}
.mk-related-card svg {
  flex: 0 0 auto;
  opacity: 0.7;
}
.mk-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.mk-hub-live-card .btn {
  margin-top: 4px;
}

/* ---- Knowledge-hub agent widget (Phase 4) ---- */
.mk-agent__title {
  margin: 4px 0 6px;
}
.mk-agent__lead {
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.55;
}
.mk-agent__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.mk-agent__row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.mk-agent__input {
  flex: 1 1 260px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 10px;
  font-size: 1rem;
}
.mk-agent__input:focus {
  outline: 2px solid var(--brand, #2563eb);
  outline-offset: 1px;
}

/* Conversation thread */
.mk-agent__thread {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mk-agent__msg {
  animation: mk-agent-fade-in 320ms ease both;
}
@keyframes mk-agent-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mk-agent__msg--user {
  align-self: flex-end;
  max-width: min(100%, 540px);
  padding: 12px 16px;
  border-radius: 16px 16px 4px 16px;
  background: color-mix(in srgb, var(--primary) 10%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
}
.mk-agent__msg-kicker {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.mk-agent__msg--user .mk-agent__msg-body {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--text);
}

.mk-agent__msg--assistant {
  align-self: stretch;
  padding: 16px 18px 14px;
  border-radius: 16px 16px 16px 4px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}
.mk-agent__msg--assistant.mk-agent__msg--degraded {
  border-color: color-mix(in srgb, #d97706 35%, var(--border));
  background: color-mix(in srgb, #d97706 4%, var(--card));
}

.mk-agent__msg-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.mk-agent__msg-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--mk-care), var(--mk-fam));
  flex-shrink: 0;
}
.mk-agent__msg-avatar .mk-ic {
  width: 18px;
  height: 18px;
}
.mk-agent__msg-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.mk-agent__msg-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}
.mk-agent__msg-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--primary-light);
}
.mk-agent__msg-badge--muted {
  color: #92400e;
  background: color-mix(in srgb, #f59e0b 18%, var(--bg));
}

.mk-agent__thinking {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0 8px;
  color: var(--muted);
}
.mk-agent__thinking-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.35;
  animation: mk-agent-pulse 1.2s ease-in-out infinite;
}
.mk-agent__thinking-dot:nth-child(2) {
  animation-delay: 0.15s;
}
.mk-agent__thinking-dot:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes mk-agent-pulse {
  0%,
  80%,
  100% {
    opacity: 0.25;
    transform: scale(0.85);
  }
  40% {
    opacity: 1;
    transform: scale(1);
  }
}
.mk-agent__thinking-label {
  font-size: 0.9rem;
  font-style: italic;
}

.mk-agent__msg-body.mk-agent__text {
  font-size: 1.02rem;
  line-height: 1.62;
  color: var(--text);
}
.mk-agent__text p {
  margin: 0 0 0.75em;
}
.mk-agent__text p:last-child {
  margin-bottom: 0;
}
.mk-agent__cite-ref {
  font-weight: 700;
  font-size: 0.82em;
  color: var(--primary);
  text-decoration: none;
  vertical-align: super;
  line-height: 0;
  margin: 0 1px;
}
.mk-agent__cite-ref:hover {
  text-decoration: underline;
}

.mk-agent__sources {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.mk-agent__sources-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 10px;
}
.mk-agent__sources-title .mk-ic {
  width: 15px;
  height: 15px;
  opacity: 0.75;
}
.mk-agent__sources-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mk-agent__source-card {
  margin: 0;
}
.mk-agent__source-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
  transition: border-color 140ms ease, background 140ms ease, transform 120ms ease;
}
.mk-agent__source-link:hover {
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
  background: color-mix(in srgb, var(--primary) 6%, var(--bg));
  transform: translateY(-1px);
}
.mk-agent__source-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary-dark);
  background: var(--primary-light);
  flex-shrink: 0;
}
.mk-agent__source-title {
  flex: 1;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
}
.mk-agent__source-go {
  color: var(--muted);
  font-size: 0.95rem;
  flex-shrink: 0;
}
.mk-agent__src-date {
  display: block;
  margin: 4px 0 0 3.1rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.mk-agent__footnote {
  margin: 12px 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
}

.mk-agent__disclaimer {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 14px;
  line-height: 1.45;
}

/* Legacy selectors (older answer box) — keep harmless if cached HTML references them */
.mk-agent__answer {
  margin-top: 18px;
}
.mk-agent__label-ai {
  display: none;
}

/* ---- Senior-population bar chart (Phase 5) ---- */
.mk-bar-chart {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.mk-bar-row {
  display: grid;
  grid-template-columns: 160px 1fr 160px;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
}
.mk-bar-label {
  font-weight: 600;
  font-size: 0.92rem;
}
.mk-bar-track {
  background: rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  height: 14px;
  overflow: hidden;
}
.mk-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #0d9488);
  min-width: 2px;
}
.mk-bar-value {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  text-align: right;
  font-size: 0.92rem;
}
@media (max-width: 640px) {
  .mk-bar-row {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 10px 0;
  }
  .mk-bar-value {
    text-align: left;
  }
}

/* ---- Senior-population choropleth (Phase 5) ---- */
.mk-map {
  width: 100%;
  height: 460px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #eaf0f6;
  margin-top: 10px;
}
.mk-map--county {
  height: 520px;
  margin-top: 0;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}
.mk-county-map-panel {
  display: grid;
  grid-template-columns: minmax(200px, 240px) 1fr;
  gap: 20px 24px;
  align-items: stretch;
}
.mk-county-map-panel__meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mk-county-map-panel__map {
  min-width: 0;
}
.mk-county-map-top {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}
.mk-county-map-top__label {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.mk-county-map-top__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.mk-county-map-top__list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: baseline;
  font-size: 0.86rem;
}
.mk-county-map-top__rank {
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.mk-county-map-top__name {
  font-weight: 600;
}
.mk-county-map-top__value {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 0.82rem;
}
.mk-county-map-legend-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}
.mk-county-map-legend__title {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}
.mk-county-map-legend {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
}
.mk-county-map-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 12px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}
.mk-county-map-hint .mk-ic {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.mk-map .maplibregl-popup-content,
.mk-map-popup-wrap .maplibregl-popup-content {
  font-size: 0.9rem;
  line-height: 1.4;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
}
.mk-map-popup-wrap--hover .maplibregl-popup-content {
  padding: 0;
  min-width: 160px;
}
.mk-map-popup {
  padding: 12px 14px;
}
.mk-map-popup__title {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 0.95rem;
}
.mk-map-popup__value {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--primary);
  line-height: 1.15;
}
.mk-map-popup__label {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.mk-map-popup__meta {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.mk-map-popup__muted {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.mk-map-popup__link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.mk-map-popup__link:hover {
  text-decoration: underline;
}
.mk-map .maplibregl-popup-content {
  padding: 10px 12px;
  border-radius: 10px;
}
.mk-map-legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 12px 0 0;
  padding: 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.mk-map-legend li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mk-map-swatch {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.12);
}
@media (max-width: 640px) {
  .mk-map {
    height: 360px;
  }
  .mk-map--county {
    height: 380px;
  }
  .mk-county-map-panel {
    grid-template-columns: 1fr;
  }
  .mk-county-map-top__list {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .mk-county-map-top__list li {
    grid-template-columns: auto 1fr auto;
  }
}

/* ---- Agency map (find-home-care-agencies) ---- */
.mk-agency-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: flex-end;
  margin-bottom: 8px;
}
.mk-agency-filter {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 0 1 160px;
  font-size: 0.82rem;
  font-weight: 600;
}
.mk-agency-filter--wide {
  flex: 1 1 240px;
}
.mk-agency-filter--grow {
  flex: 2 1 200px;
}
.mk-agency-filter select,
.mk-agency-filter input[type="search"] {
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  background: #fff;
}
.mk-agency-count {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 10px;
}
.mk-agency-map-section {
  margin-bottom: 24px;
  position: relative;
  z-index: 0;
  isolation: isolate;
}
.mk-agency-map__map {
  width: 100%;
  height: 460px;
  min-height: 460px;
  margin-top: 0;
  position: relative;
  z-index: 0;
}
.mk-agency-map__map--ready.leaflet-container {
  background: #eaf0f6;
  font: inherit;
  width: 100%;
  height: 460px;
  z-index: 0;
}
.mk-agency-map__map img.leaflet-tile {
  mix-blend-mode: normal;
  max-width: none !important;
  max-height: none !important;
}
.mk-agency-map__map .leaflet-popup-content {
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 10px 12px;
}
.mk-agency-map__map--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #eaf0f6;
}
.mk-agency-map__fallback {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 36em;
}
.mk-agency-map__approx {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: italic;
}
.mk-agency-map__notice {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 500;
  margin: 0 auto;
  max-width: 40em;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.86);
  color: #fff;
  font-size: 0.82rem;
  line-height: 1.4;
  text-align: center;
  pointer-events: none;
}
.mk-agency-cdss {
  margin-top: 20px;
  padding: 20px;
  border-radius: 14px;
  background: rgba(3, 105, 161, 0.06);
  border: 1px solid rgba(3, 105, 161, 0.15);
}
.mk-agency-legend {
  margin-top: 12px;
}
.mk-agency-tablewrap {
  margin-top: 8px;
}
.mk-agency-tablewrap .mk-table-scroll {
  max-height: min(56vh, 480px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.mk-agency-tablewrap .mk-data-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: color-mix(in srgb, var(--card) 88%, var(--primary) 12%);
  box-shadow: 0 1px 0 var(--border);
}
.mk-agency-table__title {
  margin: 0;
}
.mk-agency-tablewrap .mk-table-toolbar {
  align-items: baseline;
  gap: 12px 20px;
}
.mk-agency-table__link {
  display: inline;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: 650;
  color: var(--primary, #0369a1);
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.mk-agency-table__link:hover,
.mk-agency-table__link:focus-visible {
  color: #025a8a;
  outline: none;
}
tr[data-agency-row].is-highlighted {
  background: rgba(3, 105, 161, 0.1);
}
@media (max-width: 640px) {
  .mk-agency-map__map {
    height: 360px;
    min-height: 360px;
  }
  .mk-agency-tablewrap .mk-table-scroll {
    max-height: min(50vh, 360px);
  }
}

/* ---- Pay calculator (Phase 5) ---- */
.mk-calc__row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.mk-calc__field {
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}
.mk-calc__input {
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 400;
}
.mk-calc__input:focus {
  outline: 2px solid var(--brand, #2563eb);
  outline-offset: 1px;
}
.mk-calc__result {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  background: #fff;
}
.mk-calc__verdict {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 14px;
}
.mk-calc__verdict.is-ok {
  color: #047857;
}
.mk-calc__verdict.is-under {
  color: #b91c1c;
}
.mk-calc__stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 18px;
}
.mk-calc__stats li {
  display: flex;
  flex-direction: column;
}
.mk-calc__stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.mk-calc__stat-value {
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.mk-calc__source {
  margin: 14px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
@media (max-width: 520px) {
  .mk-calc__stats {
    grid-template-columns: 1fr;
  }
}

/* =====================================================================
   Knowledge-hub redesign — modern, interactive, knowledgebase feel.
   Scoped to .mk-hub* / .mk-kb* / .mk-article* classes so the rest of the
   marketing site is untouched.
   ===================================================================== */
:root {
  --mk-header-h: 63px;
  --mk-hubnav-h: 52px;
  --mk-sticky-stack: calc(var(--mk-header-h) + var(--mk-hubnav-h));
  --mk-hub-radius: 16px;
  --mk-hub-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px -18px rgba(15, 23, 42, 0.28);
  --mk-fam: #0d9488;
  --mk-care: #2563eb;
  --mk-agcy: #7c3aed;
}
.mk-ic {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  vertical-align: -0.18em;
}

/* ---- Sticky sub-navigation ---- */
.mk-hubnav {
  position: sticky;
  top: var(--mk-header-h);
  z-index: 15;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.mk-hubnav__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 9px max(20px, env(safe-area-inset-right)) 9px max(20px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  gap: 8px 16px;
  flex-wrap: wrap;
}
.mk-hubnav__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.mk-hubnav__brand .mk-ic {
  color: var(--primary);
}
.mk-hubnav__tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.mk-hubnav__tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease;
}
.mk-hubnav__tab .mk-ic {
  width: 17px;
  height: 17px;
}
.mk-hubnav__tab:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--text);
}
.mk-hubnav__tab.is-active {
  background: var(--primary);
  color: #fff;
}
.mk-hubnav .mk-kbsearch {
  margin-left: auto;
}

/* ---- Knowledge-base search ---- */
.mk-kbsearch {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 200px;
}
.mk-kbsearch__icon {
  position: absolute;
  left: 11px;
  display: inline-flex;
  color: var(--muted);
  pointer-events: none;
}
.mk-kbsearch__icon .mk-ic {
  width: 18px;
  height: 18px;
}
.mk-kbsearch__input {
  width: 100%;
  padding: 9px 12px 9px 36px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.9rem;
  color: var(--text);
}
.mk-kbsearch__input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  border-color: transparent;
}
.mk-kbsearch__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 30;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--mk-hub-shadow);
  padding: 6px;
  max-height: 60vh;
  overflow: auto;
}
.mk-kbsearch__hit {
  display: block;
  padding: 9px 11px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
}
.mk-kbsearch__hit:hover,
.mk-kbsearch__hit.is-active {
  background: rgba(37, 99, 235, 0.08);
}
.mk-kbsearch__hit-kind {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 2px;
}
.mk-kbsearch__hit-title {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
}
.mk-kbsearch__hit-desc {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mk-kbsearch__empty {
  padding: 12px;
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

/* ---- Hub hero ---- */
.mk-kb-hero {
  background:
    radial-gradient(1100px 360px at 78% -10%, rgba(37, 99, 235, 0.1), transparent 60%),
    radial-gradient(900px 320px at 8% 0%, rgba(13, 148, 136, 0.1), transparent 55%),
    var(--card);
  border-bottom: 1px solid var(--border);
}
.mk-kb-hero__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 20px 56px;
  text-align: center;
}
.mk-kb-hero__inner h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 8px 0 14px;
}
.mk-kb-hero__hl {
  background: linear-gradient(120deg, var(--mk-care), var(--mk-fam));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mk-kb-hero .mk-lead {
  max-width: 620px;
  margin: 0 auto 24px;
}
.mk-kbsearch--hero {
  max-width: 540px;
  margin: 0 auto;
}
.mk-kbsearch--hero .mk-kbsearch__input {
  padding: 15px 16px 15px 44px;
  font-size: 1.02rem;
  border-radius: 14px;
  box-shadow: var(--mk-hub-shadow);
}
.mk-kbsearch--hero .mk-kbsearch__icon {
  left: 15px;
}
.mk-kbsearch--hero .mk-kbsearch__panel {
  border-radius: 14px;
}
.mk-kb-hero__trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin: 22px 0 0;
  padding: 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
}
.mk-kb-hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.mk-kb-hero__trust .mk-ic {
  width: 17px;
  height: 17px;
  color: var(--primary);
}

/* ---- Section heads ---- */
/* .mk-kb-section is a marker only — width/centering comes from .mk-section
   (and .mk-section--muted > * for full-bleed muted bands). */
.mk-kb-head {
  max-width: 680px;
  margin: 0 0 26px;
}
.mk-kb-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  margin: 4px 0 8px;
}

/* ---- Lane cards ---- */
.mk-lane-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.mk-lane-grid--compact {
  grid-template-columns: repeat(2, 1fr);
}
.mk-lane-card {
  --lane: var(--mk-care);
}
.mk-lane-card--families { --lane: var(--mk-fam); }
.mk-lane-card--caregivers { --lane: var(--mk-care); }
.mk-lane-card--agencies { --lane: var(--mk-agcy); }
.mk-lane-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--mk-hub-radius);
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.mk-lane-card__link::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--lane);
}
.mk-lane-card__link:hover {
  transform: translateY(-3px);
  box-shadow: var(--mk-hub-shadow);
  border-color: color-mix(in srgb, var(--lane) 45%, var(--border));
}
.mk-lane-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  margin-bottom: 14px;
  color: var(--lane);
  background: color-mix(in srgb, var(--lane) 12%, transparent);
}
.mk-lane-card__icon .mk-ic {
  width: 24px;
  height: 24px;
}
.mk-lane-card__eyebrow {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lane);
}
.mk-lane-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 4px 0 8px;
}
.mk-lane-card__blurb {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
.mk-lane-card__topics {
  list-style: none;
  margin: 16px 0 18px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.mk-lane-card__topics li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text);
}
.mk-lane-card__topics .mk-ic {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--lane);
}
.mk-lane-card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--lane);
}
.mk-lane-card__cta .mk-ic {
  width: 18px;
  height: 18px;
  transition: transform 160ms ease;
}
.mk-lane-card__link:hover .mk-lane-card__cta .mk-ic {
  transform: translateX(3px);
}

/* ---- Article (live page) cards ---- */
.mk-article-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

/* Horizontal carousel: exactly two cards visible, scroll for the rest (hub home). */
.mk-article-carousel {
  position: relative;
}
.mk-article-carousel__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--border) 85%, var(--text));
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 72%, transparent);
  color: var(--muted);
  cursor: pointer;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  opacity: 0.55;
  transition: opacity 160ms ease, color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.mk-article-carousel__arrow .mk-ic {
  width: 20px;
  height: 20px;
}
.mk-article-carousel__arrow--prev {
  left: 8px;
}
.mk-article-carousel__arrow--next {
  right: 8px;
}
.mk-article-carousel__arrow:hover:not(:disabled) {
  opacity: 1;
  color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  background: color-mix(in srgb, var(--card) 92%, transparent);
}
.mk-article-carousel__arrow:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--primary) 55%, transparent);
  outline-offset: 2px;
  opacity: 1;
}
.mk-article-carousel__arrow:disabled {
  opacity: 0.22;
  cursor: default;
  pointer-events: none;
}
.mk-article-carousel__arrow[hidden] {
  display: none;
}
.mk-article-scroll {
  container-type: inline-size;
  container-name: mk-article-carousel;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  padding-bottom: 6px;
}
.mk-article-scroll:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--primary) 55%, transparent);
  outline-offset: 4px;
  border-radius: 8px;
}
.mk-article-grid--scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  width: max-content;
  min-width: 100%;
}
.mk-article-grid--scroll .mk-article-card {
  flex: 0 0 calc((100cqw - 18px) / 2);
  scroll-snap-align: start;
  min-width: 0;
}
.mk-article-grid--scroll .mk-article-card > a {
  min-height: 228px;
}

.mk-article-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--mk-hub-radius);
  text-decoration: none;
  color: var(--text);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.mk-article-card > a:hover {
  transform: translateY(-3px);
  box-shadow: var(--mk-hub-shadow);
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
}
.mk-article-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.1);
}
.mk-article-card__icon .mk-ic {
  width: 22px;
  height: 22px;
}
.mk-article-card__badge {
  align-self: flex-start;
  margin: 14px 0 6px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--success);
  background: rgba(22, 163, 74, 0.12);
  border-radius: 999px;
  padding: 3px 9px;
}
.mk-article-card__title {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.mk-article-card__blurb {
  margin: 6px 0 16px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}
.mk-article-card .mk-link-arrow {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
}
.mk-article-card .mk-link-arrow .mk-ic {
  width: 17px;
  height: 17px;
}

/* ---- How-it-works steps ---- */
.mk-step-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.mk-step-card {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--mk-hub-radius);
}
.mk-step-card__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 12px;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.1);
}
.mk-step-card__n .mk-ic {
  width: 22px;
  height: 22px;
}
.mk-step-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}
.mk-step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ---- Page header (lane + content) ---- */
.mk-kb-pagehead {
  background:
    radial-gradient(800px 280px at 85% -20%, rgba(37, 99, 235, 0.08), transparent 60%),
    var(--card);
  border-bottom: 1px solid var(--border);
}
.mk-kb-pagehead__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 36px;
}
.mk-kb-pagehead__inner h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 6px 0 12px;
}
.mk-kb-pagehead__inner .mk-lead {
  max-width: 680px;
}
.mk-kb-pagehead__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin-bottom: 14px;
  color: var(--mk-care);
  background: color-mix(in srgb, var(--mk-care) 12%, transparent);
}
.mk-kb-pagehead--families .mk-kb-pagehead__icon { color: var(--mk-fam); background: color-mix(in srgb, var(--mk-fam) 12%, transparent); }
.mk-kb-pagehead--agencies .mk-kb-pagehead__icon { color: var(--mk-agcy); background: color-mix(in srgb, var(--mk-agcy) 12%, transparent); }
.mk-kb-pagehead--hub .mk-kb-pagehead__icon {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
}
.mk-kb-pagehead--hub .mk-kb-hero__hl {
  background: linear-gradient(120deg, var(--mk-care), var(--mk-fam));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mk-kbsearch--pagehead {
  max-width: 540px;
  margin-top: 22px;
}
.mk-kbsearch--pagehead .mk-kbsearch__input {
  padding: 15px 16px 15px 44px;
  font-size: 1.02rem;
  border-radius: 14px;
  box-shadow: var(--mk-hub-shadow);
}
.mk-kbsearch--pagehead .mk-kbsearch__icon {
  left: 15px;
}
.mk-kbsearch--pagehead .mk-kbsearch__panel {
  border-radius: 14px;
}
.mk-kb-pagehead__icon .mk-ic {
  width: 27px;
  height: 27px;
}
.mk-hub-back a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
}
.mk-hub-back a .mk-ic {
  width: 16px;
  height: 16px;
  transform: scaleX(-1);
}

/* ---- Meta chips ---- */
.mk-meta-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
}
.mk-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 11px;
}
.mk-chip .mk-ic {
  width: 15px;
  height: 15px;
}
.mk-chip--live {
  color: var(--success);
  border-color: color-mix(in srgb, var(--success) 35%, var(--border));
  background: rgba(22, 163, 74, 0.08);
}
.mk-chip--quiz {
  color: #6d28d9;
  border-color: color-mix(in srgb, #6d28d9 35%, var(--border));
  background: rgba(109, 40, 217, 0.08);
}
.mk-page-format {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mk-page-format .mk-ic {
  width: 16px;
  height: 16px;
}
.mk-page-format--quiz {
  color: #6d28d9;
}
.mk-kb-pagehead--quiz {
  border-bottom: 3px solid color-mix(in srgb, #6d28d9 28%, transparent);
}

/* ---- Roadmap (coming soon) ---- */
.mk-roadmap__title {
  margin: 34px 0 12px;
  font-size: 1.05rem;
}
.mk-roadmap {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.mk-roadmap__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.mk-roadmap__icon {
  display: inline-flex;
  color: var(--muted);
}
.mk-roadmap__icon .mk-ic {
  width: 18px;
  height: 18px;
}
.mk-roadmap__name {
  flex: 1;
  font-weight: 600;
  font-size: 0.92rem;
}

/* ---- Pillar browse (lane tools + topics) ---- */
.mk-lane-browse {
  display: grid;
  grid-template-columns: minmax(168px, 220px) minmax(0, 1fr);
  gap: 28px 36px;
}
.mk-lane-browse__nav {
  position: sticky;
  top: calc(var(--mk-sticky-stack-measured, var(--mk-sticky-stack)) + 12px);
  z-index: 5;
  align-self: start;
  padding: 14px 0;
  max-height: calc(100vh - var(--mk-sticky-stack-measured, var(--mk-sticky-stack)) - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mk-lane-browse__nav-label {
  margin: 0 0 10px;
  padding: 0 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.mk-lane-browse__nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mk-lane-browse__nav-link {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}
.mk-lane-browse__nav-link:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--primary) 6%, transparent);
}
.mk-lane-browse__nav-link.is-active,
.mk-lane-browse__nav-link[aria-current="true"] {
  color: var(--primary);
  font-weight: 600;
  background: color-mix(in srgb, var(--primary) 9%, transparent);
  border-left-color: var(--primary);
}
.mk-lane-browse__main {
  min-width: 0;
}
.mk-pillar-browse {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mk-pillar-group {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  overflow: hidden;
  scroll-margin-top: calc(var(--mk-sticky-stack-measured, var(--mk-sticky-stack)) + 16px);
}
.mk-pillar-group__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  align-items: center;
  padding: 14px 16px 14px 18px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 140ms ease;
}
.mk-pillar-group__head::-webkit-details-marker {
  display: none;
}
.mk-pillar-group__head::marker {
  content: "";
}
.mk-pillar-group__head::after {
  content: "";
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  align-self: center;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 180ms ease, border-color 140ms ease;
}
.mk-pillar-group[open] > .mk-pillar-group__head::after {
  transform: rotate(225deg);
  margin-top: 4px;
}
.mk-pillar-group__head:hover {
  background: color-mix(in srgb, var(--bg) 55%, transparent);
}
.mk-pillar-group__head--static {
  cursor: default;
}
.mk-pillar-group__head--static::after {
  display: none;
}
.mk-pillar-group__main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.mk-pillar-group__num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.mk-pillar-group__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}
.mk-pillar-group h3.mk-pillar-group__title {
  margin: 0;
  font-size: 1rem;
}
.mk-pillar-group__meta {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}
.mk-pillar-group__pages {
  list-style: none;
  margin: 0;
  padding: 4px 16px 14px;
  display: grid;
  gap: 2px;
  border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.mk-pillar-page__link {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 140ms ease;
}
.mk-pillar-page__link:hover {
  background: color-mix(in srgb, var(--primary) 7%, transparent);
}
.mk-pillar-page__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.mk-pillar-page__title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  flex: 1 1 auto;
  min-width: 0;
}
.mk-pillar-page__format {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 8px;
  line-height: 1.2;
  white-space: nowrap;
}
.mk-pillar-page__format .mk-ic {
  width: 12px;
  height: 12px;
}
.mk-pillar-page__format--quiz {
  color: #6d28d9;
  background: rgba(109, 40, 217, 0.1);
  border: 1px solid color-mix(in srgb, #6d28d9 28%, var(--border));
}
.mk-pillar-page__format--comparison {
  color: #0369a1;
  background: rgba(3, 105, 161, 0.08);
  border: 1px solid color-mix(in srgb, #0369a1 28%, var(--border));
}
.mk-pillar-page__format--calculator {
  color: #b45309;
  background: rgba(180, 83, 9, 0.08);
  border: 1px solid color-mix(in srgb, #b45309 28%, var(--border));
}
.mk-pillar-page__blurb {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mk-pillar-group__overflow {
  list-style: none;
  margin: 0;
  padding: 0 16px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mk-pillar-group__overflow a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.mk-pillar-group__overflow a:hover {
  text-decoration: underline;
}
.mk-pillar-group__overflow-btn {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.mk-pillar-group__overflow-btn:hover {
  text-decoration: underline;
}
.mk-pillar-group__pages[data-lane-overflow-pages] {
  border-top: 1px dashed color-mix(in srgb, var(--border) 80%, transparent);
  padding-top: 8px;
  margin-top: 4px;
}
.mk-geo-region-browse {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mk-geo-region-group__pages a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}
.mk-geo-region-group__pages a:hover {
  color: var(--primary);
  text-decoration: underline;
}
.mk-pillar-browse--lane {
  max-width: none;
}

/* ---- Article two-column layout ---- */
.mk-article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}
.mk-article__main {
  min-width: 0;
}
.mk-block-title {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.mk-aside {
  position: sticky;
  top: calc(var(--mk-header-h) + 64px);
  display: grid;
  gap: 16px;
}
.mk-aside__card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--mk-hub-radius);
  padding: 18px 20px;
}
.mk-aside__card--related {
  display: flex;
  flex-direction: column;
  max-height: 22rem;
}
.mk-aside__related-scroll {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 14rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0 -6px;
  padding: 0 6px 2px;
  scrollbar-gutter: stable;
}
.mk-aside__related-scroll:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.45);
  outline-offset: 2px;
  border-radius: 8px;
}
.mk-aside__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  margin: 0 0 12px;
}
.mk-aside__title .mk-ic {
  width: 18px;
  height: 18px;
  color: var(--primary);
}
.mk-aside__stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.mk-aside__stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mk-aside__k {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.mk-aside__v {
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.mk-aside__v small {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}
.mk-aside__links,
.mk-aside__notes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.mk-aside__links a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  margin: 0 -10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
}
.mk-aside__links a:hover {
  background: rgba(37, 99, 235, 0.08);
}
.mk-aside__links .mk-ic {
  width: 17px;
  height: 17px;
  color: var(--primary);
}
.mk-aside__notes li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.88rem;
  color: var(--text);
}
.mk-aside__notes .mk-ic {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--success);
}

/* ---- Interactive data table ---- */
.mk-tablewrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--mk-hub-radius);
  overflow: hidden;
  box-shadow: var(--mk-hub-shadow);
}
.mk-tablewrap--compare {
  margin-bottom: 8px;
}
.mk-table-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 55%, var(--card));
}
.mk-table-search {
  position: relative;
  flex: 1 1 220px;
  display: flex;
  align-items: center;
}
.mk-table-search__icon {
  position: absolute;
  left: 11px;
  color: var(--muted);
  display: inline-flex;
  pointer-events: none;
}
.mk-table-search__icon .mk-ic {
  width: 17px;
  height: 17px;
}
.mk-table-search input {
  width: 100%;
  padding: 9px 12px 9px 35px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  font-size: 0.9rem;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.mk-table-search input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent);
}
.mk-table-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 70%, var(--card));
  border: 1px solid var(--border);
}
.mk-table-scroll {
  overflow-x: auto;
  overflow-y: auto;
  max-height: min(68vh, 620px);
  -webkit-overflow-scrolling: touch;
  background:
    linear-gradient(90deg, var(--card) 30%, transparent) left / 16px 100% no-repeat local,
    linear-gradient(270deg, var(--card) 30%, transparent) right / 16px 100% no-repeat local;
}
.mk-tablewrap--compare .mk-table-scroll,
.mk-tablewrap--no-max .mk-table-scroll {
  max-height: none;
  overflow-y: visible;
}
.mk-tablewrap .mk-data-table {
  margin: 0;
  min-width: 100%;
}
.mk-tablewrap .mk-data-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: color-mix(in srgb, var(--card) 88%, var(--primary) 12%);
  box-shadow: 0 1px 0 var(--border);
  padding: 12px 16px;
}
.mk-tablewrap .mk-data-table td {
  padding: 12px 16px;
}
.mk-tablewrap .mk-data-table tbody tr:nth-child(even) td,
.mk-tablewrap .mk-data-table tbody tr:nth-child(even) th {
  background: color-mix(in srgb, var(--bg) 42%, var(--card));
}
.mk-tablewrap .mk-data-table tbody tr:hover td,
.mk-tablewrap .mk-data-table tbody tr:hover th {
  background: color-mix(in srgb, var(--primary) 7%, var(--card));
}
.mk-tablewrap .mk-data-table tbody td:first-child:not(.mk-data-num) {
  font-weight: 600;
  color: var(--text);
}
.mk-tablewrap .mk-data-table tbody a:not(.mk-source-link) {
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.mk-tablewrap .mk-data-table tbody a:not(.mk-source-link):hover {
  text-decoration: underline;
}
.mk-th {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
th.is-sortable {
  cursor: pointer;
  user-select: none;
  transition: color 140ms ease, background 140ms ease;
}
th.is-sortable:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--primary) 10%, var(--card));
}
th.is-sortable:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--primary) 55%, transparent);
  outline-offset: -2px;
}
.mk-th__arrow {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  opacity: 0.28;
  border-top: 5px solid currentColor;
  transition: opacity 140ms ease, transform 140ms ease;
}
th.is-sortable:hover .mk-th__arrow,
th.is-asc .mk-th__arrow,
th.is-desc .mk-th__arrow {
  opacity: 0.85;
}
th.is-asc .mk-th__arrow {
  border-top: 0;
  border-bottom: 5px solid currentColor;
}
th.is-desc .mk-th__arrow {
  border-top: 5px solid currentColor;
  border-bottom: 0;
}

/* Comparison matrix (options × criteria) */
.mk-compare-table {
  min-width: min(100%, 520px);
}
.mk-compare-table thead th {
  text-align: center;
  vertical-align: bottom;
  padding: 16px 18px;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--text);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--primary) 10%, var(--card)),
    var(--card)
  );
  border-bottom: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
}
.mk-compare-table thead th:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  z-index: 4;
  min-width: 168px;
  max-width: 220px;
  background: var(--card);
  box-shadow: 1px 0 0 var(--border);
}
.mk-compare-table thead th:not(:first-child) {
  min-width: 140px;
  border-left: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
}
.mk-compare-table thead th:nth-child(2) {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--primary) 14%, var(--card)),
    color-mix(in srgb, var(--primary) 4%, var(--card))
  );
}
.mk-compare-table thead th:nth-child(3) {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--mk-fam) 14%, var(--card)),
    color-mix(in srgb, var(--mk-fam) 4%, var(--card))
  );
}
.mk-compare-table thead th:nth-child(4) {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--mk-agcy) 12%, var(--card)),
    color-mix(in srgb, var(--mk-agcy) 4%, var(--card))
  );
}
.mk-compare-table tbody th[scope="row"] {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 168px;
  max-width: 220px;
  padding: 13px 16px;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  text-transform: none;
  letter-spacing: normal;
  background: var(--card);
  box-shadow: 1px 0 0 var(--border);
  border-bottom: 1px solid var(--border);
}
.mk-compare-table tbody tr:nth-child(even) th[scope="row"] {
  background: color-mix(in srgb, var(--bg) 50%, var(--card));
}
.mk-compare-table tbody tr:hover th[scope="row"] {
  background: color-mix(in srgb, var(--primary) 8%, var(--card));
}
.mk-compare-table tbody td {
  text-align: center;
  padding: 13px 16px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--muted);
  border-left: 1px solid color-mix(in srgb, var(--border) 65%, transparent);
}
.mk-compare-table tbody tr:nth-child(even) td {
  background: color-mix(in srgb, var(--bg) 50%, var(--card));
}
.mk-compare-table tbody tr:hover td {
  background: color-mix(in srgb, var(--primary) 6%, var(--card));
  color: var(--text);
}
.mk-compare-table tbody td strong,
.mk-compare-table tbody td b {
  color: var(--text);
  font-weight: 700;
}

.mk-source-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
}
.mk-source-link .mk-ic {
  width: 15px;
  height: 15px;
}
.mk-table-empty {
  margin: 0;
  padding: 20px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---- Agent card ---- */
.mk-agent__box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--mk-hub-radius);
  box-shadow: var(--mk-hub-shadow);
  padding: 26px 28px;
}
.mk-agent__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.mk-agent__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--mk-care), var(--mk-fam));
}
.mk-agent__avatar .mk-ic {
  width: 24px;
  height: 24px;
}
.mk-agent__head .mk-eyebrow {
  margin: 0;
}
.mk-agent__head .mk-agent__title {
  margin: 0;
}
.mk-agent__suggests {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}
.mk-chip-btn {
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 13px;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, transform 120ms ease;
}
.mk-chip-btn:hover {
  background: rgba(37, 99, 235, 0.08);
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
  transform: translateY(-1px);
}

/* ---- Calculator card ---- */
.mk-calc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--mk-hub-radius);
  box-shadow: var(--mk-hub-shadow);
  padding: 26px 28px;
}
.mk-calc-card .mk-calc__result {
  box-shadow: none;
  background: var(--bg);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .mk-article {
    grid-template-columns: 1fr;
  }
  .mk-aside {
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  .mk-lane-grid,
  .mk-step-grid {
    grid-template-columns: 1fr;
  }
  .mk-lane-browse {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .mk-lane-browse__nav {
    position: static;
    padding: 0;
    margin: 0 -4px;
  }
  .mk-lane-browse__nav-label {
    padding: 0 4px;
  }
  .mk-lane-browse__nav-list {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 4px 6px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }
  .mk-lane-browse__nav-list li {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
  .mk-lane-browse__nav-link {
    white-space: nowrap;
    border-left: 0;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 7px 14px;
    background: var(--card);
  }
  .mk-lane-browse__nav-link.is-active,
  .mk-lane-browse__nav-link[aria-current="true"] {
    border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
  }
  .mk-tablewrap .mk-data-table thead th,
  .mk-tablewrap .mk-data-table td {
    padding: 10px 12px;
  }
  .mk-compare-table thead th,
  .mk-compare-table tbody th[scope="row"],
  .mk-compare-table tbody td {
    padding: 11px 12px;
    font-size: 0.82rem;
  }
  .mk-compare-table thead th:first-child,
  .mk-compare-table tbody th[scope="row"] {
    min-width: 132px;
  }
}
@media (max-width: 760px) {
  .mk-hubnav__brand span {
    display: none;
  }
  .mk-hubnav__tab span {
    display: none;
  }
  .mk-hubnav__tab {
    padding: 8px;
  }
  .mk-hubnav .mk-kbsearch {
    flex-basis: 100%;
    margin-left: 0;
  }
  .mk-lane-grid--compact {
    grid-template-columns: 1fr;
  }
  .mk-article-grid--scroll .mk-article-card {
    flex-basis: calc(100cqw - 2px);
  }
}

/* ---- Guide pages ---- */
.mk-guide-toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--mk-hub-radius);
  padding: 16px 20px;
  margin-bottom: 24px;
}
.mk-guide-toc__title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 8px;
}
.mk-guide-toc ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}
.mk-guide-toc a {
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}
.mk-guide-toc a:hover {
  text-decoration: underline;
}
.mk-guide-section {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.mk-guide-section:last-of-type {
  border-bottom: 0;
}
.mk-guide-section h2 {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.mk-guide-section p {
  margin: 0 0 12px;
  line-height: 1.55;
  color: var(--text);
}
.mk-guide-bullets {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.mk-guide-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.92rem;
}
.mk-guide-bullets .mk-ic {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--success);
  flex-shrink: 0;
}
.mk-guide-source {
  margin: 0;
}

/* ---- Eligibility quiz (data-driven decision tree) ---- */
.mk-quiz {
  border: 1px solid color-mix(in srgb, #6d28d9 22%, var(--line, #e2e8f0));
  border-radius: var(--mk-hub-radius);
  padding: 20px;
  margin: 0 0 22px;
  background: linear-gradient(180deg, rgba(109, 40, 217, 0.05) 0%, #fff 72px);
  box-shadow: var(--mk-hub-shadow);
}
.mk-quiz__format-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin: -4px 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid color-mix(in srgb, #6d28d9 18%, var(--line, #e2e8f0));
}
.mk-quiz__format-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #6d28d9;
}
.mk-quiz__format-label .mk-ic {
  width: 17px;
  height: 17px;
}
.mk-quiz__format-meta {
  font-size: 0.82rem;
  color: var(--text-muted, #64748b);
}
.mk-quiz__hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted, #64748b);
}
.mk-quiz__prompt {
  font-size: 1.1rem;
  font-weight: 650;
  margin: 0 0 14px;
  color: var(--text);
}
.mk-quiz__options {
  display: grid;
  gap: 10px;
}
.mk-quiz__option {
  width: 100%;
  text-align: left;
  justify-content: flex-start;
}
.mk-quiz__controls {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.mk-quiz-outcome {
  border-left: 4px solid var(--mk-care);
  padding-left: 14px;
}
.mk-quiz-outcome--eligible {
  border-left-color: var(--success, #16a34a);
}
.mk-quiz-outcome--maybe {
  border-left-color: #d97706;
}
.mk-quiz-outcome--ineligible {
  border-left-color: #dc2626;
}
.mk-quiz-outcomes {
  margin-top: 22px;
}

/* ---- Generic calculator (safe formula engine) ---- */
.mk-calc {
  border: 1px solid var(--line, #e2e8f0);
  border-radius: var(--mk-hub-radius);
  padding: 20px;
  margin: 0 0 22px;
  background: #fff;
  box-shadow: var(--mk-hub-shadow);
}
.mk-calc__inputs {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.mk-calc__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mk-calc__field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}
.mk-calc__unit {
  font-weight: 400;
  color: var(--text-muted, #64748b);
}
.mk-calc__field input,
.mk-calc__field select {
  padding: 9px 11px;
  border: 1px solid var(--line, #cbd5e1);
  border-radius: 10px;
  font-size: 0.95rem;
  background: #fff;
}
.mk-calc__results {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line, #e2e8f0);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.mk-calc__result {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mk-calc__result-label {
  font-size: 0.82rem;
  color: var(--text-muted, #64748b);
}
.mk-calc__result-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--mk-care);
}
.mk-calc-assumptions {
  margin-top: 18px;
}

/* ---- Editorial marketing theme (warm, human-first) ---- */
.marketing-body--editorial {
  --ed-bg: #f7f4ef;
  --ed-ink: #1c1917;
  --ed-muted: #57534e;
  --ed-line: #e7e0d6;
  --ed-accent: #b45309;
  --ed-accent-hover: #92400e;
  --ed-band: #1c1917;
  --ed-serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  background: var(--ed-bg);
  color: var(--ed-ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.marketing-body--editorial .marketing-main {
  flex: 1;
}
.marketing-body--editorial .marketing-header {
  background: rgba(247, 244, 239, 0.92);
  border-bottom-color: var(--ed-line);
}
.marketing-body--editorial .marketing-nav a {
  color: var(--ed-muted);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.marketing-body--editorial .marketing-nav a:hover,
.marketing-body--editorial .marketing-nav a[aria-current="page"] {
  color: var(--ed-ink);
  text-decoration: none;
  box-shadow: inset 0 -2px 0 var(--ed-accent);
}
.marketing-body--editorial .btn-primary {
  background: var(--ed-accent);
  border-color: var(--ed-accent);
}
.marketing-body--editorial .btn-primary:hover {
  background: var(--ed-accent-hover);
  border-color: var(--ed-accent-hover);
}
.marketing-body--editorial .btn-secondary {
  background: transparent;
  border-color: var(--ed-ink);
  color: var(--ed-ink);
}
.marketing-body--editorial .marketing-footer {
  background: var(--ed-band);
  color: #e7e5e4;
  border-top: 0;
}
.marketing-body--editorial .marketing-footer a {
  color: #d6d3d1;
}
.marketing-body--editorial .marketing-footer a:hover {
  color: #fff;
}
.marketing-body--editorial .marketing-footer__tagline,
.marketing-body--editorial .marketing-footer__legal {
  color: #a8a29e;
}
.ed-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 max(22px, env(safe-area-inset-right)) 0 max(22px, env(safe-area-inset-left));
}
.ed-serif {
  font-family: var(--ed-serif);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.ed-kicker {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ed-accent);
}
.ed-lead {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--ed-muted);
  max-width: 42rem;
}
/* Hero — lifestyle photo + overlay */
.ed-hero {
  position: relative;
  min-height: clamp(420px, 72vh, 640px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.ed-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.ed-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ed-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(28, 25, 23, 0.92) 0%,
    rgba(28, 25, 23, 0.45) 45%,
    rgba(28, 25, 23, 0.25) 100%
  );
}
.ed-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 80px) max(22px, env(safe-area-inset-right)) clamp(40px, 6vw, 64px) max(22px, env(safe-area-inset-left));
}
.ed-hero h1 {
  margin: 0 0 16px;
  font-family: var(--ed-serif);
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 500;
  line-height: 1.08;
  max-width: 14ch;
}
.ed-hero .ed-lead {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 28px;
}
.ed-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.ed-hero__actions .btn-secondary {
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
}
.ed-hero__actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}
/* Page hero (inner pages) */
.ed-page-hero {
  padding: clamp(48px, 8vw, 72px) 0 clamp(32px, 5vw, 48px);
  border-bottom: 1px solid var(--ed-line);
}
.ed-page-hero h1 {
  margin: 0 0 12px;
  font-family: var(--ed-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.12;
  max-width: 20ch;
}
/* Statement band */
.ed-statement {
  padding: clamp(48px, 7vw, 80px) 0;
  text-align: center;
  border-bottom: 1px solid var(--ed-line);
}
.ed-statement blockquote {
  margin: 0 auto;
  max-width: 28rem;
  font-family: var(--ed-serif);
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  line-height: 1.35;
  color: var(--ed-ink);
}
/* Product screen */
.ed-screen {
  margin: 0;
}
.ed-screen__img {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(28, 25, 23, 0.12);
  border: 1px solid var(--ed-line);
  background: #fff;
}
.ed-screen__img img {
  display: block;
  width: 100%;
  height: auto;
}
.ed-screen__cap {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--ed-muted);
  text-align: center;
  font-style: italic;
}
.ed-product {
  padding: clamp(40px, 6vw, 72px) 0;
}
/* Role cards — horizontal scroll on small screens */
.ed-roles {
  padding: clamp(40px, 6vw, 72px) 0;
  background: #fff;
  border-top: 1px solid var(--ed-line);
  border-bottom: 1px solid var(--ed-line);
}
.ed-roles__head {
  margin-bottom: 28px;
}
.ed-roles__head h2 {
  margin: 0 0 8px;
  font-family: var(--ed-serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 500;
}
.ed-roles__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.ed-role {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 0 0 14px;
  border-left: 3px solid var(--ed-accent);
}
.ed-role--caregiver { border-left-color: #2563eb; }
.ed-role--family { border-left-color: #0d9488; }
.ed-role--senior { border-left-color: #7c3aed; }
.ed-role h3 {
  margin: 0;
  font-family: var(--ed-serif);
  font-size: 1.25rem;
  font-weight: 500;
}
.ed-role p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ed-muted);
  flex: 1;
}
.ed-role .ed-screen__img {
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.08);
}
.ed-role .ed-screen__cap {
  text-align: left;
  font-size: 0.78rem;
}
/* Alternating story sections */
.ed-story {
  padding: clamp(48px, 7vw, 80px) 0;
  border-bottom: 1px solid var(--ed-line);
}
.ed-story__inner {
  display: grid;
  gap: 32px;
  align-items: center;
}
@media (min-width: 880px) {
  .ed-story__inner {
    grid-template-columns: 1fr 1.05fr;
  }
  .ed-story--flip .ed-story__inner {
    direction: rtl;
  }
  .ed-story--flip .ed-story__inner > * {
    direction: ltr;
  }
}
.ed-story h2 {
  margin: 0 0 12px;
  font-family: var(--ed-serif);
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
  font-weight: 500;
  line-height: 1.2;
}
.ed-story ul {
  margin: 16px 0 0;
  padding: 0 0 0 1.1rem;
  color: var(--ed-muted);
  line-height: 1.65;
  font-size: 0.95rem;
}
.ed-story li + li {
  margin-top: 6px;
}
/* Lifestyle figure */
.ed-photo {
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
}
.ed-photo img {
  display: block;
  width: 100%;
  height: auto;
}
/* Stats */
.ed-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: clamp(40px, 5vw, 56px) 0;
  border-bottom: 1px solid var(--ed-line);
}
@media (min-width: 640px) {
  .ed-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}
.ed-stat strong {
  display: block;
  font-family: var(--ed-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ed-accent);
}
.ed-stat span {
  font-size: 0.85rem;
  color: var(--ed-muted);
  line-height: 1.4;
}
/* Dark CTA */
.ed-cta {
  padding: clamp(56px, 8vw, 88px) 0;
  background: var(--ed-band);
  color: #fafaf9;
  text-align: center;
}
.ed-cta h2 {
  margin: 0 0 12px;
  font-family: var(--ed-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
}
.ed-cta p {
  margin: 0 0 24px;
  color: #a8a29e;
}
.ed-cta .btn-primary {
  background: var(--ed-accent);
}
/* Pricing — editorial cards */
.ed-pricing {
  padding: clamp(40px, 6vw, 64px) 0;
}
.ed-pricing__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.ed-plan {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--ed-line);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
}
.ed-plan--featured {
  border-color: var(--ed-accent);
  box-shadow: 0 0 0 1px var(--ed-accent);
}
.ed-plan h3 {
  margin: 0 0 4px;
  font-family: var(--ed-serif);
  font-size: 1.35rem;
  font-weight: 500;
}
.ed-plan__price {
  margin: 0 0 16px;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--ed-ink);
}
.ed-plan__price small {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--ed-muted);
}
.ed-plan ul {
  margin: 0 0 20px;
  padding: 0 0 0 1rem;
  flex: 1;
  font-size: 0.9rem;
  color: var(--ed-muted);
  line-height: 1.55;
}
.ed-plan .btn {
  width: 100%;
  text-align: center;
}
/* FAQ */
.ed-faq {
  padding: clamp(32px, 5vw, 48px) 0 clamp(48px, 7vw, 72px);
}
.ed-faq-item {
  border-bottom: 1px solid var(--ed-line);
}
.ed-faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border: 0;
  background: none;
  text-align: left;
  font-family: var(--ed-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ed-ink);
  cursor: pointer;
}
.ed-faq-q::after {
  content: "+";
  font-family: system-ui, sans-serif;
  font-size: 1.25rem;
  color: var(--ed-muted);
  flex-shrink: 0;
}
.ed-faq-item.is-open .ed-faq-q::after {
  content: "−";
}
.ed-faq-a {
  display: none;
  padding: 0 0 20px;
  color: var(--ed-muted);
  line-height: 1.65;
  font-size: 0.95rem;
}
.ed-faq-item.is-open .ed-faq-a {
  display: block;
}
.ed-faq-section {
  margin: 32px 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ed-accent);
}
/* Contact */
.ed-contact {
  display: grid;
  gap: 40px;
  padding: clamp(32px, 5vw, 56px) 0 clamp(56px, 8vw, 80px);
}
@media (min-width: 880px) {
  .ed-contact {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
.ed-contact .mk-form label span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ed-ink);
}
.ed-contact input,
.ed-contact textarea {
  border-radius: 4px;
  border-color: var(--ed-line);
  background: #fff;
}
.marketing-body--editorial .mk-breadcrumbs {
  font-size: 0.82rem;
  color: var(--ed-muted);
}
.marketing-body--editorial .mk-breadcrumbs a {
  color: var(--ed-muted);
}

/* =============================================================================
   Product-forward marketing (TakeCareOS / Cursor / Caregiver Scheduling style)
   ============================================================================= */
.marketing-body--product {
  --pf-ink: #0f172a;
  --pf-muted: #64748b;
  --pf-line: #e2e8f0;
  --pf-surface: #f8fafc;
  --pf-dark: #0b1220;
  --pf-dark-2: #111827;
  --pf-accent: #2563eb;
  --pf-accent-soft: #dbeafe;
  --pf-wrap: 1180px;
  background: #fff;
  color: var(--pf-ink);
}
.marketing-body--product .marketing-main {
  padding-top: var(--mk-header-h, 63px);
}
.marketing-body--product .marketing-header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: var(--pf-line);
}
.marketing-body--product .marketing-footer {
  background: var(--pf-dark);
  color: #94a3b8;
  border-top: 0;
}
.marketing-body--product .marketing-footer strong,
.marketing-body--product .marketing-footer__heading {
  color: #f1f5f9;
}
.marketing-body--product .marketing-footer a {
  color: #cbd5e1;
}
.marketing-body--product .marketing-footer__tagline {
  color: #94a3b8;
}
.marketing-body--product .mk-breadcrumbs {
  max-width: var(--pf-wrap);
  margin: 0 auto;
  padding: 12px 20px;
  font-size: 0.82rem;
  color: var(--pf-muted);
}
.pf-wrap {
  max-width: var(--pf-wrap);
  margin: 0 auto;
  padding-left: var(--mk-gutter-left);
  padding-right: var(--mk-gutter-right);
  box-sizing: border-box;
}
.pf-eyebrow {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pf-accent);
}
.pf-eyebrow--light {
  color: #93c5fd;
}
.pf-lead {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--pf-muted);
}
.pf-lead--light {
  color: #cbd5e1;
}
.pf-muted {
  color: var(--pf-muted);
  font-size: 0.92rem;
}
/* Hero */
.pf-hero {
  padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 80px);
  background:
    radial-gradient(ellipse 80% 60% at 70% -10%, rgba(37, 99, 235, 0.18), transparent),
    linear-gradient(180deg, #0b1220 0%, #111827 42%, #0f172a 100%);
  color: #f8fafc;
}
.pf-hero__grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 960px) {
  .pf-hero__grid {
    grid-template-columns: 1fr 1.15fr;
    gap: 48px;
  }
}
.pf-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4.8vw, 3.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.pf-rotate {
  display: inline-block;
  position: relative;
  color: #93c5fd;
  min-width: 8ch;
}
.pf-rotate span {
  display: none;
}
.pf-rotate span.is-active {
  display: inline;
}
.pf-hero .pf-lead {
  color: #cbd5e1;
  margin-bottom: 24px;
}
.pf-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  margin-bottom: 24px;
}
.pf-hero__actions .btn-secondary {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: transparent;
}
.pf-hero__actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}
.pf-trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 0.88rem;
  color: #94a3b8;
}
.pf-trust li::before {
  content: "✓ ";
  color: #60a5fa;
  font-weight: 700;
}
.pf-hero__product .pf-frame {
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
}
/* Browser frame */
.pf-frame {
  margin: 0;
}
.pf-frame__chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #1e293b;
  border: 1px solid #334155;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}
.pf-frame__dots {
  display: flex;
  gap: 6px;
}
.pf-frame__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #475569;
}
.pf-frame__dots span:nth-child(1) { background: #ef4444; }
.pf-frame__dots span:nth-child(2) { background: #eab308; }
.pf-frame__dots span:nth-child(3) { background: #22c55e; }
.pf-frame__url {
  flex: 1;
  font-size: 0.75rem;
  color: #94a3b8;
  background: #0f172a;
  border-radius: 6px;
  padding: 6px 12px;
  font-family: ui-monospace, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pf-frame__screen {
  border: 1px solid #334155;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  line-height: 0;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.pf-sandbox-frame .pf-frame__screen {
  border-top: 0;
  border-radius: 0 0 12px 12px;
  box-shadow: none;
  line-height: normal;
  overflow: visible;
}
.pf-frame__screen img {
  width: 100%;
  height: auto;
  display: block;
}
.pf-frame__cap {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--pf-muted);
  text-align: center;
}
/* Showcase tabs */
.pf-showcase {
  padding: clamp(56px, 8vw, 88px) 0;
  background: var(--pf-surface);
  border-bottom: 1px solid var(--pf-line);
}
.pf-showcase__head {
  margin-bottom: 28px;
}
.pf-showcase__head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
}
.pf-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.pf-tab {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--pf-line);
  background: #fff;
  color: var(--pf-muted);
  cursor: pointer;
  transition: background 140ms, border-color 140ms, color 140ms;
}
.pf-tab:hover {
  border-color: var(--pf-accent);
  color: var(--pf-accent);
}
.pf-tab.is-active {
  background: var(--pf-accent);
  border-color: var(--pf-accent);
  color: #fff;
}
.pf-pane {
  display: none;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
.pf-pane.is-active {
  display: grid;
}
@media (min-width: 900px) {
  .pf-pane.is-active {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}
.pf-pane__copy h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.pf-pane__copy p {
  margin: 0 0 16px;
  color: var(--pf-muted);
  line-height: 1.55;
}
.pf-checks {
  margin: 0;
  padding: 0;
  list-style: none;
}
.pf-checks li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 8px;
  font-size: 0.92rem;
  color: var(--pf-ink);
}
.pf-checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--pf-accent);
  font-weight: 700;
}
/* Marquee */
.pf-marquee {
  overflow: hidden;
  max-width: 100%;
  contain: paint;
  padding: 16px 0;
  background: var(--pf-dark);
  border-bottom: 1px solid #1e293b;
}
.pf-marquee__track {
  display: flex;
  width: max-content;
  animation: pf-marquee 48s linear infinite;
  will-change: transform;
}
.pf-marquee__group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 32px;
  padding-right: 32px;
}
.pf-marquee__group span {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  white-space: nowrap;
}
@keyframes pf-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .pf-marquee__track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    gap: 12px 32px;
    padding: 0 20px;
  }
  .pf-marquee__group {
    padding-right: 0;
  }
  .pf-marquee__group:nth-child(2) {
    display: none;
  }
}
/* Feature sections */
.pf-feature {
  padding: clamp(56px, 8vw, 88px) 0;
  border-bottom: 1px solid var(--pf-line);
}
.pf-feature--muted {
  background: var(--pf-surface);
}
.pf-feature--dark {
  background: linear-gradient(165deg, #0b1220 0%, #1e3a5f 55%, #0b1220 100%);
  color: #f1f5f9;
  border-bottom-color: #1e293b;
}
.pf-feature--dark h2 {
  color: #fff;
}
.pf-feature__grid {
  display: grid;
  gap: 32px;
  align-items: center;
}
@media (min-width: 900px) {
  .pf-feature__grid {
    grid-template-columns: 1fr 1.1fr;
  }
  .pf-feature__grid--flip > *:first-child {
    order: 2;
  }
  .pf-feature__grid--flip > *:last-child {
    order: 1;
  }
}
.pf-feature h2 {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
/* Pain band */
.pf-pain {
  padding: clamp(56px, 8vw, 80px) 0;
  background: var(--pf-dark);
  color: #e2e8f0;
  text-align: center;
}
.pf-pain h2 {
  margin: 0 auto 36px;
  max-width: 22ch;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  color: #fff;
}
.pf-pain__grid {
  display: grid;
  gap: 20px;
  text-align: left;
}
@media (min-width: 768px) {
  .pf-pain__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.pf-pain__grid article {
  padding: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
}
.pf-pain__grid h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: #f8fafc;
}
.pf-pain__grid p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #94a3b8;
}
/* Stats */
.pf-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: clamp(40px, 6vw, 56px) 0;
  border-bottom: 1px solid var(--pf-line);
  text-align: center;
}
@media (min-width: 640px) {
  .pf-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}
.pf-stats strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pf-accent);
  letter-spacing: -0.02em;
}
.pf-stats span {
  font-size: 0.85rem;
  color: var(--pf-muted);
}
/* CTA */
.pf-cta {
  padding: clamp(56px, 8vw, 88px) 0;
  text-align: center;
  background: linear-gradient(180deg, var(--pf-surface) 0%, #fff 100%);
}
.pf-cta h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}
.pf-cta p {
  margin: 0 0 24px;
  color: var(--pf-muted);
}
.pf-cta .btn-secondary {
  margin-left: 12px;
}
/* Page hero */
.pf-page-hero {
  padding: clamp(48px, 7vw, 72px) 0 clamp(32px, 5vw, 48px);
  background: linear-gradient(170deg, var(--pf-accent-soft) 0%, #fff 55%);
  border-bottom: 1px solid var(--pf-line);
}
.pf-page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 22ch;
}
.pf-page-hero--wide h1 {
  max-width: 32ch;
}
.pf-page-hero--wide .pf-hero__actions {
  margin-top: 24px;
}
.pf-feature__narrow {
  max-width: 45rem;
  margin: 0 auto;
}
.pf-feature__narrow h2 {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  letter-spacing: -0.02em;
}
/* Feature nav */
.pf-feature-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0;
  position: sticky;
  top: 58px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--pf-line);
}
.pf-feature-nav a {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--pf-line);
  color: var(--pf-muted);
  text-decoration: none;
  transition: border-color 140ms, color 140ms;
}
.pf-feature-nav a:hover {
  border-color: var(--pf-accent);
  color: var(--pf-accent);
}
/* Pricing */
.pf-pricing-hero__inner {
  max-width: 40rem;
}
.pf-pricing-persona-shell {
  margin-top: 28px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.28);
}
.pf-pricing-persona-label {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #93c5fd;
}
.pf-pricing-personas {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.pf-pricing-persona {
  border: 2px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.65);
  color: #e2e8f0;
  font: inherit;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: border-color 140ms, background 140ms, color 140ms, transform 140ms, box-shadow 140ms;
}
.pf-pricing-persona__title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
}
.pf-pricing-persona__hint {
  display: block;
  margin-top: 2px;
  font-size: 0.74rem;
  font-weight: 500;
  color: #94a3b8;
}
.pf-pricing-persona:hover {
  border-color: #7dd3fc;
  transform: translateY(-1px);
}
.pf-pricing-persona.is-active {
  background: linear-gradient(145deg, #2563eb, #1d4ed8);
  border-color: #7dd3fc;
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}
.pf-pricing-persona.is-active .pf-pricing-persona__hint {
  color: rgba(255, 255, 255, 0.82);
}
.pf-pricing-trust {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
  padding: 20px 0 0;
  margin-top: -8px;
}
@media (min-width: 720px) {
  .pf-pricing-trust {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}
.pf-pricing-trust__item {
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--pf-line);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}
.pf-pricing-trust__item strong {
  display: block;
  font-size: 0.92rem;
  color: var(--pf-ink);
}
.pf-pricing-trust__item span {
  font-size: 0.8rem;
  color: var(--pf-muted);
}
.pf-pricing {
  padding: clamp(32px, 5vw, 48px) 0 clamp(48px, 6vw, 64px);
}
.pf-pricing__hint {
  margin: 0 0 20px;
  font-size: 0.95rem;
  color: var(--pf-muted);
  text-align: center;
}
.pf-pricing__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.pf-pricing__grid--solo {
  max-width: 420px;
  margin: 0 auto;
}
.pf-pricing__grid--family {
  max-width: 420px;
  margin: 0 auto;
  grid-template-columns: 1fr;
}
.pf-pricing__grid--agency {
  max-width: 420px;
  margin: 0 auto;
}
.pf-plan {
  position: relative;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--pf-line);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  transition: transform 200ms, box-shadow 200ms;
}
.pf-plan:not([hidden]):hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}
.pf-plan.is-visible {
  animation: pf-plan-in 280ms ease;
}
@keyframes pf-plan-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.pf-plan--featured {
  border-color: var(--pf-accent);
  box-shadow: 0 0 0 1px var(--pf-accent), 0 12px 40px rgba(37, 99, 235, 0.12);
}
.pf-plan__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pf-accent);
  background: rgba(37, 99, 235, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
}
.pf-plan h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}
.pf-plan__trial {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pf-accent);
}
.pf-plan__desc {
  margin: 0 0 12px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--pf-muted);
}
.pf-plan__pain {
  margin: 0 0 10px;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.45;
  color: #b45309;
}
.pf-plan__payback {
  margin: 0 0 14px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(44, 193, 234, 0.1);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--pf-ink);
}
.pf-plan__under {
  margin: 10px 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
  color: var(--pf-muted);
}
.pf-plan__expand {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--pf-accent);
  cursor: pointer;
  text-align: left;
}
.pf-plan__expand:hover {
  text-decoration: underline;
}
.pf-plan__price {
  margin: 0 0 16px;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.pf-plan__price small {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--pf-muted);
}
.pf-plan ul,
.pf-plan__bullets {
  margin: 0 0 20px;
  padding: 0 0 0 1rem;
  flex: 1;
  font-size: 0.9rem;
  color: var(--pf-muted);
  line-height: 1.55;
}
.pf-plan .btn {
  width: 100%;
  text-align: center;
}
.pf-pricing-agency-included,
.pf-pricing-family-note {
  margin-top: 28px;
  padding: 22px 24px;
  border: 1px solid var(--pf-line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(44, 193, 234, 0.08), #fff);
}
.pf-pricing-agency-included h3,
.pf-pricing-family-note h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}
.pf-pricing-agency-included__lead,
.pf-pricing-family-note__body {
  margin: 0 0 14px;
  color: var(--pf-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 52rem;
}
.pf-pricing-family-note__body {
  margin-bottom: 0;
}
.pf-pricing-calc {
  display: grid;
  gap: 28px;
  margin-top: 40px;
  padding: clamp(24px, 4vw, 32px);
  background: linear-gradient(145deg, #0f172a, #1e293b);
  border-radius: 16px;
  color: #e2e8f0;
}
@media (min-width: 800px) {
  .pf-pricing-calc {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
  }
  .pf-pricing-calc__callouts {
    grid-column: 1 / -1;
  }
}
.pf-pricing-calc__controls h2 {
  margin: 8px 0 12px;
  color: #fff;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
}
.pf-pricing-calc__count {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: #94a3b8;
}
.pf-pricing-calc__count strong {
  display: block;
  font-size: clamp(2rem, 5vw, 2.6rem);
  line-height: 1.05;
  color: #7dd3fc;
}
.pf-pricing-calc__seat-value {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(44, 193, 234, 0.1);
  border: 1px solid rgba(125, 211, 252, 0.35);
}
.pf-pricing-calc__seat-value h3 {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7dd3fc;
}
.pf-pricing-calc__seat-value ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
  color: #dbeafe;
}
.pf-pricing-calc__seat-value li {
  position: relative;
  padding: 4px 0 4px 18px;
}
.pf-pricing-calc__seat-value li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #86efac;
  font-weight: 800;
}
.pf-pricing-calc__panel {
  padding: 20px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
}
.pf-pricing-calc__rows {
  display: grid;
  gap: 0;
}
.pf-pricing-calc__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.92rem;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.25);
}
.pf-pricing-calc__row:last-child {
  border-bottom: 0;
}
.pf-pricing-calc__row--total {
  padding-top: 12px;
  margin-top: 4px;
  font-size: 1rem;
}
.pf-pricing-calc__row--total strong {
  font-size: 1.65rem;
  color: #fff;
}
.pf-pricing-calc__row--save {
  color: #86efac;
  font-weight: 700;
}
.pf-pricing-calc__row--vendor {
  color: #fca5a5;
}
.pf-pricing-calc__row--vendor span:last-child {
  font-weight: 600;
}
.pf-pricing-calc__save-note {
  margin: 4px 0 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: #86efac;
  font-style: italic;
}
.pf-pricing-calc__stack-note {
  margin: 10px 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #94a3b8;
}
.pf-pricing-calc__estimate-note {
  margin: 8px 0 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: #94a3b8;
  font-style: italic;
}
.pf-pricing-calc__estimate {
  margin: 12px 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #94a3b8;
}
.pf-pricing-calc__callouts {
  display: grid;
  gap: 12px;
}
@media (min-width: 720px) {
  .pf-pricing-calc__callouts {
    grid-template-columns: 1fr 1fr;
  }
}
.pf-pricing-calc__callout {
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.pf-pricing-calc__callout strong {
  display: block;
  margin-bottom: 6px;
}
.pf-pricing-calc__callout p {
  margin: 0;
}
.pf-pricing-calc__callout--warn {
  background: rgba(239, 68, 68, 0.12);
  border-left: 4px solid #f87171;
}
.pf-pricing-calc__callout--warn strong {
  color: #fecaca;
}
.pf-pricing-calc__callout--gain {
  background: rgba(44, 193, 234, 0.12);
  border-left: 4px solid #7dd3fc;
}
.pf-pricing-calc__callout--gain strong {
  color: #bae6fd;
}
.pf-pricing-built-in,
.pf-pricing-compare,
.pf-pricing-evidence {
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--pf-line);
}
.pf-pricing-built-in__title,
.pf-pricing-compare__title,
.pf-pricing-evidence__title {
  margin: 8px 0 16px;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
}
.pf-pricing-built-in__costs-lead {
  margin: -8px 0 14px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--pf-muted);
  font-style: italic;
}
.pf-pricing-built-in__grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.pf-pricing-built-in__item {
  padding: 14px 16px;
  border: 1px solid var(--pf-line);
  border-left: 4px solid var(--pf-accent);
  border-radius: 12px;
  background: #fff;
}
.pf-pricing-built-in__item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.92rem;
  color: var(--pf-ink);
}
.pf-pricing-built-in__item span {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--pf-muted);
}
.pf-pricing-built-in__costs {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--pf-ink);
}
.pf-pricing-built-in__costs em {
  font-style: normal;
  font-weight: 600;
  color: var(--pf-muted);
}
.pf-pricing-built-in__cost-note {
  margin: 8px 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--pf-muted);
}
.pf-pricing-built-in__footnote {
  margin: 14px 0 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--pf-muted);
}
.pf-pricing-built-in__stack {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid var(--pf-line);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(44, 193, 234, 0.08), rgba(255, 255, 255, 0.9));
}
.pf-pricing-built-in__stack-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: var(--pf-ink);
}
.pf-pricing-built-in__stack-lead {
  margin: 0 0 14px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--pf-muted);
}
.pf-pricing-built-in__stack-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.pf-pricing-built-in__stack-stat {
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--pf-line);
}
.pf-pricing-built-in__stack-stat--rithma {
  border-color: rgba(44, 193, 234, 0.45);
  box-shadow: inset 0 0 0 1px rgba(44, 193, 234, 0.12);
}
.pf-pricing-built-in__stack-label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pf-muted);
}
.pf-pricing-built-in__stack-value {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  color: var(--pf-ink);
}
.pf-pricing-built-in__stack-unit {
  margin-left: 4px;
  font-size: 0.82rem;
  color: var(--pf-muted);
}
.pf-pricing-built-in__stack-save {
  margin: 12px 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--pf-ink);
}
.pf-pricing-built-in__stack-save strong {
  color: #047857;
}
.pf-pricing-compare__scroll {
  overflow-x: auto;
}
.pf-pricing-compare__table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.pf-pricing-compare__table th,
.pf-pricing-compare__table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--pf-line);
  text-align: left;
}
.pf-pricing-compare__table thead th {
  background: var(--pf-ink);
  color: #fff;
  font-size: 0.82rem;
}
.pf-pricing-compare__table tbody th {
  font-weight: 600;
  color: var(--pf-ink);
}
.pf-pricing-compare__yes {
  color: #059669;
  font-weight: 800;
}
.pf-pricing-compare__no {
  color: #94a3b8;
}
.pf-pricing-compare__footnote {
  margin: 10px 0 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--pf-muted);
}
.pf-pricing-compare--solo .pf-pricing-compare__col--solo {
  background: rgba(44, 193, 234, 0.06);
}
.pf-pricing-compare--solo thead .pf-pricing-compare__col--solo {
  background: var(--pf-accent);
  color: #fff;
}
.pf-pricing-evidence__grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.pf-pricing-evidence__card {
  padding: 16px;
  border: 1px solid var(--pf-line);
  border-radius: 12px;
  background: #fff;
}
.pf-pricing-evidence__value {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--pf-ink);
}
.pf-pricing-evidence__summary {
  margin: 6px 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--pf-muted);
}
.pf-pricing-evidence__source {
  margin: 8px 0 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.pf-pricing-evidence__source a {
  color: var(--pf-accent);
  text-decoration: none;
}
.pf-pricing-evidence__source a:hover {
  text-decoration: underline;
}
.pf-pricing-evidence__footnote {
  margin: 14px 0 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--pf-muted);
  font-style: italic;
}
.pf-pricing-sources {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--pf-line);
}
.pf-pricing-sources p {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--pf-muted);
}
.pf-pricing-calc__panel label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.pf-pricing-calc__slider-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.pf-pricing-calc__slider-row input[type="range"] {
  flex: 1;
}
.pf-pricing-calc__slider-row input[type="number"] {
  width: 72px;
}
.pf-pricing-calc__meter {
  height: 6px;
  margin: 16px 0;
  background: rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  overflow: hidden;
}
.pf-pricing-calc__meter-fill {
  display: block;
  height: 100%;
  width: 33%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 999px;
  transition: width 200ms ease;
}
.pf-pricing-calc__total {
  margin: 0;
  font-size: 1.1rem;
}
.pf-pricing-calc__total strong {
  font-size: 2rem;
  color: #fff;
}
.pf-pricing-calc__per {
  margin: 12px 0 0;
  font-size: 0.88rem;
  color: #94a3b8;
}
.pf-pricing-calc__note {
  margin: 10px 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #94a3b8;
}
.pf-pricing-faq {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--pf-line);
}
.pf-pricing-faq__title {
  margin: 0 0 20px;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  text-align: center;
}
.pf-pricing-faq__details {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto;
}
.pf-pricing-faq__item {
  border: 1px solid var(--pf-line);
  border-radius: 12px;
  padding: 0 16px;
  background: #fff;
}
.pf-pricing-faq__item summary {
  padding: 14px 0;
  font-weight: 700;
  color: var(--pf-ink);
  cursor: pointer;
  list-style: none;
}
.pf-pricing-faq__item summary::-webkit-details-marker {
  display: none;
}
.pf-pricing-faq__answer {
  padding: 0 0 14px;
}
.pf-pricing-faq__answer p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--pf-muted);
}
.pf-pricing-faq__answer a {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 600;
}
.pf-pricing-faq__more {
  margin: 20px 0 0;
  text-align: center;
  font-size: 0.9rem;
}
.pf-cta__split {
  display: grid;
  gap: 20px;
  align-items: center;
  text-align: center;
}
@media (min-width: 720px) {
  .pf-cta__split {
    grid-template-columns: 1fr auto;
    text-align: left;
  }
}
.pf-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
@media (min-width: 720px) {
  .pf-cta__actions {
    justify-content: flex-end;
  }
}
.pf-calc {
  margin-top: 36px;
  max-width: 360px;
  padding: 20px;
  background: var(--pf-surface);
  border: 1px solid var(--pf-line);
  border-radius: 12px;
}
.pf-calc label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.pf-calc input {
  max-width: 100px;
  margin-bottom: 12px;
}
.pf-calc #pricing-calc-tier {
  font-size: 0.88rem;
  color: var(--pf-muted);
}
/* FAQ */
.pf-faq-hero__inner {
  max-width: 40rem;
}
.pf-faq-hero__link {
  color: #93c5fd;
}
.pf-faq-search {
  margin-top: 24px;
}
.pf-faq-search__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.pf-faq-search__input {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.45);
  color: #fff;
}
.pf-faq-search__input::placeholder {
  color: #64748b;
}
.pf-faq-search__meta {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: #94a3b8;
  min-height: 1.2em;
}
.pf-faq {
  display: grid;
  gap: 28px;
  padding: clamp(32px, 5vw, 48px) 0 clamp(48px, 7vw, 72px);
}
@media (min-width: 900px) {
  .pf-faq {
    grid-template-columns: 200px 1fr;
    align-items: start;
  }
}
.pf-faq-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: sticky;
  top: 72px;
}
@media (min-width: 900px) {
  .pf-faq-nav {
    flex-direction: column;
    flex-wrap: nowrap;
  }
}
.pf-faq-nav__btn {
  border: 1px solid var(--pf-line);
  background: #fff;
  color: var(--pf-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  text-align: left;
  transition: border-color 140ms, color 140ms, background 140ms;
}
.pf-faq-nav__btn.is-active {
  border-color: var(--pf-accent);
  background: rgba(37, 99, 235, 0.08);
  color: var(--pf-accent);
}
.pf-faq__empty {
  margin: 0 0 20px;
  padding: 16px;
  border-radius: 12px;
  background: var(--pf-surface);
  color: var(--pf-muted);
}
.pf-faq__group {
  margin-bottom: 24px;
}
.pf-faq__item {
  border-bottom: 1px solid var(--pf-line);
}
.pf-faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border: 0;
  background: none;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--pf-ink);
  cursor: pointer;
}
.pf-faq__q::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--pf-muted);
  flex-shrink: 0;
  transition: transform 200ms;
}
.pf-faq__item.is-open .pf-faq__q::after {
  content: "−";
}
.pf-faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 240ms ease;
}
.pf-faq__a > p {
  overflow: hidden;
  min-height: 0;
  margin: 0;
}
.pf-faq__item.is-open .pf-faq__a {
  grid-template-rows: 1fr;
  padding-bottom: 20px;
}
.pf-faq__item.is-open .pf-faq__a > p {
  color: var(--pf-muted);
  line-height: 1.65;
  font-size: 0.95rem;
}
.pf-faq__section {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pf-accent);
}
.pf-cta .pf-lead {
  margin-inline: auto;
  text-align: center;
}
.pf-cta--dark {
  background: linear-gradient(165deg, #0b1220 0%, #1e293b 100%);
  color: #e2e8f0;
}
.pf-cta--dark h2 {
  color: #fff;
}
.pf-cta--dark .pf-lead--light {
  color: #94a3b8;
}
.pf-cta--dark .btn-secondary {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.45);
  color: #e2e8f0;
}
.pf-cta--dark .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: #93c5fd;
  color: #fff;
}
.pf-cta--centered .pf-wrap {
  text-align: center;
}
.pf-cta--centered h2,
.pf-cta--centered .pf-lead {
  margin-inline: auto;
  text-align: center;
}
.pf-cta--centered .pf-cta__actions {
  justify-content: center;
}
/* Contact */
.pf-contact-hero__grid {
  display: grid;
  gap: 24px;
  align-items: end;
}
@media (min-width: 720px) {
  .pf-contact-hero__grid {
    grid-template-columns: 1fr auto;
  }
}
.pf-contact-hero__pulse {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 0.88rem;
  color: #94a3b8;
}
.pf-contact-hero__pulse strong {
  display: block;
  color: #e2e8f0;
  font-size: 0.95rem;
}
.pf-contact-hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: pf-contact-pulse 2s ease infinite;
}
@keyframes pf-contact-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
  50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}
.pf-contact {
  display: grid;
  gap: 28px;
  padding: clamp(32px, 5vw, 56px) 0 clamp(56px, 8vw, 80px);
}
@media (min-width: 880px) {
  .pf-contact {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }
}
.pf-contact__label {
  margin: 0 0 12px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--pf-muted);
}
.pf-contact-topics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
@media (min-width: 560px) {
  .pf-contact-topics {
    grid-template-columns: repeat(4, 1fr);
  }
}
.pf-contact-topic {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--pf-line);
  border-radius: 12px;
  background: var(--pf-surface);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pf-ink);
  cursor: pointer;
  text-align: center;
  transition: border-color 140ms, background 140ms, box-shadow 140ms;
}
.pf-contact-topic:hover {
  border-color: var(--pf-accent);
}
.pf-contact-topic.is-active {
  border-color: var(--pf-accent);
  background: rgba(37, 99, 235, 0.08);
  box-shadow: 0 0 0 1px var(--pf-accent);
}
.pf-contact-charcount {
  margin: -8px 0 12px;
  text-align: right;
}
.pf-contact-success {
  text-align: center;
  padding: 24px 8px;
}
.pf-contact-success__icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
  font-weight: 700;
}
.pf-contact-bento {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}
.pf-contact-bento__tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--pf-line);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 140ms, transform 140ms, box-shadow 140ms;
}
.pf-contact-bento__tile:hover {
  border-color: var(--pf-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.pf-contact-bento__kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pf-accent);
}
.pf-contact__form {
  padding: 28px;
  border-radius: 12px;
  border: 1px solid var(--pf-line);
  background: #fff;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}
/* Team / photo */
.pf-feature--team {
  text-align: center;
}
.pf-feature--team .pf-team__grid {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}
.pf-about-name {
  padding: clamp(56px, 8vw, 72px) 0 0;
  background: #fff;
  border-bottom: 1px solid var(--pf-line);
}
.pf-about-name__head {
  margin: 0 auto clamp(36px, 5vw, 52px);
  text-align: center;
  max-width: 44rem;
}
.pf-about-name__head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.pf-about-name__head .pf-lead {
  margin: 0 auto;
}
.pf-about-name__split {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
}
@media (min-width: 900px) {
  .pf-about-name__split {
    grid-template-columns: 1fr 1fr;
    min-height: 320px;
  }
}
.pf-about-name__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 56px) clamp(24px, 5vw, 64px);
  text-align: left;
}
@media (min-width: 900px) {
  .pf-about-name__panel--rhythm {
    padding-right: clamp(48px, 8vw, 96px);
  }
  .pf-about-name__panel--algorithm {
    padding-left: clamp(48px, 8vw, 96px);
  }
}
.pf-about-name__panel--rhythm {
  background:
    radial-gradient(900px 280px at 0% 0%, rgba(59, 130, 246, 0.14), transparent 60%),
    linear-gradient(165deg, #eff6ff 0%, #f8fafc 100%);
  border-top: 1px solid rgba(59, 130, 246, 0.15);
}
.pf-about-name__panel--algorithm {
  background:
    radial-gradient(900px 280px at 100% 0%, rgba(30, 58, 138, 0.12), transparent 60%),
    linear-gradient(195deg, #eef2ff 0%, #f8fafc 100%);
  border-top: 1px solid rgba(30, 58, 138, 0.12);
}
@media (min-width: 900px) {
  .pf-about-name__panel--algorithm {
    border-top: none;
    border-left: 1px solid var(--pf-line);
  }
}
.pf-about-name__kicker {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pf-about-name__panel--rhythm .pf-about-name__kicker {
  color: #1d4ed8;
}
.pf-about-name__panel--algorithm .pf-about-name__kicker {
  color: #1e3a8a;
}
.pf-about-name__panel h3 {
  margin: 0 0 12px;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--pf-ink);
}
.pf-about-name__panel p {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(0.92rem, 1.6vw, 1rem);
  line-height: 1.6;
  color: var(--pf-muted);
}
.pf-about-name__merge {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 24px;
  background: #fff;
  border-top: 1px solid var(--pf-line);
  border-bottom: 1px solid var(--pf-line);
}
@media (min-width: 900px) {
  .pf-about-name__merge {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    padding: 14px 22px;
    border: 1px solid var(--pf-line);
    border-radius: 999px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
  }
}
.pf-about-name__merge-word {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--pf-accent);
  white-space: nowrap;
}
.pf-about-name__def {
  width: 100%;
  margin: 0;
  padding: clamp(28px, 4vw, 40px) 0;
  border: none;
  background: linear-gradient(165deg, #0b1220 0%, #1e293b 100%);
  color: #e2e8f0;
  text-align: center;
  font-size: clamp(1rem, 1.8vw, 1.08rem);
  line-height: 1.55;
}
.pf-about-name__def p {
  margin: 0 auto;
  max-width: 44rem;
}
.pf-about-name__def strong {
  color: #fff;
}
.pf-about-name__def em {
  color: #93c5fd;
  font-style: normal;
  font-weight: 600;
}
.pf-team__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 24px;
}
.pf-card {
  padding: 20px;
  border: 1px solid var(--pf-line);
  border-radius: 12px;
  background: var(--pf-surface);
}
.pf-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}
.pf-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--pf-muted);
  line-height: 1.5;
}
.pf-photo {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}
.pf-photo img {
  display: block;
  width: 100%;
  height: auto;
}
.pf-scene {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
  background: #e2e8f0;
}
.pf-scene__img,
.pf-scene__img img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}
.pf-scene__cap {
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--pf-muted);
  background: #fff;
  border-top: 1px solid var(--pf-line);
}
.pf-hero .pf-scene {
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
}
.pf-feature--dark .pf-scene {
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}
.pf-mission-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-height: clamp(200px, 28vw, 320px);
  max-width: 560px;
  border-radius: 16px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(44, 193, 234, 0.22), transparent),
    linear-gradient(170deg, #0b1220 0%, #1e3a5f 100%);
  box-shadow: 0 20px 48px rgba(11, 18, 32, 0.18);
  padding: clamp(32px, 5vw, 48px);
}
.pf-mission-banner__logo {
  display: block;
  width: min(72%, 360px);
  height: auto;
}
@media (min-width: 900px) {
  .pf-mission-banner {
    margin-inline: 0;
  }
}
@media (max-width: 640px) {
  .pf-cta .btn-secondary {
    margin-left: 0;
    margin-top: 12px;
  }
  .pf-cta .btn-primary,
  .pf-cta .btn-secondary {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
  .pf-cta__actions {
    flex-direction: column;
    width: 100%;
  }
  .pf-cta__actions .btn {
    width: 100%;
  }
  .pf-hero__actions,
  .pf-page-hero--dark .pf-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .pf-hero__actions .btn {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
  .pf-page-hero h1 {
    max-width: none;
  }
  .pf-feature-nav {
    top: 52px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .pf-feature-nav::-webkit-scrollbar {
    display: none;
  }
  .pf-feature-nav a {
    flex-shrink: 0;
  }
}

/* AI, platform, integrations, sandbox */
.pf-page-hero--dark {
  background: linear-gradient(165deg, #0b1220 0%, #1e293b 100%);
  color: #f8fafc;
  padding: clamp(48px, 8vw, 80px) 0;
  border-bottom: 0;
}
.pf-page-hero--dark h1 {
  color: #fff;
}
.pf-checks--light {
  color: rgba(248, 250, 252, 0.92);
}
.pf-checks--light li {
  color: #e2e8f0;
}
.pf-checks--light li::before {
  color: #93c5fd;
}
.pf-lang {
  padding: clamp(40px, 6vw, 64px) 0;
  border-bottom: 1px solid var(--pf-line);
}
.pf-lang--home {
  background: var(--pf-surface);
}
.pf-lang--dark {
  background: linear-gradient(165deg, #0b1220 0%, #1e3a5f 55%, #0b1220 100%);
  color: #f1f5f9;
  border-bottom-color: #1e293b;
}
.pf-lang--dark h2 {
  color: #fff;
}
.pf-lang--dark .pf-lang__chips li span {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
}
.pf-lang--home .pf-lang__copy {
  text-align: left;
}

/* Knowledge Hub page headers on product shell */
.marketing-body--product .mk-kb-pagehead {
  background: var(--pf-surface);
  border-bottom: 1px solid var(--pf-line);
}
.marketing-body--product .pf-page-hero + .pf-feature {
  background: var(--pf-surface);
}
.marketing-body--product .mk-kb-pagehead .pf-wrap {
  padding-top: clamp(40px, 6vw, 56px);
  padding-bottom: clamp(32px, 5vw, 48px);
}
.marketing-body--product .mk-section.mk-agent.pf-feature {
  padding-top: clamp(56px, 8vw, 88px);
  padding-bottom: clamp(56px, 8vw, 88px);
  border-bottom: 1px solid var(--pf-line);
}

/* Knowledge Hub — product-forward styling on /marketing */
.pf-hub-hero__inner {
  max-width: 44rem;
}
.pf-hub-hero h1 {
  max-width: none;
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  line-height: 1.12;
}
.pf-hub-hero__hl {
  background: linear-gradient(120deg, #93c5fd, #5eead4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pf-hub-search {
  margin-top: 24px;
}
.pf-hub-search .mk-kbsearch__input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  font-size: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.45);
  color: #fff;
  box-shadow: none;
}
.pf-hub-search .mk-kbsearch__input::placeholder {
  color: #64748b;
}
.pf-hub-search .mk-kbsearch__icon {
  color: #94a3b8;
}
.pf-hub-search .mk-kbsearch__panel {
  border-radius: 12px;
  border-color: var(--pf-line);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}
.pf-hub-trust {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #94a3b8;
}
.pf-hub-trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.pf-hub-trust .mk-ic {
  width: 17px;
  height: 17px;
  color: #93c5fd;
}
.pf-hubnav {
  border-bottom-color: var(--pf-line);
  background: rgba(255, 255, 255, 0.92);
}
.pf-hubnav .mk-hubnav__tab.is-active {
  background: var(--pf-accent);
}
.pf-hubnav .mk-hubnav__tab:hover {
  background: var(--pf-accent-soft);
  color: var(--pf-ink);
}
.pf-hub-lanes {
  margin-top: 28px;
}
.marketing-body--product .mk-lane-card__link {
  border-color: var(--pf-line);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}
.marketing-body--product .mk-lane-card__link:hover {
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
}
.marketing-body--product .mk-article-card a {
  border-color: var(--pf-line);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}
.marketing-body--product .mk-article-card a:hover {
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
}
.pf-hub-carousel {
  margin-top: 24px;
}
.pf-hub-steps {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}
@media (min-width: 768px) {
  .pf-hub-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
.pf-hub-steps article {
  padding: 24px;
  border: 1px solid var(--pf-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}
.pf-hub-steps__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 12px;
  color: var(--pf-accent);
  background: var(--pf-accent-soft);
}
.pf-hub-steps__icon .mk-ic {
  width: 22px;
  height: 22px;
}
.pf-hub-steps h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--pf-ink);
}
.pf-hub-steps p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--pf-muted);
}

.pf-lang__grid {
  display: grid;
  gap: clamp(28px, 5vw, 48px);
  align-items: center;
}
@media (min-width: 900px) {
  .pf-lang__grid {
    grid-template-columns: 1fr 1.05fr;
  }
}
.pf-lang__copy .pf-lead {
  margin-bottom: 0;
}
.pf-lang__shot.pf-frame {
  margin: 0;
}
.pf-lang--compact .pf-lang__grid {
  grid-template-columns: 1fr;
}
.pf-lang--compact {
  padding-top: 0;
  border-bottom: 0;
}
.pf-lang__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.pf-lang__chips li span {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.82rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--pf-line);
  color: var(--pf-muted);
}
.pf-lang__chips--compact li span {
  font-size: 0.75rem;
  padding: 4px 10px;
}
.pf-ai-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: clamp(40px, 6vw, 64px) 0;
}
.pf-ai-grid .pf-card {
  flex: 0 1 calc(33.333% - 11px);
  min-width: 260px;
  max-width: calc(33.333% - 11px);
}
@media (max-width: 900px) {
  .pf-ai-grid .pf-card {
    flex: 0 1 calc(50% - 8px);
    max-width: calc(50% - 8px);
  }
}
@media (max-width: 600px) {
  .pf-ai-grid .pf-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
.pf-ai-grid .pf-card ul {
  margin: 12px 0 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: var(--pf-muted);
  line-height: 1.5;
}
.pf-platform-docs {
  padding: clamp(48px, 8vw, 80px) 0;
  background: var(--pf-surface);
  border-top: 1px solid var(--pf-line);
}

/* Documentation header — pf-lead has global max-width; keep copy centered (do not drop on merge). */
.pf-platform-docs--centered {
  text-align: center;
}
.pf-platform-docs--centered .pf-platform-docs__head {
  max-width: 42rem;
  margin-inline: auto;
  margin-bottom: clamp(8px, 2vw, 16px);
  text-align: center;
}
.pf-platform-docs--centered .pf-platform-docs__head .pf-eyebrow,
.pf-platform-docs--centered .pf-platform-docs__head h2,
.pf-platform-docs--centered .pf-platform-docs__head .pf-lead {
  margin-inline: auto;
  text-align: center;
}
.pf-platform-docs--centered .pf-platform-docs__head h2 {
  margin-bottom: 12px;
}
.pf-platform-docs--centered .pf-platform-docs__head .pf-lead {
  max-width: 46ch;
}
.pf-platform-docs__head {
  max-width: 42rem;
  margin: 0 auto clamp(8px, 2vw, 16px);
  text-align: center;
}
.pf-platform-docs__head h2 {
  margin: 0 0 12px;
}
.pf-platform-docs__head .pf-lead {
  margin-inline: auto;
  max-width: 46ch;
  text-align: center;
}
.pf-platform-docs__grid {
  margin-top: clamp(20px, 3vw, 32px);
  padding-top: clamp(32px, 5vw, 48px);
  padding-bottom: 0;
  border-top: 1px solid var(--pf-line);
}
.pf-platform-docs--centered .pf-platform-docs__grid {
  justify-content: center;
  text-align: center;
}
.pf-platform-docs--centered .pf-platform-docs__grid .pf-card {
  text-align: center;
}
.pf-platform-docs--centered .pf-platform-docs__grid .pf-card ul {
  display: inline-block;
  margin-inline: auto;
  text-align: left;
}
.pf-platform-docs__grid .pf-card {
  flex: 0 1 calc(50% - 8px);
  max-width: calc(50% - 8px);
}
.pf-platform-docs__grid .pf-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}
.pf-platform-docs__grid .pf-card ul {
  margin: 0;
}
@media (max-width: 700px) {
  .pf-platform-docs__grid .pf-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
.pf-platform-group {
  padding: clamp(32px, 5vw, 48px) 0;
  border-bottom: 1px solid var(--pf-line);
}
.pf-platform-group--muted {
  background: var(--pf-surface);
}
.pf-platform-group h2 {
  margin: 0 0 16px;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
}
.pf-platform-list {
  display: grid;
  gap: 10px 24px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  color: var(--pf-muted);
}
.pf-platform-list li::before {
  content: "✓ ";
  color: var(--pf-accent);
  font-weight: 700;
}
.pf-integrations {
  padding: clamp(32px, 5vw, 56px) 0;
  min-width: 0;
  max-width: 100%;
}
.pf-integrations__group {
  margin-bottom: 40px;
}
.pf-integrations__group h2 {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pf-accent);
}
.pf-integrations__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  min-width: 0;
}
.pf-sandbox {
  padding: clamp(24px, 4vw, 40px) 0 clamp(48px, 6vw, 64px);
}
.pf-sandbox__tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.pf-sandbox__hint {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--pf-muted);
}
.pf-sandbox__prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.pf-sandbox__chip {
  padding: 8px 14px;
  font-size: 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--pf-line);
  background: #fff;
  cursor: pointer;
  color: var(--pf-ink);
}
.pf-sandbox__chip:hover {
  border-color: var(--pf-accent);
  color: var(--pf-accent);
}
.pf-sandbox__thread {
  min-height: 320px;
  max-height: 480px;
  overflow-x: hidden;
  overflow-y: auto;
  overflow-anchor: none;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--pf-line);
  border-radius: 12px;
  background: var(--pf-surface);
}
.pf-sandbox__thread .messenger-bubble {
  max-width: 92%;
}
/* Sandbox chat — dashboard-parity bubbles/worklog/cards (marketing pages do not load style.css). */
.pf-sandbox .pf-sandbox__thread.messenger-bubbles {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pf-sandbox .messenger-bubble {
  max-width: min(92%, 520px);
  padding: 10px 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--pf-line, #e2e8f0);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.pf-sandbox .messenger-bubble.is-out {
  align-self: flex-end;
  margin-left: auto;
  background: var(--primary-light, #dbeafe);
  border-color: rgba(37, 99, 235, 0.2);
}
.pf-sandbox .messenger-bubble.is-in,
.pf-sandbox .shift-chat-bubble--agent {
  align-self: flex-start;
  margin-right: auto;
}
.pf-sandbox .messenger-bubble__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 4px;
  font-size: 0.82em;
  color: var(--pf-muted, #64748b);
}
.pf-sandbox .messenger-bubble.is-out .messenger-bubble__meta {
  justify-content: flex-end;
}
.pf-sandbox .messenger-bubble__text {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.95em;
  line-height: 1.45;
}
.pf-sandbox .shift-chat-bubble--agent .messenger-bubble__meta {
  align-items: center;
}
.pf-sandbox .agency-chat-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.pf-sandbox .agency-chat-worklog {
  margin: 0;
  padding: 0;
  border: 1px solid var(--pf-line, #e2e8f0);
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.85);
}
.pf-sandbox .agency-chat-worklog__summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88em;
  padding: 8px 10px;
  list-style: none;
  color: var(--pf-ink, #0f172a);
}
.pf-sandbox .agency-chat-worklog__summary::-webkit-details-marker {
  display: none;
}
.pf-sandbox .agency-chat-worklog__panel {
  padding: 0 10px 10px;
}
.pf-sandbox .agency-chat-progress {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pf-sandbox .agency-chat-progress__step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88em;
  line-height: 1.35;
}
.pf-sandbox .agency-chat-progress__icon {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pf-muted, #64748b);
}
.pf-sandbox .agency-chat-progress__step.is-done .agency-chat-progress__icon {
  color: var(--success, #16a34a);
}
.pf-sandbox .agency-chat-progress__step.is-active .agency-chat-progress__icon {
  color: var(--primary, #2563eb);
}
.pf-sandbox .agency-chat-progress__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(37, 99, 235, 0.2);
  border-top-color: var(--primary, #2563eb);
  border-radius: 50%;
  animation: pf-sandbox-spin 0.75s linear infinite;
}
@keyframes pf-sandbox-spin {
  to { transform: rotate(360deg); }
}
.pf-sandbox .agency-chat-progress__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.pf-sandbox .agency-chat-progress__title {
  font-weight: 600;
  color: var(--pf-ink, #0f172a);
}
.pf-sandbox .agency-chat-progress__step.is-active .agency-chat-progress__title {
  color: var(--primary, #2563eb);
}
.pf-sandbox .agency-chat-progress__detail {
  font-size: 0.92em;
  color: var(--pf-muted, #64748b);
}
.pf-sandbox .agency-chat-reply {
  word-break: break-word;
  font-size: 0.95em;
  line-height: 1.45;
}
.pf-sandbox .agency-chat-reply p {
  margin: 0 0 0.55em;
}
.pf-sandbox .agency-chat-reply p:last-child {
  margin-bottom: 0;
}
.pf-sandbox .agency-chat-reply ul {
  margin: 0.35em 0 0.55em;
  padding-left: 1.2em;
}
.pf-sandbox .agency-chat-reply li {
  margin: 0.15em 0;
}
.pf-sandbox .agency-chat-reply strong {
  font-weight: 650;
}
.pf-sandbox .agency-chat-reply.is-typing {
  min-height: 1.4em;
}
.pf-sandbox__typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 0;
}
.pf-sandbox__typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pf-muted, #64748b);
  opacity: 0.45;
  animation: pf-sandbox-typing 1s ease-in-out infinite;
}
.pf-sandbox__typing span:nth-child(2) { animation-delay: 0.15s; }
.pf-sandbox__typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes pf-sandbox-typing {
  0%, 80%, 100% { opacity: 0.35; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}
.pf-sandbox__caret {
  display: inline-block;
  width: 0.55ch;
  height: 1.05em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: var(--primary, #2563eb);
  animation: pf-sandbox-caret 0.9s step-end infinite;
}
@keyframes pf-sandbox-caret {
  50% { opacity: 0; }
}
.pf-sandbox .agency-chat-reply--pending:not([hidden]) {
  padding-top: 4px;
  border-top: 1px solid var(--pf-line, #e2e8f0);
}
.pf-sandbox .shift-chat-action-card {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.2);
}
.pf-sandbox .shift-chat-action-card__label {
  margin: 0 0 4px;
  font-weight: 600;
  font-size: 0.9em;
}
.pf-sandbox .shift-chat-action-card__hint {
  margin: 0 0 8px;
  font-size: 0.85em;
}
.pf-sandbox .shift-chat-action-card__preview {
  margin: 0 0 10px;
  font-size: 0.9em;
}
.pf-sandbox .shift-chat-action-card__preview-row {
  margin: 0 0 8px;
}
.pf-sandbox .shift-chat-action-card__preview-row:last-child {
  margin-bottom: 0;
}
.pf-sandbox .shift-chat-action-card__preview-label {
  margin: 0 0 2px;
  font-weight: 600;
  font-size: 0.85em;
  color: var(--pf-muted, #64748b);
}
.pf-sandbox .shift-chat-action-card__preview-text {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}
.pf-sandbox .shift-chat-action-card__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.pf-sandbox .shift-chat-action-card__done {
  margin: 8px 0 0;
}
.pf-sandbox__chat {
  min-height: 280px;
  max-height: 420px;
  overflow-y: auto;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--pf-line);
  border-radius: 12px;
  background: var(--pf-surface);
}
.pf-sandbox__msg {
  margin-bottom: 12px;
  max-width: 88%;
}
.pf-sandbox__msg--user {
  margin-left: auto;
  text-align: right;
}
.pf-sandbox__msg strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pf-muted);
  margin-bottom: 4px;
}
.pf-sandbox__msg p {
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.5;
  display: inline-block;
  text-align: left;
}
.pf-sandbox__msg--user p {
  background: var(--pf-accent);
  color: #fff;
}
.pf-sandbox__msg--assistant p {
  background: #fff;
  border: 1px solid var(--pf-line);
}
.pf-sandbox__composer {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto;
  align-items: end;
}
.pf-sandbox__composer textarea {
  width: 100%;
  resize: vertical;
  min-height: 52px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--pf-line);
  font: inherit;
}
.pf-sandbox__composer-actions {
  display: flex;
  gap: 8px;
}
.pf-sandbox__char-count {
  grid-column: 1 / -1;
  margin: -4px 0 0;
  font-size: 0.78rem;
  color: var(--pf-muted, #64748b);
  text-align: right;
}
.pf-sandbox__char-count.is-near-limit {
  color: #b45309;
}
.pf-sandbox__char-count.is-at-limit {
  color: #b91c1c;
  font-weight: 600;
}
.pf-sandbox__mic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  line-height: 0;
}
.pf-sandbox__mic.is-active,
.pf-sandbox__mic[aria-pressed="true"] {
  color: #fff;
  background: var(--primary, #2563eb);
  border-color: var(--primary, #2563eb);
}
.pf-sandbox__label {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: var(--pf-muted);
}
.pf-sandbox__disabled {
  padding: 48px 0;
  text-align: center;
  color: var(--pf-muted);
}

/* ---- Platform explorer ---- */
.pf-platform-hero h1 {
  max-width: none;
}
.pf-platform-hero {
  overflow: visible;
}
.pf-platform-hero > .pf-wrap {
  overflow: visible;
}
.pf-platform-explorer {
  padding: clamp(32px, 5vw, 56px) 0 clamp(48px, 6vw, 72px);
  min-width: 0;
  max-width: 100%;
}

/* Horizontal tab/filter rows — scroll inside a bounded strip so page width stays put. */
.pf-scroll-strip {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  /* body { touch-action: pan-y } in style.css blocks horizontal swipe unless overridden */
  touch-action: pan-x pan-y;
}
.pf-scroll-strip::-webkit-scrollbar {
  display: none;
}
.pf-scroll-strip--sticky {
  position: sticky;
  top: 58px;
  z-index: 10;
  margin-bottom: 28px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--pf-line);
}
.pf-scroll-strip .pf-platform-nav,
.pf-scroll-strip .pf-int-filters {
  width: max-content;
  min-width: 100%;
  margin-bottom: 0;
  overflow: visible;
  position: static;
  top: auto;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 0;
  padding-top: 12px;
  padding-bottom: 12px;
}

.pf-platform-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  position: sticky;
  top: 58px;
  z-index: 10;
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--pf-line);
  min-width: 0;
  max-width: 100%;
}
.pf-platform-nav__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--pf-line);
  background: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--pf-muted);
  cursor: pointer;
  transition: border-color 160ms, color 160ms, box-shadow 160ms, transform 160ms;
}
.pf-platform-nav__btn:hover {
  border-color: var(--pf-accent);
  color: var(--pf-accent);
}
.pf-platform-nav__btn.is-active {
  border-color: var(--pf-accent);
  background: var(--pf-accent-soft);
  color: var(--pf-accent);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
}
.pf-platform-nav__icon {
  font-size: 1.1rem;
  line-height: 1;
}
.pf-platform-nav__count {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
}
.pf-platform-nav__btn.is-active .pf-platform-nav__count {
  background: rgba(37, 99, 235, 0.15);
}
.pf-platform-pane {
  animation: pf-fade-up 320ms ease;
}
.pf-platform-pane[hidden] {
  display: none !important;
}
@keyframes pf-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.pf-platform-pane__head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.pf-platform-pane__layout {
  display: grid;
  gap: 32px;
  align-items: start;
  min-width: 0;
  max-width: 100%;
}
.pf-platform-panes {
  min-width: 0;
  max-width: 100%;
}
@media (min-width: 960px) {
  .pf-platform-pane__layout {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
  }
  .pf-platform-pane--flip .pf-platform-pane__visual {
    order: -1;
  }
}
.pf-platform-pane__visual .pf-frame,
.pf-platform-pane__visual .pf-scene {
  margin: 0;
}
.pf-platform-pane__visual .pf-scene__img {
  border-radius: 12px;
}
.pf-platform-pane__icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}
.pf-platform-pane__copy h2 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}
.pf-platform-pane__copy p {
  margin: 0;
  color: var(--pf-muted);
  max-width: 52ch;
  line-height: 1.55;
}
.pf-platform-features {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}
.pf-platform-feature {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--pf-line);
  background: #fff;
  font: inherit;
  font-size: 0.9rem;
  color: var(--pf-ink);
  cursor: pointer;
  transition: border-color 140ms, box-shadow 140ms, transform 140ms, background 140ms;
}
.pf-platform-feature::before {
  content: "✓ ";
  color: var(--pf-accent);
  font-weight: 700;
}
.pf-platform-feature:hover {
  border-color: var(--pf-accent);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}
.pf-platform-feature.is-picked {
  border-color: var(--pf-accent);
  background: var(--pf-accent-soft);
  box-shadow: 0 0 0 1px var(--pf-accent);
}

/* ---- Integrations hub ---- */
.pf-int-hero__grid {
  display: grid;
  gap: 32px;
  align-items: center;
}
@media (min-width: 900px) {
  .pf-int-hero__grid {
    grid-template-columns: 1fr 360px;
    overflow: visible;
  }
}
.pf-int-hero h1 {
  max-width: none;
}
.pf-ai-hero h1 {
  max-width: none;
}
.pf-ai-hero {
  overflow: visible;
}
.pf-ai-hero > .pf-wrap {
  overflow: visible;
}
@media (min-width: 900px) {
  .pf-ai-hero .pf-int-hero__grid {
    overflow: visible;
  }
  .pf-ai-hero .pf-int-hero__copy {
    position: relative;
    z-index: 2;
  }
}

/* ---- Orbit hub (AI languages, integrations, platform areas) ---- */
.pf-orbit-hub {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto;
  overflow: visible;
  --orbit-size: 44px;
  perspective: 900px;
  perspective-origin: 50% 48%;
  transform-style: preserve-3d;
}
.pf-int-hero__grid > .pf-orbit-hub {
  justify-self: center;
}
.pf-orbit-hub__core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2000;
  --core-size: 88px;
  --core-radius: 44px;
  width: var(--core-size);
  height: var(--core-size);
  margin: calc(var(--core-size) / -2) 0 0 calc(var(--core-size) / -2);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.1;
  text-align: center;
  transform: translateZ(52px);
  transform-style: preserve-3d;
  will-change: transform;
}
.pf-orbit-hub__core-sphere {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  pointer-events: none;
}
.pf-orbit-hub__core-sphere-ring {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 50%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-origin: center center;
}
.pf-orbit-hub__core-faces {
  position: absolute;
  inset: 0;
  z-index: 2;
  transform-style: preserve-3d;
  pointer-events: none;
}
.pf-orbit-hub__core-face {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  display: grid;
  place-items: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: rotateY(calc(var(--face-yaw, 0) * 1deg)) translateZ(var(--core-radius));
  transform-style: preserve-3d;
}
.pf-orbit-hub__core-aura {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.55) 0%, rgba(37, 99, 235, 0) 68%);
  opacity: 0.65;
  transform: translateZ(-6px);
  pointer-events: none;
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.42);
}
.pf-orbit-hub__core-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(191, 219, 254, 0.42);
  box-shadow: 0 0 12px rgba(147, 197, 253, 0.35);
  pointer-events: none;
}
.pf-orbit-hub__core-ring--x {
  transform: rotateX(72deg);
}
.pf-orbit-hub__core-ring--y {
  transform: rotateY(68deg);
}
.pf-orbit-hub[data-pf-orbit-animate="1"] .pf-orbit-hub__core-aura {
  animation: pf-orbit-core-pulse 3.6s ease-in-out infinite;
}
.pf-orbit-hub[data-pf-orbit-animate="1"] .pf-orbit-hub__core-ring--x {
  animation: pf-orbit-core-spin-x 9s linear infinite;
}
.pf-orbit-hub[data-pf-orbit-animate="1"] .pf-orbit-hub__core-ring--y {
  animation: pf-orbit-core-spin-y 12s linear infinite reverse;
}
@keyframes pf-orbit-core-pulse {
  0%, 100% { opacity: 0.5; transform: translateZ(-4px) scale(0.96); }
  50% { opacity: 0.88; transform: translateZ(-4px) scale(1.1); }
}
@keyframes pf-orbit-core-spin-x {
  from { transform: rotateX(72deg) rotateZ(0deg); }
  to { transform: rotateX(72deg) rotateZ(360deg); }
}
@keyframes pf-orbit-core-spin-y {
  from { transform: rotateY(68deg) rotateZ(0deg); }
  to { transform: rotateY(68deg) rotateZ(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .pf-orbit-hub[data-pf-orbit-animate="1"] .pf-orbit-hub__core-aura,
  .pf-orbit-hub[data-pf-orbit-animate="1"] .pf-orbit-hub__core-ring--x,
  .pf-orbit-hub[data-pf-orbit-animate="1"] .pf-orbit-hub__core-ring--y {
    animation: none;
  }
}
.pf-orbit-hub__core svg {
  display: block;
  color: #fff;
  width: 32px;
  height: 32px;
}
.pf-orbit-hub__tracks {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: visible;
  pointer-events: none;
}
.pf-orbit-hub__track-path {
  fill: none;
  stroke: rgba(148, 163, 184, 0.42);
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}
.pf-orbit-hub__stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  pointer-events: none;
}
.pf-orbit-hub__sat {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--orbit-size);
  height: var(--orbit-size);
  margin: calc(var(--orbit-size) / -2) 0 0 calc(var(--orbit-size) / -2);
  transform-style: preserve-3d;
  will-change: transform;
}
.pf-orbit-hub__sat-inner {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #e2e8f0;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.35);
  transform-origin: center center;
  will-change: transform, opacity;
}
.pf-orbit-hub__logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
}
.pf-orbit-hub--langs {
  --orbit-size: 42px;
}
.pf-orbit-hub--langs .pf-orbit-hub__sat-inner {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}
.pf-orbit-hub--platform {
  --orbit-size: 46px;
}
.pf-orbit-hub--platform .pf-orbit-hub__sat-inner {
  font-size: 0.62rem;
  letter-spacing: 0;
  padding: 0 4px;
}
.pf-orbit-hub--integrations {
  width: 360px;
  height: 360px;
  --orbit-size: 54px;
}
.pf-orbit-hub--integrations .pf-orbit-hub__logo {
  width: 32px;
  height: 32px;
}
.pf-orbit-hub--integrations .pf-orbit-hub__core {
  --core-size: 96px;
  --core-radius: 48px;
  font-size: 0.8rem;
}

/* ---- Voice ripples (AI languages hero) ---- */
.pf-voice-ripples {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto;
  overflow: visible;
  --voice-tilt: 48deg;
  --voice-plane-top: 54%;
  --voice-plane-size: 560px;
}
.pf-int-hero__grid > .pf-voice-ripples {
  justify-self: center;
}
.pf-voice-ripples__viewport {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 680px;
  perspective-origin: 50% 52%;
}
.pf-voice-ripples__beam {
  position: absolute;
  left: 50%;
  top: 34%;
  width: 190px;
  height: 210px;
  transform: translate(-50%, 0);
  background: radial-gradient(
    ellipse 80% 100% at 50% 0%,
    rgba(56, 189, 248, 0.55) 0%,
    rgba(37, 99, 235, 0.22) 42%,
    rgba(37, 99, 235, 0) 78%
  );
  filter: blur(10px);
  pointer-events: none;
  z-index: 2;
}
.pf-voice-ripples[data-pf-voice-animate="1"] .pf-voice-ripples__beam {
  animation: pf-voice-beam-pulse 3.2s ease-in-out infinite;
}
@keyframes pf-voice-beam-pulse {
  0%, 100% { opacity: 0.72; transform: translate(-50%, 0) scaleY(0.94); }
  50% { opacity: 1; transform: translate(-50%, 0) scaleY(1.08); }
}
.pf-voice-ripples__plane {
  position: absolute;
  left: 50%;
  top: var(--voice-plane-top);
  width: var(--voice-plane-size);
  height: var(--voice-plane-size);
  margin: calc(var(--voice-plane-size) / -2) 0 0 calc(var(--voice-plane-size) / -2);
  transform-style: preserve-3d;
  transform: rotateX(var(--voice-tilt));
  pointer-events: none;
}
.pf-voice-ripples__overlay {
  position: absolute;
  left: 50%;
  top: var(--voice-plane-top);
  width: 0;
  height: 0;
  z-index: 10;
  pointer-events: none;
}
.pf-voice-ripples__floor {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 476px;
  height: 476px;
  margin: -238px 0 0 -238px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.5) 0%,
    rgba(37, 99, 235, 0.22) 38%,
    rgba(37, 99, 235, 0) 68%
  );
  filter: blur(10px);
  transform: translateZ(-2px);
}
.pf-voice-ripples[data-pf-voice-animate="1"] .pf-voice-ripples__floor {
  animation: pf-voice-floor-pulse 3.6s ease-in-out infinite;
}
@keyframes pf-voice-floor-pulse {
  0%, 100% { opacity: 0.7; transform: translateZ(-2px) scale(0.94); }
  50% { opacity: 1; transform: translateZ(-2px) scale(1.05); }
}
.pf-voice-ripples__rings {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.pf-voice-ripples__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  border: 1.5px solid rgba(56, 189, 248, 0.52);
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 20px rgba(56, 189, 248, 0.38),
    0 0 40px rgba(37, 99, 235, 0.16),
    0 0 60px rgba(37, 99, 235, 0.06),
    inset 0 0 18px rgba(147, 197, 253, 0.1);
}
.pf-voice-ripples__ring--0 { width: 140px; height: 140px; }
.pf-voice-ripples__ring--1 { width: 212px; height: 212px; }
.pf-voice-ripples__ring--2 { width: 286px; height: 286px; }
.pf-voice-ripples__ring--3 { width: 358px; height: 358px; }
.pf-voice-ripples__ring--4 { width: 504px; height: 504px; }
.pf-voice-ripples--langs {
  --voice-ring-stretch: 1.428571; /* outer width 900 / height 630 */
}
.pf-voice-ripples--langs .pf-voice-ripples__ring--0 {
  width: calc(100px * var(--voice-ring-stretch));
  height: 100px;
}
.pf-voice-ripples--langs .pf-voice-ripples__ring--1 {
  width: calc(233px * var(--voice-ring-stretch));
  height: 233px;
}
.pf-voice-ripples--langs .pf-voice-ripples__ring--2 {
  width: calc(366px * var(--voice-ring-stretch));
  height: 366px;
}
.pf-voice-ripples--langs .pf-voice-ripples__ring--3 {
  width: calc(499px * var(--voice-ring-stretch));
  height: 499px;
}
.pf-voice-ripples--langs .pf-voice-ripples__ring--4 {
  width: 900px;
  height: 630px;
}
.pf-voice-ripples--langs .pf-voice-ripples__floor {
  width: calc(900px * 0.944);
  height: calc(630px * 0.944);
  margin: calc(630px * -0.472) 0 0 calc(900px * -0.472);
}
.pf-voice-ripples[data-pf-voice-animate="1"] .pf-voice-ripples__ring {
  animation: pf-voice-ring-breathe 5s ease-in-out infinite;
}
.pf-voice-ripples__ring--0 { animation-delay: 0s; }
.pf-voice-ripples__ring--1 { animation-delay: 0.3s; }
.pf-voice-ripples__ring--2 { animation-delay: 0.6s; }
.pf-voice-ripples__ring--3 { animation-delay: 0.9s; }
.pf-voice-ripples__ring--4 { animation-delay: 1.2s; }
@keyframes pf-voice-ring-breathe {
  0%, 100% {
    opacity: 0.65;
    border-color: rgba(56, 189, 248, 0.28);
  }
  50% {
    opacity: 1;
    border-color: rgba(125, 211, 252, 0.62);
    box-shadow:
      0 0 22px rgba(56, 189, 248, 0.38),
      0 0 44px rgba(37, 99, 235, 0.16),
      inset 0 0 22px rgba(147, 197, 253, 0.12);
  }
}
.pf-voice-ripples__pulses {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.pf-voice-ripples__pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 115px;
  height: 115px;
  border-radius: 50%;
  border: 2px solid rgba(186, 230, 253, 0.7);
  transform: translate(-50%, -50%) scale(0.25);
  opacity: 0;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.4);
}
.pf-voice-ripples[data-pf-voice-animate="1"] .pf-voice-ripples__pulse {
  animation: pf-voice-pulse-expand 4s cubic-bezier(0.18, 0.72, 0.24, 1) infinite;
}
.pf-voice-ripples__pulse--0 { animation-delay: 0s; }
.pf-voice-ripples__pulse--1 { animation-delay: 1.33s; }
.pf-voice-ripples__pulse--2 { animation-delay: 2.66s; }
@keyframes pf-voice-pulse-expand {
  0% {
    transform: translate(-50%, -50%) scale(0.22);
    opacity: 0.9;
    border-color: rgba(224, 242, 254, 0.85);
  }
  65% { opacity: 0.28; }
  100% {
    transform: translate(-50%, -50%) scale(1.22);
    opacity: 0;
    border-color: rgba(59, 130, 246, 0.04);
  }
}
.pf-voice-ripples__core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 6;
  transform: translate(-50%, -50%) translateZ(6px);
  transform-style: preserve-3d;
  will-change: transform;
  pointer-events: none;
}
.pf-voice-ripples__core-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 138px;
  height: 138px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(103, 232, 249, 0.62) 0%,
    rgba(56, 189, 248, 0.34) 32%,
    rgba(37, 99, 235, 0.14) 54%,
    rgba(15, 23, 42, 0) 72%
  );
  filter: blur(14px);
  pointer-events: none;
  transform: translate(-50%, -50%);
  backface-visibility: hidden;
}
.pf-voice-ripples[data-pf-voice-animate="1"] .pf-voice-ripples__core-glow {
  animation: pf-voice-core-aura 2.8s ease-in-out infinite;
}
@keyframes pf-voice-core-aura {
  0%, 100% {
    opacity: 0.78;
    transform: translate(-50%, -50%) scale(0.94);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }
}
.pf-voice-ripples__core-disc {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  color: #7ee8fa;
  background: linear-gradient(
    180deg,
    #0f1f3d 0%,
    #081528 46%,
    #040a16 100%
  );
  border: 1.5px solid rgba(94, 234, 212, 0.58);
  transform: translate(-50%, -50%);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow:
    0 0 22px rgba(56, 189, 248, 0.72),
    0 0 44px rgba(34, 211, 238, 0.38),
    0 0 68px rgba(37, 99, 235, 0.22),
    0 5px 14px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(186, 230, 253, 0.38),
    inset 0 -2px 0 rgba(0, 0, 0, 0.42);
}
.pf-voice-ripples__core-disc::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: 1px solid rgba(103, 232, 249, 0.22);
  box-shadow: inset 0 1px 5px rgba(125, 211, 252, 0.16);
  pointer-events: none;
}
.pf-voice-ripples[data-pf-voice-animate="1"] .pf-voice-ripples__core-disc {
  animation: pf-voice-core-glow 2.8s ease-in-out infinite;
}
@keyframes pf-voice-core-glow {
  0%, 100% {
    border-color: rgba(94, 234, 212, 0.5);
    box-shadow:
      0 0 18px rgba(56, 189, 248, 0.58),
      0 0 36px rgba(34, 211, 238, 0.32),
      0 0 56px rgba(37, 99, 235, 0.18),
      0 5px 14px rgba(0, 0, 0, 0.48),
      inset 0 1px 0 rgba(186, 230, 253, 0.32);
  }
  50% {
    border-color: rgba(165, 243, 252, 0.82);
    box-shadow:
      0 0 30px rgba(103, 232, 249, 0.88),
      0 0 56px rgba(56, 189, 248, 0.52),
      0 0 84px rgba(34, 211, 238, 0.28),
      0 5px 14px rgba(0, 0, 0, 0.48),
      inset 0 1px 0 rgba(224, 242, 254, 0.48);
  }
}
.pf-voice-ripples__core-disc svg {
  display: block;
  width: 46px;
  height: 46px;
  color: #7ee8fa;
  filter:
    drop-shadow(0 0 2px rgba(165, 243, 252, 0.95))
    drop-shadow(0 0 8px rgba(56, 189, 248, 0.85))
    drop-shadow(0 0 16px rgba(34, 211, 238, 0.55));
}
.pf-voice-ripples__chip {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}
.pf-voice-ripples__chip-inner {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  direction: ltr;
  unicode-bidi: isolate;
  background: linear-gradient(
    180deg,
    rgba(59, 130, 246, 0.74) 0%,
    rgba(37, 99, 235, 0.62) 46%,
    rgba(30, 58, 138, 0.66) 100%
  );
  border: 1px solid rgba(125, 211, 252, 0.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  line-height: 1;
  white-space: nowrap;
  box-shadow:
    0 0 10px rgba(56, 189, 248, 0.32),
    0 0 20px rgba(37, 99, 235, 0.14),
    0 4px 12px rgba(15, 23, 42, 0.38),
    inset 0 1px 0 rgba(186, 230, 253, 0.38),
    inset 0 -1px 0 rgba(15, 23, 42, 0.28);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.pf-voice-ripples[data-pf-voice-animate="1"] .pf-voice-ripples__chip-inner {
  animation: pf-voice-chip-glow 3.2s ease-in-out infinite;
  animation-delay: var(--chip-delay, 0s);
}
@keyframes pf-voice-chip-glow {
  0%, 100% {
    border-color: rgba(125, 211, 252, 0.38);
    box-shadow:
      0 0 8px rgba(56, 189, 248, 0.26),
      0 0 16px rgba(37, 99, 235, 0.1),
      0 4px 12px rgba(15, 23, 42, 0.38),
      inset 0 1px 0 rgba(186, 230, 253, 0.32);
  }
  50% {
    border-color: rgba(186, 230, 253, 0.62);
    box-shadow:
      0 0 12px rgba(96, 165, 250, 0.38),
      0 0 22px rgba(59, 130, 246, 0.16),
      0 4px 12px rgba(15, 23, 42, 0.38),
      inset 0 1px 0 rgba(224, 242, 254, 0.45);
  }
}
.pf-voice-ripples--langs {
  --voice-plane-top: 50%;
  --voice-plane-width: 900px;
  --voice-plane-height: 630px;
  --voice-tilt: 48deg;
  --voice-yaw: -0deg;
  width: 880px;
  height: 420px;
}
.pf-voice-ripples--langs .pf-voice-ripples__plane {
  width: var(--voice-plane-width);
  height: var(--voice-plane-height);
  margin: calc(var(--voice-plane-height) / -2) 0 0 calc(var(--voice-plane-width) / -2);
  transform: rotateX(var(--voice-tilt)) rotateY(var(--voice-yaw));
}
.pf-voice-ripples--langs .pf-voice-ripples__viewport {
  overflow: visible;
  perspective-origin: 56% 40%;
}
.pf-voice-ripples--langs .pf-voice-ripples__pulse {
  width: 118px;
  height: 118px;
}
.pf-voice-ripples--langs[data-pf-voice-animate="1"] .pf-voice-ripples__pulse {
  animation: pf-voice-pulse-expand-langs 4s cubic-bezier(0.18, 0.72, 0.24, 1) infinite;
}
@keyframes pf-voice-pulse-expand-langs {
  0% {
    transform: translate(-50%, -50%) scale(0.22);
    opacity: 0.9;
    border-color: rgba(224, 242, 254, 0.85);
  }
  65% { opacity: 0.28; }
  100% {
    transform: translate(-50%, -50%) scale(7.63, 5.34);
    opacity: 0;
    border-color: rgba(59, 130, 246, 0.04);
  }
}
@media (min-width: 900px) {
  .pf-ai-hero .pf-voice-ripples--langs {
    width: 880px;
    height: 420px;
    max-width: none;
    margin: -24px -120px 0 -280px;
    justify-self: end;
    z-index: 1;
  }
}

/* ---- Isometric stack (platform hero) ---- */
.pf-stack-hub {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto;
  overflow: visible;
}
.pf-int-hero__grid > .pf-stack-hub {
  justify-self: center;
}
.pf-stack-hub__iso {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  perspective: 1100px;
  perspective-origin: 50% 38%;
  overflow: visible;
}
.pf-stack-hub__iso > .pf-stack-hub__grid {
  top: 58%;
  left: 50%;
  z-index: 0;
  transform: rotateX(50deg) rotateZ(40deg) translateZ(-48px) rotateX(90deg);
}
.pf-stack-hub__iso::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 72%;
  width: 360px;
  height: 200px;
  margin: -80px 0 0 -180px;
  background: radial-gradient(
    ellipse 68% 58% at 50% 42%,
    rgba(56, 189, 248, 0.22) 0%,
    rgba(56, 189, 248, 0.08) 38%,
    transparent 72%
  );
  pointer-events: none;
  z-index: 0;
}
.pf-stack-hub__tower {
  position: relative;
  width: 300px;
  height: 220px;
  transform-style: preserve-3d;
  transform: rotateX(50deg) rotateZ(40deg);
  will-change: transform;
  z-index: 1;
}
.pf-stack-hub__grid {
  position: absolute;
  left: 50%;
  top: 70%;
  width: 400px;
  height: 280px;
  margin: -140px 0 0 -200px;
  transform: translateZ(-24px) rotateX(90deg);
  transform-origin: 50% 50%;
  background:
    linear-gradient(rgba(56, 189, 248, 0.38) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.38) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 80% 76% at 50% 50%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 76% at 50% 50%, #000 30%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}
.pf-stack-hub__spine {
  position: absolute;
  left: 50%;
  top: 70%;
  width: var(--stack-slab-w-max, var(--stack-slab-w, 278px));
  height: var(--stack-spine-len, 140px);
  margin-left: calc(var(--stack-slab-w-max, var(--stack-slab-w, 278px)) / -2);
  transform-style: preserve-3d;
  pointer-events: none;
  z-index: 0;
}
.pf-stack-hub__spine-line {
  position: absolute;
  width: 2px;
  border-radius: 1px;
  background: linear-gradient(
    180deg,
    rgba(186, 230, 253, 0.98) 0%,
    rgba(56, 189, 248, 0.55) 42%,
    rgba(56, 189, 248, 0.06) 80%,
    transparent 94%
  );
  box-shadow: 0 0 5px rgba(56, 189, 248, 0.22);
  transform-origin: 50% 100%;
  bottom: 0;
  top: auto;
  height: var(--stack-spine-len, 140px);
  transform: rotateX(var(--stack-spine-angle, 63deg))
    rotateZ(calc(-1 * var(--stack-spine-skew, 0deg)));
}
.pf-stack-hub__spine-line--fl { left: 0; }
.pf-stack-hub__spine-line--fr {
  right: 0;
  left: auto;
  transform: rotateX(var(--stack-spine-angle, 63deg))
    rotateZ(var(--stack-spine-skew, 0deg));
}
.pf-stack-hub__spine-line--bl {
  left: 0;
  transform: rotateX(var(--stack-spine-angle, 63deg))
    rotateZ(calc(-1 * var(--stack-spine-skew, 0deg)))
    rotateY(180deg);
}
.pf-stack-hub__spine-line--br {
  right: 0;
  left: auto;
  transform: rotateX(var(--stack-spine-angle, 63deg))
    rotateZ(var(--stack-spine-skew, 0deg))
    rotateY(180deg);
}
.pf-stack-hub__layer {
  position: absolute;
  left: 50%;
  top: 70%;
  width: var(--stack-slab-w, 278px);
  margin-left: calc(var(--stack-slab-w, 278px) / -2);
  transform-style: preserve-3d;
  will-change: transform;
  z-index: calc(40 - var(--i, 0));
}
.pf-stack-hub__slab {
  position: relative;
  width: 100%;
  height: var(--stack-slab-h, 46px);
  transform-style: preserve-3d;
}
.pf-stack-hub__slab-top {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 2px 8px 5px 8px;
  border-radius: 10px;
  background: linear-gradient(
    165deg,
    rgba(15, 23, 42, 0.42) 0%,
    rgba(15, 23, 42, 0.72) 46%,
    rgba(8, 15, 30, 0.88) 100%
  );
  border: 1px solid rgba(56, 189, 248, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 0 28px rgba(56, 189, 248, 0.42),
    0 0 2px rgba(186, 230, 253, 0.85),
    0 14px 36px rgba(15, 23, 42, 0.5),
    inset 0 1px 0 rgba(186, 230, 253, 0.28);
  transform: translateZ(6px);
  transform-style: preserve-3d;
}
.pf-stack-hub__icon,
.pf-stack-hub__copy {
  transform: translateZ(4px);
}
.pf-stack-hub__slab-top::before,
.pf-stack-hub__slab-top::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(186, 230, 253, 0.98);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.95);
  pointer-events: none;
}
.pf-stack-hub__slab-top::before {
  left: -1px;
  top: -1px;
}
.pf-stack-hub__slab-top::after {
  right: -1px;
  top: -1px;
}
.pf-stack-hub__slab-edge {
  position: absolute;
  background: linear-gradient(
    180deg,
    rgba(30, 58, 138, 0.85) 0%,
    rgba(15, 23, 42, 0.95) 100%
  );
  border: 1px solid rgba(56, 189, 248, 0.35);
  pointer-events: none;
}
.pf-stack-hub__slab-edge--side {
  right: 0;
  top: 0;
  width: var(--stack-slab-thick, 5px);
  height: 100%;
  transform-origin: 100% 50%;
  transform: rotateY(90deg) translateZ(1px);
}
.pf-stack-hub__icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  box-shadow:
    0 4px 12px rgba(15, 23, 42, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.pf-stack-hub__icon svg {
  display: block;
  width: 18px;
  height: 18px;
}
.pf-stack-hub__icon--violet {
  background: linear-gradient(145deg, #a78bfa 0%, #7c3aed 100%);
}
.pf-stack-hub__icon--teal {
  background: linear-gradient(145deg, #2dd4bf 0%, #0d9488 100%);
}
.pf-stack-hub__icon--sky {
  background: linear-gradient(145deg, #38bdf8 0%, #0284c7 100%);
}
.pf-stack-hub__icon--blue {
  background: linear-gradient(145deg, #60a5fa 0%, #2563eb 100%);
}
.pf-stack-hub__icon--amber {
  background: linear-gradient(145deg, #fbbf24 0%, #d97706 100%);
}
.pf-stack-hub__icon--purple {
  background: linear-gradient(145deg, #c084fc 0%, #9333ea 100%);
}
.pf-stack-hub__icon--green {
  background: linear-gradient(145deg, #4ade80 0%, #16a34a 100%);
}
.pf-stack-hub__icon--indigo {
  background: linear-gradient(145deg, #6366f1 0%, #3730a3 100%);
}
.pf-stack-hub__copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  text-align: left;
}
.pf-stack-hub__layer-title {
  color: #f8fafc;
  font-weight: 700;
  font-size: 0.72rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 8px rgba(15, 23, 42, 0.65);
}
.pf-stack-hub__layer-blurb {
  color: rgba(226, 236, 248, 0.96);
  font-size: 0.58rem;
  line-height: 1.22;
  text-shadow: 0 1px 6px rgba(15, 23, 42, 0.55);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pf-stack-hub--platform {
  --stack-step-y: 34px;
  --stack-step-z: 32px;
  --stack-slab-w: 300px;
  --stack-slab-w-max: 300px;
  --stack-slab-h: 74px;
  --stack-slab-thick: 6px;
  --stack-spine-len: 280px;
  --stack-spine-angle: 60deg;
  --stack-spine-skew: 0deg;
  --stack-anchor-y: 90%;
  width: 420px;
  height: 420px;
}
.pf-stack-hub--platform .pf-stack-hub__layer,
.pf-stack-hub--platform .pf-stack-hub__spine {
  top: var(--stack-anchor-y);
}
.pf-stack-hub--platform .pf-stack-hub__iso > .pf-stack-hub__grid {
  top: 50%;
  left: 50%;
  width: 1120px;
  height: 1000px;
  margin: -500px 0 0 -560px;
  transform: rotateX(50deg) rotateZ(40deg) translateZ(-64px) rotateX(76deg);
  background:
    linear-gradient(rgba(56, 189, 248, 0.8) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.8) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(
    ellipse 64% 60% at 50% 47%,
    #000 0%,
    #000 26%,
    rgba(0, 0, 0, 0.96) 34%,
    rgba(0, 0, 0, 0.78) 42%,
    rgba(0, 0, 0, 0.48) 50%,
    rgba(0, 0, 0, 0.22) 58%,
    rgba(0, 0, 0, 0.06) 64%,
    transparent 70%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 64% 60% at 50% 47%,
    #000 0%,
    #000 26%,
    rgba(0, 0, 0, 0.96) 34%,
    rgba(0, 0, 0, 0.78) 42%,
    rgba(0, 0, 0, 0.48) 50%,
    rgba(0, 0, 0, 0.22) 58%,
    rgba(0, 0, 0, 0.06) 64%,
    transparent 70%
  );
}
.pf-stack-hub--platform .pf-stack-hub__iso {
  perspective-origin: 50% 52%;
  overflow: visible;
}
.pf-stack-hub--platform .pf-stack-hub__iso::after {
  display: none;
}
.pf-stack-hub--platform .pf-stack-hub__tower {
  width: 300px;
  height: 220px;
}
.pf-stack-hub--platform .pf-stack-hub__layer-blurb {
  font-size: 0.56rem;
}
@media (min-width: 900px) {
  .pf-ai-hero .pf-int-hero__grid,
  .pf-platform-hero .pf-int-hero__grid {
    min-height: 396px;
    align-items: center;
    overflow: visible;
  }
  .pf-platform-hero .pf-int-hero__grid {
    position: relative;
  }
  .pf-platform-hero .pf-int-hero__grid > div:first-child {
    position: relative;
    z-index: 2;
  }
  .pf-platform-hero .pf-stack-hub--platform {
    position: absolute;
    right: 0;
    bottom: -80px;
    width: 420px;
    height: 420px;
    max-width: none;
    margin: 0;
    justify-self: auto;
    align-self: auto;
    transform: none;
    z-index: 1;
  }
}
@media (max-width: 899px) {
  .pf-ai-hero .pf-voice-ripples,
  .pf-platform-hero .pf-stack-hub {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pf-stack-hub[data-pf-stack-animate="1"] .pf-stack-hub__tower {
    transform: rotateX(50deg) rotateZ(40deg) !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pf-voice-ripples[data-pf-voice-animate="1"] .pf-voice-ripples__beam,
  .pf-voice-ripples[data-pf-voice-animate="1"] .pf-voice-ripples__floor,
  .pf-voice-ripples[data-pf-voice-animate="1"] .pf-voice-ripples__ring,
  .pf-voice-ripples[data-pf-voice-animate="1"] .pf-voice-ripples__pulse,
  .pf-voice-ripples[data-pf-voice-animate="1"] .pf-voice-ripples__core-glow,
  .pf-voice-ripples[data-pf-voice-animate="1"] .pf-voice-ripples__core-disc,
  .pf-voice-ripples[data-pf-voice-animate="1"] .pf-voice-ripples__chip-inner {
    animation: none;
  }
  .pf-voice-ripples[data-pf-voice-animate="1"] .pf-voice-ripples__pulse {
    opacity: 0;
  }
}

/* Legacy aliases — integrations hero grid */
.pf-int-hub {
  position: relative;
  width: 260px;
  height: 260px;
  margin: 0 auto;
}
.pf-int-toolbar {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
  min-width: 0;
  max-width: 100%;
}
@media (min-width: 720px) {
  .pf-int-toolbar {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}
.pf-int-search input {
  width: 100%;
  max-width: 360px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--pf-line);
  font: inherit;
  font-size: 0.95rem;
}
.pf-int-search input:focus {
  outline: none;
  border-color: var(--pf-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.pf-int-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}
.pf-int-filter {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--pf-line);
  background: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pf-muted);
  cursor: pointer;
  transition: border-color 140ms, color 140ms, background 140ms;
}
.pf-int-filter:hover,
.pf-int-filter.is-active {
  border-color: var(--pf-accent);
  color: var(--pf-accent);
}
.pf-int-filter.is-active {
  background: var(--pf-accent-soft);
}
.pf-int-card {
  padding: 20px;
  border-radius: 14px;
  border: 1px solid var(--pf-line);
  background: #fff;
  transition: border-color 180ms, box-shadow 180ms, transform 180ms;
}
.pf-int-card:hover,
.pf-int-card.is-hover {
  border-color: var(--pf-accent);
  box-shadow: 0 14px 40px rgba(37, 99, 235, 0.12);
  transform: translateY(-3px);
}
.pf-int-card[hidden] {
  display: none;
}
.pf-int-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.pf-int-card__logo-wrap {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--pf-surface);
  border: 1px solid var(--pf-line);
}
.pf-int-card__logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.pf-int-card__icon {
  font-size: 1.5rem;
  line-height: 1;
}
.pf-int-card__badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--pf-surface);
  color: var(--pf-muted);
}
.pf-int-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}
.pf-int-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--pf-muted);
  line-height: 1.5;
}
.pf-int-card__hint {
  margin-top: 12px !important;
  font-size: 0.78rem !important;
  color: var(--pf-accent) !important;
  font-weight: 600;
}
.pf-int-empty {
  text-align: center;
  padding: 32px;
  color: var(--pf-muted);
}
.pf-int-empty__reset {
  border: none;
  background: none;
  color: var(--pf-accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}
.pf-int-builtins {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}
.pf-int-builtins .pf-lead {
  margin-left: auto;
  margin-right: auto;
}
.pf-int-builtins__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  justify-content: center;
}
.pf-int-builtins__list li {
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--pf-line);
  font-size: 0.88rem;
  font-weight: 600;
}
.pf-feature--dark .pf-int-builtins__list li {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
}
.pf-feature--dark .pf-int-builtins .btn-secondary {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: transparent;
}
.pf-feature--dark .pf-int-builtins .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ---- Sandbox polish ---- */
.pf-sandbox-hero__grid {
  display: grid;
  gap: 28px;
  align-items: start;
}
@media (min-width: 800px) {
  .pf-sandbox-hero__grid {
    grid-template-columns: 1.2fr 1fr;
  }
}
.pf-sandbox-hero h1 {
  max-width: none;
}
.pf-sandbox-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.pf-sandbox-steps li {
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.pf-sandbox-steps strong {
  display: block;
  color: #f8fafc;
  margin-bottom: 4px;
}
.pf-sandbox-steps span {
  font-size: 0.88rem;
  color: #94a3b8;
}
.pf-sandbox__capabilities {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 24px;
}
.pf-sandbox-cap {
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--pf-line);
  background: #fff;
  cursor: pointer;
  transition: border-color 160ms, box-shadow 160ms;
}
.pf-sandbox-cap[data-sandbox-cap="agency"],
.pf-sandbox-cap[data-sandbox-cap="shift"] {
  cursor: pointer;
}
.pf-sandbox-cap--live {
  cursor: default;
  background: var(--pf-surface);
}
.pf-sandbox-cap.is-active {
  border-color: var(--pf-accent);
  box-shadow: 0 0 0 1px var(--pf-accent), 0 10px 32px rgba(37, 99, 235, 0.12);
}
.pf-sandbox-cap h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
}
.pf-sandbox-cap p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--pf-muted);
  line-height: 1.45;
}
.pf-sandbox-cap__pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  margin-bottom: 8px;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: pf-pulse 2s ease infinite;
}
@keyframes pf-pulse {
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.pf-sandbox-frame {
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.14);
}
.pf-sandbox-frame .pf-frame__chrome {
  position: relative;
}
.pf-sandbox-frame__badge {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #22c55e;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
}
.pf-sandbox-frame__screen {
  padding: 20px;
  background: var(--pf-surface);
}
.pf-sandbox-frame .pf-sandbox__tabs {
  margin-bottom: 16px;
}
.pf-sandbox-frame .pf-sandbox__thread {
  background: #fff;
}
.pf-lang__chips--interactive {
  gap: 8px;
}
.pf-lang__chip-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--pf-line);
  background: #fff;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 140ms, background 140ms, transform 140ms;
}
.pf-lang__chip-btn:not(:disabled):hover {
  border-color: var(--pf-accent);
  color: var(--pf-accent);
}
.pf-lang__chip-btn:hover {
  border-color: var(--pf-accent);
  color: var(--pf-accent);
}
.pf-lang__chip-btn.is-tapped {
  transform: scale(0.96);
  background: var(--pf-accent-soft);
  border-color: var(--pf-accent);
}
.pf-lang__chip-btn.is-active,
.pf-lang__chip-btn[aria-pressed="true"] {
  background: var(--pf-accent-soft, rgba(37, 99, 235, 0.1));
  border-color: var(--pf-accent, #2563eb);
  color: var(--pf-accent, #2563eb);
  font-weight: 600;
}

/* Section shells that are also .pf-wrap use vertical padding only — restore side gutters. */
.pf-wrap.pf-platform-explorer,
.pf-wrap.pf-integrations,
.pf-wrap.pf-faq,
.pf-wrap.pf-pricing,
.pf-wrap.pf-sandbox,
.pf-wrap.pf-team,
.pf-wrap.pf-lang,
.pf-wrap.pf-stats,
.pf-wrap.pf-contact,
.pf-wrap.pf-ai-grid,
.pf-wrap.pf-pricing-trust,
.pf-wrap.pf-feature-nav,
.pf-wrap.pf-sandbox__disabled {
  max-width: var(--pf-wrap);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--mk-gutter-left);
  padding-right: var(--mk-gutter-right);
  box-sizing: border-box;
}

/* --- Product marketing: mobile polish --- */
@media (max-width: 640px) {
  .marketing-body--product .pf-wrap,
  .pf-page-hero--dark > .pf-wrap,
  .pf-feature > .pf-wrap,
  .pf-integrations.pf-wrap,
  .pf-platform-explorer.pf-wrap,
  .pf-platform-docs > .pf-wrap,
  .pf-faq.pf-wrap,
  .pf-sandbox.pf-wrap,
  .pf-pricing.pf-wrap,
  .pf-team.pf-wrap,
  .pf-lang.pf-wrap,
  .pf-cta .pf-wrap {
    min-width: 0;
    max-width: 100%;
    padding-left: var(--mk-gutter-left);
    padding-right: var(--mk-gutter-right);
    box-sizing: border-box;
  }

  .pf-platform-explorer,
  .pf-integrations,
  .pf-platform-panes,
  .pf-platform-pane,
  .pf-platform-pane__layout,
  .pf-platform-pane__main,
  .pf-int-toolbar,
  .pf-integrations__group {
    min-width: 0;
    max-width: 100%;
  }

  .pf-int-hero__grid,
  .pf-page-hero--dark .pf-int-hero__grid {
    min-width: 0;
    max-width: 100%;
  }

  .pf-scroll-strip {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y;
  }
  .pf-scroll-strip::-webkit-scrollbar {
    display: none;
  }
  .pf-scroll-strip .pf-platform-nav,
  .pf-scroll-strip .pf-int-filters {
    display: inline-flex;
    flex-wrap: nowrap;
    width: max-content;
    min-width: 100%;
    margin-bottom: 0;
    position: static;
    top: auto;
    background: transparent;
    backdrop-filter: none;
    border-bottom: 0;
    padding-top: 12px;
    padding-bottom: 12px;
    touch-action: pan-x pan-y;
  }
  .pf-scroll-strip--sticky {
    top: 52px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--pf-line);
  }

  .pf-tabs,
  .pf-faq-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    touch-action: pan-x pan-y;
  }
  .pf-tabs::-webkit-scrollbar,
  .pf-faq-nav::-webkit-scrollbar {
    display: none;
  }
  .pf-pricing-personas {
    grid-template-columns: 1fr;
  }
  .pf-tabs .pf-tab,
  .pf-platform-nav__btn,
  .pf-faq-nav__btn,
  .pf-int-filter,
  .pf-pricing-persona {
    flex-shrink: 0;
    scroll-snap-align: start;
    min-height: 44px;
  }

  .pf-int-search {
    width: 100%;
    min-width: 0;
  }
  .pf-int-search input {
    max-width: none;
    width: 100%;
    box-sizing: border-box;
  }

  .pf-integrations__grid {
    grid-template-columns: 1fr;
  }
  .pf-int-card,
  .pf-platform-feature {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: anywhere;
  }
  .pf-platform-features {
    grid-template-columns: 1fr;
  }
  .pf-platform-pane__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .pf-platform-pane__visual {
    order: -1;
    min-width: 0;
    max-width: 100%;
  }
  .pf-platform-pane__visual .pf-frame,
  .pf-platform-pane__visual .pf-scene,
  .pf-platform-pane__visual picture,
  .pf-platform-pane__visual img {
    max-width: 100%;
  }

  .pf-contact-topic {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 10px;
  }
  .pf-orbit-hub {
    width: min(280px, 100%);
    height: min(280px, 100%);
    max-width: 86vw;
    max-height: 86vw;
    margin-inline: auto;
    overflow: hidden;
  }
  .pf-sandbox-frame__screen {
    padding: 14px;
  }
  .pf-sandbox__composer {
    grid-template-columns: 1fr;
  }
  .pf-sandbox__composer-actions {
    justify-content: flex-end;
  }
  .pf-sandbox__capabilities {
    grid-template-columns: 1fr;
  }
  .pf-pricing-calc__slider-row input[type="number"] {
    width: 4.5rem;
    min-width: 0;
  }
  .pf-stats {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .pf-pain__grid {
    grid-template-columns: 1fr;
  }
  .pf-frame,
  .pf-scene,
  .pf-frame__screen,
  .pf-frame__screen img,
  .pf-scene__img {
    max-width: 100%;
  }
  .pf-marquee {
    padding-left: var(--mk-gutter-left);
    padding-right: var(--mk-gutter-right);
  }
}

/* --- Knowledge hub glossary --- */
.mk-kb-pagehead--glossary .mk-kb-pagehead__inner h1 {
  text-transform: none;
}
.mk-glossary-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-bottom: 32px;
}
.mk-kbsearch--glossary {
  flex: 1 1 280px;
  max-width: 480px;
}
.mk-glossary-az {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mk-glossary-az a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mk-ink-muted);
  text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--mk-ink) 12%, transparent);
}
.mk-glossary-az a:hover {
  color: var(--mk-accent);
  border-color: color-mix(in srgb, var(--mk-accent) 40%, transparent);
}
.mk-glossary-category {
  margin-bottom: 40px;
}
.mk-glossary-category__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid color-mix(in srgb, var(--mk-ink) 10%, transparent);
}
.mk-glossary-category__head h2 {
  margin: 0;
  font-size: 1.25rem;
}
.mk-glossary-category__count {
  font-size: 0.85rem;
  color: var(--mk-ink-muted);
}
.mk-glossary-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.mk-glossary-item a {
  display: block;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--mk-ink) 10%, transparent);
  background: #fff;
  text-decoration: none;
  transition: border-color 140ms, box-shadow 140ms;
}
.mk-glossary-item a:hover {
  border-color: color-mix(in srgb, var(--mk-accent) 35%, transparent);
  box-shadow: 0 4px 20px color-mix(in srgb, var(--mk-ink) 6%, transparent);
}
.mk-glossary-item__term {
  display: block;
  font-weight: 600;
  color: var(--mk-ink);
  margin-bottom: 4px;
}
.mk-glossary-item__def {
  display: block;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--mk-ink-muted);
}
.mk-glossary-item__badge {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: middle;
  color: var(--mk-accent);
  background: color-mix(in srgb, var(--mk-accent) 12%, transparent);
}
.mk-glossary-letter-anchor {
  display: block;
  position: relative;
  top: -80px;
  visibility: hidden;
}
.mk-glossary-empty {
  padding: 24px;
  text-align: center;
  color: var(--mk-ink-muted);
}
.mk-glossary-related {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid color-mix(in srgb, var(--mk-ink) 10%, transparent);
}
.mk-glossary-related__list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.mk-glossary-related__list a {
  color: var(--mk-accent);
  text-decoration: none;
  font-weight: 500;
}
.mk-glossary-related__list a:hover {
  text-decoration: underline;
}
.mk-glossary-disclaimer {
  margin-top: 16px;
  max-width: 52rem;
}
.mk-glossary-learn-more {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid color-mix(in srgb, var(--mk-ink) 10%, transparent);
}
.mk-glossary-learn-more h2 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.mk-glossary-learn-more__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mk-glossary-learn-more__list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--mk-accent);
  text-decoration: none;
}
.mk-glossary-learn-more__list a:hover {
  text-decoration: underline;
}
.mk-glossary-official {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid color-mix(in srgb, var(--mk-ink) 10%, transparent);
}
.mk-glossary-official__head h2 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}
.mk-glossary-official__head p {
  color: var(--mk-muted);
  margin-bottom: 20px;
}
.mk-glossary-official__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.mk-glossary-official__card {
  border: 1px solid color-mix(in srgb, var(--mk-ink) 8%, transparent);
  border-radius: 12px;
  padding: 16px 18px;
  background: color-mix(in srgb, var(--mk-surface) 92%, white);
}
.mk-glossary-official__card h3 {
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.mk-glossary-official__card ul,
.mk-glossary-official__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mk-glossary-official__card a,
.mk-glossary-official__list a {
  font-weight: 600;
  color: var(--mk-accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.mk-glossary-official__card a:hover,
.mk-glossary-official__list a:hover {
  text-decoration: underline;
}
.mk-glossary-official__source {
  display: block;
  font-size: 0.8rem;
  color: var(--mk-muted);
  margin-top: 2px;
}
.mk-glossary-official--term {
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid color-mix(in srgb, var(--mk-ink) 8%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--mk-accent) 4%, transparent);
}
.mk-hub-back--footer {
  margin-top: 32px;
}
