/*
 * Wix Bridge Apps — public marketing design system
 * Shared by home.html + all /services/*.html
 */

:root {
  color-scheme: light dark;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --bg: #0d1420;
  --bg-soft: #131f31;
  --card: #1a293f;
  --muted: #9aa8bb;
  --text: #edf3fa;
  --body-muted: #64748b;
  --accent: #58a8f0;
  --accent-2: #7ec5ff;
  --good: #34d399;
  --warn: #fbbf24;
  --border-slate: rgba(148, 163, 184, 0.22);
  --border-dark: rgba(255, 255, 255, 0.1);
  --callout: rgba(240, 193, 75, 0.18);
  /** Dashboard-aligned accent (blue → aqua); use sparingly */
  --gradient-accent: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --gradient-accent-soft: linear-gradient(135deg, rgba(37, 99, 235, 0.14) 0%, rgba(6, 182, 212, 0.12) 100%);

  --shell-max: 1160px;
  --shell-pad: 20px;
  /** Floating rounded header — scroll padding anchors clear below sticky card */
  --mk-header-scroll-pad: 6rem;
  --section-y-mobile: 48px;
  --section-y-desktop: clamp(72px, 9vw, 96px);

  --ds-radius-xl: 24px;
  --ds-radius-lg: 22px;
  --ds-radius-md: 20px;
  --ds-padding: 24px;

  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    sans-serif;
}

@media (min-width: 768px) {
  :root {
    --shell-pad: 32px;
  }
}

@media (min-width: 1024px) {
  :root {
    --shell-pad: 40px;
  }
}

/** Taller stacked header — anchored in-page targets clear below folded nav */
@media (max-width: 899px) {
  :root {
    --mk-header-scroll-pad: 7rem;
  }
}


@media (prefers-color-scheme: light) {
  :root {
    --bg: #eef4fa;
    --bg-soft: #f0f7ff;
    --card: #ffffff;
    --muted: #64748b;
    --body-muted: #475569;
    --text: #0f172a;
    --accent: #2563eb;
    --accent-2: #0891b2;
    --border-dark: rgba(15, 23, 42, 0.08);
    --callout: rgba(251, 191, 36, 0.12);
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: #ffffff;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--mk-header-scroll-pad) + env(safe-area-inset-top, 0px));
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100dvh;
  color: var(--text);
  line-height: 1.6;
}

@media (prefers-color-scheme: light) {
  body {
    background:
      linear-gradient(180deg, #f0f9ff 0%, #eef4fb 38%, #f8fafc 100%);
  }
}

@media (prefers-color-scheme: dark) {
  body {
    background:
      radial-gradient(ellipse 120% 80% at 50% -20%, rgba(37, 99, 235, 0.12), transparent 50%),
      var(--bg);
  }
}

a {
  color: #2563eb;
}

a:hover {
  color: #1d4ed8;
}

@media (prefers-color-scheme: dark) {
  a {
    color: #7dd3fc;
  }

  a:hover {
    color: #bae6fd;
  }
}

.mk-header a,
.gradient-cta-strip a,
.hero-dashboard-preview a {
  color: inherit;
}

/* ---- Page shell (PublicShell) ---- */
.shell,
.public-shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--shell-pad) clamp(3.5rem, 8vw, 5rem);
}

/*
 * Public marketing header — MarketingHeader / PublicHeader pattern (static HTML: .mk-header + children).
 * Floating rounded glass card; mobile sheet toggled via /js/mk-public-header.js
 */
/* ---- Public marketing header (PublicHeader — floating nav card) ---- */
.mk-header,
.public-header {
  position: sticky;
  z-index: 40;
  top: max(0.75rem, env(safe-area-inset-top, 0px));
  width: 100%;
  max-width: 100%;
  margin: 20px auto clamp(1.5rem, 5vw, 3rem);
  padding: 14px 18px;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  border-radius: 22px;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.25),
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
  isolation: isolate;
}

@media (prefers-color-scheme: light) {
  .mk-header {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(148, 163, 184, 0.24);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  }
}

.mk-header__brand {
  order: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex: 0 1 auto;
  min-width: 0;
  text-decoration: none;
  color: #f1f5f9;
  font-weight: 700;
  font-size: 1.0125rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  padding: 0.2rem 0;
  border-radius: 12px;
  transition: background 0.15s ease;
}

@media (prefers-color-scheme: light) {
  .mk-header__brand {
    color: #0f172a;
  }
}

.mk-header__brand:hover {
  background: rgba(255, 255, 255, 0.06);
}

@media (prefers-color-scheme: light) {
  .mk-header__brand:hover {
    background: rgba(15, 23, 42, 0.04);
  }
}

.mk-header__brand:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.85);
  outline-offset: 2px;
}

.mk-header__mark {
  display: block;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--gradient-accent);
  box-shadow:
    0 6px 16px rgba(37, 99, 235, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

.mk-header__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 6px;
  flex: 1 1 100%;
  order: 3;
  min-width: 0;
  margin: 0;
}

.mk-header__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.890625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 999px;
  transition:
    background 0.16s ease,
    color 0.16s ease;
  color: #94a3b8;
}

.mk-header__link:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #f1f5f9;
}

.mk-header__link:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.75);
  outline-offset: 2px;
}

@media (prefers-color-scheme: light) {
  .mk-header__link {
    color: #475569;
  }

  .mk-header__link:hover {
    background: rgba(15, 23, 42, 0.045);
    color: #0f172a;
  }

  .mk-header__link:focus-visible {
    outline-color: rgba(37, 99, 235, 0.45);
  }
}

.mk-header__link[aria-current="page"] {
  background: rgba(96, 165, 250, 0.12);
  color: #e2e8f0;
}

@media (prefers-color-scheme: light) {
  .mk-header__link[aria-current="page"] {
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
  }
}

.mk-header__end {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
  order: 2;
  margin-left: auto;
}

.mk-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  background: #111827;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: none;
  transition: all 180ms ease;
}

.mk-header__cta:hover {
  background: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
  color: #ffffff !important;
}

@media (prefers-color-scheme: dark) {
  .mk-header__cta {
    background: rgba(248, 250, 252, 0.96);
    color: #0f172a !important;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  }

  .mk-header__cta:hover {
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
    color: #0f172a !important;
  }
}

.mk-header__cta:focus-visible {
  outline: 2px solid rgba(17, 24, 39, 0.45);
  outline-offset: 2px;
}

@media (prefers-color-scheme: dark) {
  .mk-header__cta:focus-visible {
    outline-color: rgba(248, 250, 252, 0.5);
  }
}

.mk-header__cta.mk-header__cta--desktop {
  display: none;
}

.mk-header__cta.mk-header__cta--mobile {
  display: none;
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
  margin-top: 4px;
}

.mk-header__menu {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  transition:
    background 0.16s ease,
    border-color 0.16s ease;
}

.mk-header__menu:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (prefers-color-scheme: light) {
  .mk-header__menu {
    background: rgba(255, 255, 255, 0.65);
    border-color: rgba(148, 163, 184, 0.4);
    color: #0f172a;
  }

  .mk-header__menu:hover {
    background: rgba(248, 250, 252, 0.95);
  }
}

.mk-header__menu-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 1.125rem;
  pointer-events: none;
}

.mk-header__menu-lines span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.9;
}

@media (max-width: 899px) {
  .mk-header:not(.mk-header--open) .mk-header__nav {
    display: none;
  }

  .mk-header.mk-header--open .mk-header__nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 10px;
    padding-top: 0.5rem;
    margin-top: 0.125rem;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    animation: mk-header-sheet-in 0.18s ease;
  }

  .mk-header.mk-header--open .mk-header__nav .mk-header__link {
    justify-content: flex-start;
    white-space: normal;
    padding: 10px 12px;
  }

  .mk-header__cta.mk-header__cta--desktop {
    display: none !important;
  }

  .mk-header__cta.mk-header__cta--mobile {
    display: inline-flex !important;
  }
}

@keyframes mk-header-sheet-in {
  from {
    opacity: 0.75;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 900px) {
  .mk-header {
    gap: 0.5rem 1.125rem;
  }

  .mk-header__brand {
    order: 1;
    flex-shrink: 0;
  }

  .mk-header__nav {
    order: 2;
    flex: 1 1 auto;
    justify-content: center;
    border-top: none;
    padding-top: 0;
    margin-top: 0;
  }

  .mk-header__menu {
    display: none;
  }

  .mk-header:not(.mk-header--open) .mk-header__nav {
    display: flex;
  }

  .mk-header__cta.mk-header__cta--desktop {
    display: inline-flex;
  }

  .mk-header__cta.mk-header__cta--mobile {
    display: none;
  }

  .mk-header__end {
    order: 3;
    margin-left: 0;
  }

  /* When JS leaves --open stale on resize, normalize */
  .mk-header.mk-header--open .mk-header__nav {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
  }
}

/* ---- Sections (PublicSection) ---- */
.section,
.mk-section,
.public-section {
  margin-top: var(--section-y-mobile);
  scroll-margin-top: 1rem;
}

@media (min-width: 768px) {
  .section,
  .mk-section,
  .public-section {
    margin-top: var(--section-y-desktop);
  }
}

.hero-wrap:first-of-type .hero-platform {
  margin-top: 0;
}

/* Hero block (homepage & service tops) */
.hero-wrap {
  margin-bottom: 0;
}

.hero-platform {
  background: linear-gradient(
    155deg,
    var(--surface-strong) 0%,
    rgba(255, 255, 255, 0.88) 100%
  );
  border: 1px solid var(--border-slate);
  border-radius: var(--ds-radius-xl);
  padding: clamp(1.75rem, 4.5vw, 3.5rem) clamp(1.5rem, 4vw, 3.5rem);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 14px 40px rgba(15, 23, 42, 0.06);
}

@media (prefers-color-scheme: dark) {
  .hero-platform {
    background: linear-gradient(
      155deg,
      rgba(30, 41, 59, 0.95) 0%,
      rgba(15, 23, 42, 0.65) 100%
    );
    border-color: var(--border-dark);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  }
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

@media (max-width: 920px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: clamp(1.75rem, 4vw, 2.25rem);
  }
}

.hero-xero .cta-row {
  margin-top: 1.25rem;
}

/**
 * Homepage hero — dashboard preview (clustered metrics: fewer competing boxes).
 */
.hero-dashboard-preview {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 20px;
  padding: 1.5rem 1.45rem 1.35rem;
  color: rgba(255, 255, 255, 0.94);
  background:
    radial-gradient(ellipse 110% 75% at 92% 8%, rgba(34, 211, 238, 0.2), transparent 52%),
    radial-gradient(ellipse 95% 65% at 8% 92%, rgba(59, 130, 246, 0.16), transparent 54%),
    linear-gradient(162deg, #162f4d 0%, #1d4ed8 44%, #0e8599 100%);
  box-shadow:
    0 14px 44px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.hero-dashboard-preview::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.95), rgba(34, 211, 238, 0.85));
  z-index: 3;
}

.hero-dashboard-preview::after {
  content: "";
  position: absolute;
  inset: auto -28% -42% auto;
  width: min(17rem, 72%);
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.075), transparent 66%);
  pointer-events: none;
}

.hero-dashboard-preview__header {
  position: relative;
  z-index: 2;
  margin: 0 0 1.1rem;
  padding: 0.68rem 0.88rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-dashboard-preview__eyebrow {
  display: block;
  font-size: 0.59375rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: 0.32rem;
}

.hero-dashboard-preview__title {
  margin: 0;
  font-size: clamp(1rem, 1.95vw, 1.125rem);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.94);
}

.hero-dashboard-preview p.hero-dashboard-preview__title {
  color: rgba(255, 255, 255, 0.94);
}

.hero-dashboard-preview__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
}

.hero-dashboard-preview__cluster {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  border-radius: 14px;
  overflow: hidden;
  min-width: 0;
}

.hero-dashboard-preview__cluster--primary {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hero-dashboard-preview__cluster--secondary {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

.hero-dashboard-preview__cell {
  padding: 0.92rem 0.95rem;
  min-width: 0;
}

.hero-dashboard-preview__cell--divider {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-dashboard-preview__cluster--secondary .hero-dashboard-preview__cell {
  padding: 0.72rem 0.82rem;
}

.hero-dashboard-preview__cluster--secondary .hero-dashboard-preview__cell--divider {
  border-left-color: rgba(255, 255, 255, 0.1);
}

.hero-dashboard-preview__label {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.56);
  margin-bottom: 0.38rem;
}

.hero-dashboard-preview__cluster--secondary .hero-dashboard-preview__label {
  font-size: 0.578125rem;
  letter-spacing: 0.055em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.28rem;
}

.hero-dashboard-preview__value {
  display: block;
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: rgba(255, 255, 255, 0.99);
}

.hero-dashboard-preview__value--muted {
  font-size: 0.84375rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: rgba(255, 255, 255, 0.74);
}

.hero-dashboard-preview__footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  margin-top: 0.12rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-dashboard-preview__pipeline {
  margin: 0;
  flex: 1 1 12rem;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
}

.hero-dashboard-preview__pipeline-label {
  display: block;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  font-size: 0.578125rem;
  color: rgba(255, 255, 255, 0.42);
}

.hero-dashboard-preview__pipeline-flow {
  display: block;
  font-size: 0.734375rem;
  line-height: 1.42;
  letter-spacing: -0.012em;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
}

.hero-dashboard-preview__status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  padding: 0.3rem 0.62rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-dashboard-preview__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  flex-shrink: 0;
  background: #6ee7b7;
  box-shadow: 0 0 0 2px rgba(110, 231, 183, 0.22);
}

.home-hero-meta {
  margin-top: 1.35rem;
  max-width: min(58ch, 100%);
  font-size: 0.9375rem;
  line-height: 1.62;
  color: var(--body-muted);
}

@media (max-width: 920px) {
  .hero-dashboard-preview {
    min-height: 0;
  }
}

/* ServiceHero — alias for primary marketing hero surface */
.hero-platform.service-hero,
.service-hero.hero-platform {
  /* inherits .hero-platform */
}

.chip {
  display: inline-block;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent-2);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.065em;
  text-transform: uppercase;
  padding: 0.32rem 0.72rem;
  margin-bottom: 0.85rem;
}

@media (prefers-color-scheme: dark) {
  .chip {
    background: rgba(88, 168, 240, 0.12);
    border-color: rgba(88, 168, 240, 0.28);
    color: #bae6fd;
  }
}

/* ---- Typography ---- */
h1 {
  margin: 0;
  font-size: clamp(1.75rem, 4.8vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: -0.032em;
  font-weight: 750;
  color: var(--text);
  max-width: 22ch;
}

@media (min-width: 768px) {
  h1 {
    max-width: 26ch;
  }
}

.hero-platform.hero-xero h1,
.coming-inner h1 {
  max-width: 32ch;
}

h2.section-title {
  margin: 0 0 0.625rem;
  font-size: clamp(1.2rem, 2.8vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}

h3.card-title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.35;
}

.lede {
  margin: 0.875rem 0 1.125rem;
  color: var(--body-muted);
  max-width: 58ch;
  font-size: 1.0625rem;
  line-height: 1.58;
}

p {
  margin: 0;
  color: var(--body-muted);
  font-size: 0.9825rem;
  line-height: 1.64;
}

@media (prefers-color-scheme: dark) {
  :root {
    --body-muted: #9aa8bb;
  }

  p,
  .lede {
    color: var(--muted);
  }
}

.section-lede {
  max-width: min(62ch, 100%);
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(12px, 2vw, 16px);
  margin-top: 1.125rem;
}

.hero-platform > .cta-row:first-of-type {
  margin-top: 1.125rem;
}

/* ---- Buttons (.btn = PublicButton primary/secondary) ---- */
.btn,
.public-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  border-style: solid;
  border-width: 1px;
  transition: all 180ms ease;
}

.btn:not(.secondary):not(.soft):not(.btn-tertiary),
.public-btn:not(.secondary):not(.soft):not(.btn-tertiary) {
  background: #111827;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.btn:not(.secondary):not(.soft):not(.btn-tertiary):hover,
.public-btn:not(.secondary):not(.soft):not(.btn-tertiary):hover {
  background: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

@media (prefers-color-scheme: dark) {
  .btn:not(.secondary):not(.soft):not(.btn-tertiary),
  .public-btn:not(.secondary):not(.soft):not(.btn-tertiary) {
    background: rgba(248, 250, 252, 0.96);
    color: #0f172a;
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  }

  .btn:not(.secondary):not(.soft):not(.btn-tertiary):hover,
  .public-btn:not(.secondary):not(.soft):not(.btn-tertiary):hover {
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  }
}

.btn.secondary,
.public-btn.secondary {
  background: rgba(255, 255, 255, 0.75);
  color: #111827;
  border-color: rgba(148, 163, 184, 0.28);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.btn.secondary:hover,
.public-btn.secondary:hover {
  background: #ffffff;
}

@media (prefers-color-scheme: dark) {
  .btn.secondary,
  .public-btn.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    border-color: rgba(148, 163, 184, 0.25);
  }

  .btn.secondary:hover,
  .public-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  }
}

.btn.soft,
.public-btn.soft {
  background: rgba(255, 255, 255, 0.75);
  color: #334155;
  border-color: rgba(148, 163, 184, 0.32);
}

.btn.soft:hover,
.public-btn.soft:hover {
  background: #ffffff;
}

@media (prefers-color-scheme: dark) {
  .btn.soft,
  .public-btn.soft {
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.2);
  }

  .btn.soft:hover,
  .public-btn.soft:hover {
    background: rgba(255, 255, 255, 0.1);
  }
}

.btn:focus-visible,
.public-btn:focus-visible {
  outline: 2px solid rgba(17, 24, 39, 0.32);
  outline-offset: 3px;
}

@media (prefers-color-scheme: dark) {
  .btn:not(.secondary):not(.soft):not(.btn-tertiary):focus-visible,
  .public-btn:not(.secondary):not(.soft):not(.btn-tertiary):focus-visible {
    outline-color: rgba(248, 250, 252, 0.45);
  }

  .btn.secondary:focus-visible,
  .btn.soft:focus-visible,
  .public-btn.secondary:focus-visible,
  .public-btn.soft:focus-visible {
    outline-color: rgba(148, 163, 184, 0.45);
  }
}

.btn-tertiary,
.link-tertiary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 8px 6px;
  border: none;
  background: transparent;
  box-shadow: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  color: #475569;
  text-decoration: none;
  cursor: pointer;
  border-radius: 8px;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}

.btn-tertiary:hover,
.link-tertiary:hover {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.04);
  transform: none;
  box-shadow: none;
}

.btn-tertiary::after,
.link-tertiary::after {
  content: "→";
  font-weight: 700;
  transition: transform 0.18s ease;
  opacity: 0.88;
}

.btn-tertiary:hover::after,
.link-tertiary:hover::after {
  transform: translateX(4px);
}

@media (prefers-color-scheme: dark) {
  .btn-tertiary,
  .link-tertiary {
    color: #cbd5e1;
  }

  .btn-tertiary:hover,
  .link-tertiary:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.06);
  }
}

/* ---- Badges (integration status — StatusBadge) ---- */
.badge,
.status-badge {
  display: inline-block;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  border-width: 1px;
  border-style: solid;
}

.badge-live {
  background: rgba(52, 211, 153, 0.12);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.32);
}

.badge-soon {
  background: rgba(251, 191, 36, 0.12);
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.35);
}

.badge-available {
  background: rgba(99, 102, 241, 0.1);
  color: #4f46e5;
  border-color: rgba(99, 102, 241, 0.28);
}

@media (prefers-color-scheme: dark) {
  .badge-live {
    color: #6ee7b7;
    background: rgba(52, 211, 153, 0.1);
  }

  .badge-soon {
    color: #fcd34d;
    background: rgba(251, 191, 36, 0.08);
  }

  .badge-available {
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.12);
  }
}

/* ---- Design-system card (PublicCard) ---- */
.ds-card,
.public-card {
  background: var(--surface);
  border: 1px solid var(--border-slate);
  border-radius: var(--ds-radius-md);
  padding: var(--ds-padding);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 6px 20px rgba(15, 23, 42, 0.04);
}

@media (prefers-color-scheme: dark) {
  .ds-card,
  .public-card {
    background: rgba(30, 41, 59, 0.55);
    border-color: rgba(148, 163, 184, 0.12);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  }
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border-slate);
  border-radius: var(--ds-radius-md);
  padding: clamp(1.25rem, 3vw, 1.65rem);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 24px rgba(15, 23, 42, 0.04);
}

@media (prefers-color-scheme: dark) {
  .panel {
    background: rgba(25, 35, 55, 0.75);
    border-color: rgba(148, 163, 184, 0.14);
  }
}

.panel h2 {
  margin: 0 0 0.875rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
}

.panel h2.ds-panel-title {
  font-size: 1.05rem;
}

/* Integration cards (homepage grid) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: clamp(1.125rem, 2.5vw, 1.5rem);
  margin-top: 0.5rem;
}

.svc-card,
.integration-card {
  border: 1px solid var(--border-slate);
  border-radius: var(--ds-radius-md);
  padding: clamp(1.25rem, 3vw, 1.45rem);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 100%;
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.05),
    0 8px 24px rgba(15, 23, 42, 0.04);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.svc-card:hover,
.integration-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 12px rgba(15, 23, 42, 0.06),
    0 14px 36px rgba(15, 23, 42, 0.08);
  border-color: rgba(148, 163, 184, 0.35);
}

@media (prefers-color-scheme: dark) {
  .svc-card,
  .integration-card {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(148, 163, 184, 0.12);
  }
}

.svc-card .cta-row {
  margin-top: auto;
  padding-top: 0.25rem;
}

.svc-card p.desc {
  flex-grow: 1;
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Feature grid (hero underfold, bookkeeping, etc.) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.5rem);
  margin-top: clamp(1.5rem, 3.5vw, 2rem);
}

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

@media (min-width: 640px) and (max-width: 900px) {
  .feature-grid.cols-3-tablet-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.feature-card {
  border: 1px solid var(--border-slate);
  border-radius: clamp(17px, 2vw, 20px);
  padding: clamp(1.125rem, 2.8vw, 1.375rem);
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 6px 18px rgba(15, 23, 42, 0.04);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 14px rgba(15, 23, 42, 0.07),
    0 12px 32px rgba(15, 23, 42, 0.06);
}

@media (prefers-color-scheme: dark) {
  .feature-card {
    background: rgba(25, 35, 55, 0.55);
    border-color: rgba(148, 163, 184, 0.16);
  }
}

.feature-card > strong {
  display: block;
  margin-bottom: 0.42rem;
  color: var(--text);
  font-size: 0.97rem;
  font-weight: 650;
  line-height: 1.3;
}

.feature-card > p {
  font-size: 0.9075rem;
  line-height: 1.6;
}

.check {
  display: grid;
  gap: 0.62rem;
}

.check span {
  color: #10b981;
  font-weight: 800;
  margin-right: 0.45rem;
}

@media (prefers-color-scheme: dark) {
  .check span {
    color: #6ee7b7;
  }
}

.check p {
  margin: 0;
  color: var(--text);
  font-weight: 500;
  font-size: 0.93rem;
}

/* Trust grid */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
  margin-top: 0.75rem;
}

.trust-cell {
  border: 1px solid var(--border-slate);
  border-radius: var(--ds-radius-md);
  padding: var(--ds-padding);
  background: var(--surface);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

@media (prefers-color-scheme: dark) {
  .trust-cell {
    background: rgba(30, 41, 59, 0.45);
  }
}

.trust-cell strong {
  display: block;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 650;
  margin-bottom: 0.45rem;
  line-height: 1.3;
}

.trust-cell p {
  font-size: 0.92rem;
  line-height: 1.6;
}

.split {
  border: 1px solid var(--border-slate);
  border-radius: var(--ds-radius-lg);
  background: var(--surface);
  padding: clamp(1.5rem, 3.5vw, 2rem);
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.05),
    0 12px 32px rgba(15, 23, 42, 0.05);
}

@media (prefers-color-scheme: dark) {
  .split {
    background: rgba(30, 41, 59, 0.42);
  }
}

.split h2.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.25rem, 2.9vw, 1.42rem);
}

.split h3 {
  margin: 0 0 0.625rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.split > p {
  margin-top: 0.25rem;
  max-width: 68ch;
}

/* How it works — steps shell */
.steps-wrap {
  border: 1px solid var(--border-slate);
  border-radius: var(--ds-radius-lg);
  background: var(--surface-strong);
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.35rem, 3vw, 2rem);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 10px 34px rgba(15, 23, 42, 0.05);
}

@media (prefers-color-scheme: dark) {
  .steps-wrap {
    background: rgba(22, 32, 50, 0.88);
    border-color: rgba(148, 163, 184, 0.14);
  }
}

.steps-wrap > h2.section-title:first-child,
.steps-wrap > h2:first-child {
  margin-bottom: 0.5rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(1rem, 2vw, 1.35rem);
  margin-top: 1rem;
}

.step-card {
  border: 1px solid var(--border-slate);
  border-radius: var(--ds-radius-md);
  padding: 1.125rem 1.2rem;
  background: rgba(248, 250, 252, 0.65);
}

@media (prefers-color-scheme: dark) {
  .step-card {
    background: rgba(15, 23, 42, 0.35);
  }
}

.step-card strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.375rem;
  font-size: 0.965rem;
}

.step-card p {
  font-size: 0.9075rem;
  line-height: 1.6;
}

/* Legacy `.steps` — keep spacing if referenced */
.steps.steps-legacy {
  margin-top: 1.85rem;
  border-radius: var(--ds-radius-lg);
}

.callout-soft {
  display: none;
  margin-top: 1.125rem;
  padding: 0.95rem 1.1rem;
  border-radius: 14px;
  background: var(--callout);
  border: 1px solid rgba(245, 158, 11, 0.32);
  font-size: 0.9075rem;
  color: var(--text);
  line-height: 1.52;
}

.note {
  margin-top: clamp(1rem, 2.5vw, 1.35rem);
  font-size: 0.8675rem;
  line-height: 1.55;
  max-width: 68ch;
}

/* Coming soon templates */
.coming-inner {
  max-width: 46rem;
  margin: 0 auto;
}

.coming-page {
  margin-top: 0;
  padding: clamp(1.85rem, 4.5vw, 2.75rem) clamp(1.5rem, 3.8vw, 2.75rem);
  border-radius: var(--ds-radius-xl);
  background: var(--surface);
  border: 1px solid var(--border-slate);
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.05),
    0 18px 48px rgba(15, 23, 42, 0.06);
}

@media (prefers-color-scheme: dark) {
  .coming-page {
    background: rgba(22, 32, 50, 0.88);
    border-color: rgba(148, 163, 184, 0.14);
  }
}

.coming-inner > h2.section-title:not(:first-of-type),
.coming-page h2.section-title:not(:first-child) {
  margin-top: clamp(1.75rem, 4vw, 2.25rem);
}

.coming-inner > .section-title:first-of-type:not(.badge + *) {
  margin-top: 0;
}

.mk-section-coming {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.coming-features {
  margin: 1rem 0 1.35rem;
  padding-left: 1.35rem;
}

.coming-features li {
  margin-bottom: 0.55rem;
  color: inherit;
}

.coming-features li::marker {
  color: rgba(37, 99, 235, 0.55);
}

/* Premium coming-soon layout: cards + cross-links */
.coming-soon-layout {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.25rem);
  margin-top: 1.35rem;
}

@media (min-width: 720px) {
  .coming-soon-layout.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.coming-soon-card {
  border-radius: var(--ds-radius-md);
  border: 1px solid var(--border-slate);
  background: rgba(248, 250, 252, 0.65);
  padding: 1.15rem 1.25rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

@media (prefers-color-scheme: dark) {
  .coming-soon-card {
    background: rgba(15, 23, 42, 0.35);
    border-color: rgba(148, 163, 184, 0.14);
  }
}

.coming-soon-card h3 {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
}

.coming-soon-card p {
  margin: 0;
  font-size: 0.9075rem;
  line-height: 1.58;
}

.cross-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  align-items: center;
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border-slate);
  font-size: 0.9075rem;
}

.cross-links strong {
  font-weight: 700;
  color: var(--text);
  margin-right: 0.25rem;
}

.custom-hero-aside p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.55;
}

.custom-hero-aside .custom-aside-muted {
  margin: 0;
  font-size: 0.85rem;
  color: var(--body-muted);
  line-height: 1.5;
}

/* Gradient CTA band (homepage + selective pages) */
.gradient-cta-strip {
  margin-top: var(--section-y-desktop);
  scroll-margin-top: 1rem;
  border-radius: var(--ds-radius-xl);
  padding: clamp(1.85rem, 4vw, 2.65rem) clamp(1.5rem, 4vw, 2.5rem);
  background: var(--gradient-accent);
  color: #fff;
  box-shadow:
    0 18px 46px rgba(37, 99, 235, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.15) inset;
  display: grid;
  gap: clamp(1.15rem, 3vw, 1.5rem);
  align-items: center;
}

@media (min-width: 768px) {
  .gradient-cta-strip {
    grid-template-columns: minmax(0, 1.35fr) auto;
  }
}

.gradient-cta-strip h2 {
  margin: 0;
  font-size: clamp(1.22rem, 2.6vw, 1.48rem);
  font-weight: 750;
  letter-spacing: -0.032em;
  line-height: 1.15;
  color: #fff;
}

.gradient-cta-strip .strip-lede {
  margin: 0.45rem 0 0;
  font-size: 0.94rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  max-width: 46ch;
}

.gradient-cta-strip .cta-row {
  margin-top: 0;
  justify-content: flex-start;
}

.gradient-cta-strip .btn,
.gradient-cta-strip .public-btn {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.65) !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.gradient-cta-strip .btn:hover,
.gradient-cta-strip .public-btn:hover {
  background: #f8fafc !important;
  transform: translateY(-1px);
}

.gradient-cta-strip .btn.secondary,
.gradient-cta-strip .public-btn.secondary {
  background: rgba(15, 23, 42, 0.35) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  backdrop-filter: blur(8px);
}

.gradient-cta-strip .btn.secondary:hover,
.gradient-cta-strip .public-btn.secondary:hover {
  background: rgba(15, 23, 42, 0.5) !important;
}

@media (prefers-color-scheme: dark) {
  .gradient-cta-strip .btn:not(.secondary),
  .gradient-cta-strip .public-btn:not(.secondary) {
    background: #f8fafc !important;
    color: #0f172a !important;
  }
}

/* Footer ---- */
.site-footer,
.public-footer {
  margin-top: clamp(3rem, 6vw, 4.75rem);
  padding-top: clamp(2rem, 5vw, 2.75rem);
  padding-bottom: 0.5rem;
  border-top: 1px solid var(--border-slate);
  display: grid;
  gap: clamp(1.25rem, 3vw, 1.85rem);
}

@media (prefers-color-scheme: dark) {
  .site-footer {
    border-top-color: var(--border-dark);
  }
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  font-size: 0.8825rem;
  line-height: 1.6;
}

.footer-row p {
  max-width: 52ch;
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.6rem;
  align-items: center;
}

.footer-links a {
  font-weight: 600;
  white-space: nowrap;
}

/* ==========================================================================
   Homepage polish v2 (home.html only — `.home-page` on shell)
   ========================================================================== */

.shell.home-page {
  --section-y-mobile: 34px;
  --section-y-desktop: clamp(48px, 5.5vw, 68px);
  padding-bottom: clamp(2.25rem, 4.5vw, 3.25rem);
}

.home-page .hero-platform {
  padding: clamp(1.45rem, 3.2vw, 2.65rem) clamp(1.35rem, 3.2vw, 2.65rem);
}

.home-page .service-hero h1 {
  max-width: min(36ch, 100%);
}

@media (min-width: 768px) {
  .home-page .service-hero h1 {
    max-width: 32ch;
  }
}

.home-page .section-lede {
  margin-bottom: clamp(0.75rem, 2vw, 1.2rem);
}

.home-page .mk-header {
  margin-bottom: clamp(1.15rem, 3.5vw, 2rem);
}

/* ---- Trust strip (credibility rail) ---- */
.trust-strip {
  margin-top: var(--section-y-mobile);
  padding: clamp(1rem, 2.5vw, 1.35rem) clamp(1rem, 2.5vw, 1.5rem);
  border-radius: var(--ds-radius-lg);
  border: 1px solid var(--border-slate);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

@media (min-width: 768px) {
  .trust-strip {
    margin-top: var(--section-y-desktop);
  }
}

@media (prefers-color-scheme: dark) {
  .trust-strip {
    background: rgba(30, 41, 59, 0.42);
    border-color: rgba(148, 163, 184, 0.14);
  }
}

.trust-strip__label {
  margin: 0 0 0.65rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--body-muted);
}

.trust-strip__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}

@media (min-width: 900px) {
  .trust-strip__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem 1.25rem;
  }
}

.trust-strip__item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.trust-strip__icon-wrap {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.trust-strip__svg {
  width: 1.125rem;
  height: 1.125rem;
}

.trust-strip__icon-wrap--live {
  color: #059669;
}

.trust-strip__icon-wrap--secure {
  color: #2563eb;
}

.trust-strip__icon-wrap--built {
  color: #4f46e5;
}

.trust-strip__icon-wrap--more {
  color: #d97706;
}

@media (prefers-color-scheme: dark) {
  .trust-strip__icon-wrap {
    background: rgba(30, 41, 59, 0.65);
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: none;
  }

  .trust-strip__icon-wrap--live {
    color: #34d399;
  }

  .trust-strip__icon-wrap--secure {
    color: #60a5fa;
  }

  .trust-strip__icon-wrap--built {
    color: #a5b4fc;
  }

  .trust-strip__icon-wrap--more {
    color: #fbbf24;
  }
}

.trust-strip__copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.trust-strip__head {
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: -0.018em;
  line-height: 1.25;
  color: var(--text);
}

.trust-strip__sub {
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--body-muted);
}

@media (prefers-color-scheme: dark) {
  .trust-strip__sub {
    color: var(--muted);
  }
}

/* ---- Homepage integration card tiers ---- */
.card-grid--home {
  align-items: stretch;
}

.integration-card--featured {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: var(--ds-radius-md);
  padding-top: calc(var(--ds-padding) + 6px);
  border-color: rgba(37, 99, 235, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92));
  box-shadow:
    0 4px 14px rgba(37, 99, 235, 0.08),
    0 14px 40px rgba(15, 23, 42, 0.06);
}

.integration-card--featured::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  border-radius: var(--ds-radius-md) var(--ds-radius-md) 0 0;
  background: var(--gradient-accent);
}

.integration-card--featured:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow:
    0 8px 22px rgba(37, 99, 235, 0.12),
    0 18px 48px rgba(15, 23, 42, 0.08);
}

@media (prefers-color-scheme: dark) {
  .integration-card--featured {
    background: linear-gradient(180deg, rgba(35, 48, 72, 0.95), rgba(30, 41, 59, 0.72));
    border-color: rgba(96, 165, 250, 0.22);
  }
}

.integration-card--soon {
  opacity: 0.94;
  background: rgba(248, 250, 252, 0.72);
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.035);
}

.integration-card--soon:hover {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.055);
}

@media (prefers-color-scheme: dark) {
  .integration-card--soon {
    background: rgba(22, 32, 48, 0.55);
    border-color: rgba(148, 163, 184, 0.1);
  }
}

.integration-card--premium-custom {
  border-color: rgba(79, 70, 229, 0.28);
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(239, 246, 255, 0.88) 55%,
    rgba(238, 242, 255, 0.82) 100%
  );
  box-shadow:
    0 2px 6px rgba(79, 70, 229, 0.06),
    0 14px 38px rgba(79, 70, 229, 0.09);
}

.integration-card--premium-custom:hover {
  transform: translateY(-3px);
  border-color: rgba(79, 70, 229, 0.42);
}

@media (prefers-color-scheme: dark) {
  .integration-card--premium-custom {
    background: linear-gradient(
      155deg,
      rgba(40, 36, 72, 0.65) 0%,
      rgba(30, 41, 59, 0.62) 100%
    );
    border-color: rgba(165, 180, 252, 0.22);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  }
}

/* ---- Homepage split teaser ---- */
.split--home-teaser {
  position: relative;
  overflow: hidden;
}

.split--home-teaser::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-accent-soft);
  opacity: 0.45;
  pointer-events: none;
}

.split--home-teaser > * {
  position: relative;
  z-index: 1;
}

.split__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---- Premium footer (homepage) ---- */
.footer-premium.site-footer {
  margin-top: var(--section-y-desktop);
  padding-top: 0;
  border-top: none;
  gap: 0;
}

.footer-premium__card {
  border-radius: var(--ds-radius-xl);
  border: 1px solid var(--border-slate);
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 16px 44px rgba(15, 23, 42, 0.07);
  overflow: hidden;
}

@media (prefers-color-scheme: dark) {
  .footer-premium__card {
    background: rgba(22, 32, 48, 0.72);
    border-color: rgba(148, 163, 184, 0.14);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  }
}

.footer-premium__top {
  padding: clamp(1.65rem, 3.5vw, 2.25rem) clamp(1.35rem, 3vw, 2rem);
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem);
}

@media (min-width: 880px) {
  .footer-premium__top {
    grid-template-columns: minmax(220px, 1fr) minmax(0, 2.2fr);
    align-items: start;
  }
}

.footer-premium__brand {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.footer-premium__mark {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: var(--gradient-accent);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
}

.footer-premium__name {
  display: block;
  font-size: 1.07rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.footer-premium__tagline {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--body-muted);
  max-width: 38ch;
}

.footer-premium__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.footer-premium__heading {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--body-muted);
}

.footer-premium__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-premium__links a {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0;
  font-size: 0.9125rem;
  font-weight: 650;
  text-decoration: none;
  color: var(--text);
  border-radius: 8px;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.footer-premium__links a:hover {
  background: rgba(37, 99, 235, 0.06);
  color: #2563eb;
}

@media (prefers-color-scheme: dark) {
  .footer-premium__links a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #7dd3fc;
  }
}

.footer-premium__support-text {
  margin: 0 0 0.85rem;
  font-size: 0.8625rem;
  line-height: 1.55;
  color: var(--body-muted);
}

.footer-premium__dash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.65rem;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  background: #111827;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.footer-premium__dash-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18);
  color: #fff !important;
}

@media (prefers-color-scheme: dark) {
  .footer-premium__dash-btn {
    background: rgba(248, 250, 252, 0.96);
    color: #0f172a !important;
  }

  .footer-premium__dash-btn:hover {
    color: #0f172a !important;
  }
}

.footer-premium__mailto {
  display: inline-flex;
  align-items: center;
  font-size: 0.8625rem;
  font-weight: 650;
  text-decoration: none;
  padding: 0.25rem 0;
}

.footer-premium__bottom {
  padding: 0.85rem clamp(1.35rem, 3vw, 2rem);
  border-top: 1px solid var(--border-slate);
  background: rgba(248, 250, 252, 0.55);
}

@media (prefers-color-scheme: dark) {
  .footer-premium__bottom {
    background: rgba(15, 23, 42, 0.35);
    border-top-color: rgba(148, 163, 184, 0.12);
  }
}

.footer-premium__fineprint {
  font-size: 0.78rem;
  color: var(--body-muted);
  letter-spacing: 0.01em;
}
