/* Mysto marketing v4 — shared chrome + page shell inspired by home-v4 */

html:has(body.page-mkt-v4) {
  scroll-behavior: auto;
  background-color: #f4f4f5;
}

html:has(body.page-mkt-v4),
body.page-mkt-v4 {
  overflow-x: clip;
}

body.page-mkt-v4 {
  --v3-btn-h: 3rem;
  --v3-btn-h-sm: 2.25rem;
  --v3-header-ctrl: var(--v3-btn-h-sm, 2.25rem);
  --v3-ink: #222222;
  --v3-ink-rgb: 34 34 34;
  --v3-ash: #6a6a6a;
  --v3-cloud: #f7f7f7;
  --v3-line: #dddddd;
  --v3-primary: var(--myst-primary);
  --v3-primary-press: var(--myst-primary-press);
  --v3-border: #dddddd;
  --v3-canvas-bg: #f4f4f5;
  --v3-dot: rgba(34, 34, 34, 0.14);
  /* Low-opacity section washes — dotted canvas shows through */
  --v3-shade-a: rgba(255, 255, 255, 0.5);
  --v3-shade-b: rgba(247, 247, 247, 0.42);
  --v3-yellow: #ffe14a;
  --v3-section-pad-y: 3.5rem;
  --v3-section-pad-y-lg: 5rem;
  --v3-section-pad-x: 1.5rem;
  --v3-max: 72rem;
  --v3-radius: 0.5rem;
  --v3-title: clamp(2rem, 4.5vw, 3rem);
  --v3-lede: var(--myst-text-lede, 1.125rem);
  --v3-lede-lh: var(--myst-text-lede-lh, 1.625rem);
  margin: 0;
  color: var(--v3-ash);
  color-scheme: light;
  font-family: var(--myst-font-sans, "Open Sauce One", system-ui, sans-serif);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  background: transparent;
  isolation: isolate;
}

/* Fixed dotted canvas — does not scroll with the page */
body.page-mkt-v4::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--v3-canvas-bg);
  background-image: radial-gradient(circle, var(--v3-dot) 1px, transparent 1.15px);
  background-size: 20px 20px;
}

body.page-mkt-v4.marketing-page,
body.page-mkt-v4.marketing-blog-page {
  background: transparent;
  color: var(--v3-ash);
}

body.page-mkt-v4 a {
  text-decoration: none;
}

/* Custom cursor — desktop fine pointers (shared with home via marketing-cursor.php) */
.v3-cursor {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  body.page-mkt-v4.has-v3-cursor,
  body.page-mkt-v4.has-v3-cursor *,
  body.page-home-v4.has-v3-cursor,
  body.page-home-v4.has-v3-cursor * {
    cursor: none !important;
  }

  .v3-cursor {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 0;
    height: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  body.page-mkt-v4.has-v3-cursor .v3-cursor.is-on,
  body.page-home-v4.has-v3-cursor .v3-cursor.is-on {
    opacity: 1;
  }

  .v3-cursor__pointer {
    position: absolute;
    top: 0;
    left: 0;
    width: 28px;
    height: 32px;
    overflow: visible;
    transform-origin: 4px 2px;
    will-change: transform;
  }

  .v3-cursor__pointer-fill {
    fill: #fff;
    transition: fill 0.2s ease;
  }

  .v3-cursor__pointer-shadow {
    fill: #222;
    opacity: 0.85;
  }

  body.page-mkt-v4.has-v3-cursor .v3-cursor.is-hover .v3-cursor__pointer,
  body.page-home-v4.has-v3-cursor .v3-cursor.is-hover .v3-cursor__pointer {
    width: 34px;
    height: 38px;
  }

  body.page-mkt-v4.has-v3-cursor .v3-cursor.is-hover .v3-cursor__pointer-fill,
  body.page-home-v4.has-v3-cursor .v3-cursor.is-hover .v3-cursor__pointer-fill {
    fill: #f7f7f7;
  }

  body.page-mkt-v4.has-v3-cursor .v3-cursor.is-down .v3-cursor__pointer,
  body.page-home-v4.has-v3-cursor .v3-cursor.is-down .v3-cursor__pointer {
    width: 26px;
    height: 30px;
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: reduce) {
  .v3-cursor__pointer,
  .v3-cursor__pointer-fill {
    transition: none;
  }
}

/* Sticky v4 header sits in flow — kill legacy fixed-header body offset */
body.page-mkt-v4:has(> #marketing-header),
body.page-home-v4:has(> #marketing-header) {
  padding-top: 0;
  scroll-padding-top: 4rem;
}

/* Header */
.v3-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Scrolled: shadow only — no border / bg shift */
.v3-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(34, 34, 34, 0.06);
}

.v3-header.is-open {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(34, 34, 34, 0.06);
}

.v3-header__bar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.75rem 1rem;
  max-width: var(--v3-max);
  min-height: 3.25rem;
  margin-inline: auto;
  padding: 0.4rem var(--v3-section-pad-x);
}

.v3-header .v3-logo {
  justify-self: start;
}

.v3-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.v3-logo__img {
  display: block;
  width: auto;
  height: 1.65rem;
}

@media (min-width: 768px) {
  .v3-logo__img {
    height: 1.85rem;
  }
}

.v3-header__nav {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
}

.v3-header__nav a {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  color: var(--v3-ink);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background 0.15s ease;
}

.v3-header__nav a:hover,
.v3-header__nav a.is-active {
  background: var(--v3-cloud);
}

.v3-header__actions {
  --v3-header-ctrl: var(--v3-btn-h-sm, 2.25rem);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  min-width: 0;
}

.v3-header__login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
  height: var(--v3-header-ctrl);
  min-height: var(--v3-header-ctrl);
  padding: 0 0.85rem;
  border: 1px solid var(--v3-border);
  border-radius: var(--v3-radius);
  background: #fff;
  color: var(--v3-ink);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

/* Mobile: Login + menu on one row — same control height */
@media (max-width: 899px) {
  .v3-header__bar {
    gap: 0.5rem;
    padding-inline: 1rem;
  }

  .v3-logo__img {
    height: 1.45rem;
  }

  .v3-header__actions {
    gap: 0.3rem;
  }

  .v3-header__menu {
    flex-shrink: 0;
  }
}

.v3-header__login:hover {
  background: var(--v3-cloud);
  border-color: rgba(34, 34, 34, 0.28);
}

.v3-header__cta {
  border-radius: var(--v3-radius);
}

.v3-header .v3-btn,
.v3-header .v3-btn--sm,
.v3-header .v3-btn--primary,
.v3-header .v3-btn--ghost {
  border-radius: var(--v3-radius);
}

.v3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  gap: 0.5rem;
  height: var(--v3-btn-h, 3rem);
  min-height: var(--v3-btn-h, 3rem);
  padding: 0.875rem 1.5rem;
  border: 0;
  border-radius: var(--v3-radius);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: none;
  transition: background 0.15s ease, transform 0.12s ease;
}

.v3-btn--primary {
  background: var(--v3-primary);
  color: #fff;
}

.v3-btn--primary:hover {
  background: var(--v3-primary-press);
}

.v3-btn--sm {
  height: var(--v3-btn-h-sm, 2.25rem);
  min-height: var(--v3-btn-h-sm, 2.25rem);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: var(--v3-radius);
}

.v3-header__menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: var(--v3-header-ctrl, 2.5rem);
  height: var(--v3-header-ctrl, 2.5rem);
  padding: 0;
  border: 1px solid var(--v3-border);
  border-radius: var(--v3-radius);
  background: #fff;
  color: var(--v3-ink);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.v3-header__menu:hover {
  background: var(--v3-cloud);
}

.v3-header.is-open .v3-header__menu {
  border-color: rgba(34, 34, 34, 0.28);
  background: var(--v3-cloud);
}

.v3-header__menu-lines {
  position: relative;
  display: block;
  width: 1.05rem;
  height: 0.72rem;
}

.v3-header__menu-lines i {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    top 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease,
    scale 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.v3-header__menu-lines i:nth-child(1) { top: 0; }
.v3-header__menu-lines i:nth-child(2) { top: 0.3rem; }
.v3-header__menu-lines i:nth-child(3) { top: 0.6rem; }

/* Morph hamburger → X */
.v3-header.is-open .v3-header__menu-lines i:nth-child(1) {
  top: 0.3rem;
  transform: rotate(45deg);
}

.v3-header.is-open .v3-header__menu-lines i:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.2);
}

.v3-header.is-open .v3-header__menu-lines i:nth-child(3) {
  top: 0.3rem;
  transform: rotate(-45deg);
}

.v3-header__drawer {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 30;
  display: flex;
  flex-direction: column;
  height: calc(100dvh - var(--v3-header-offset, 4rem));
  overflow: auto;
  border-top: 1px solid var(--v3-border);
  background: #fff;
  padding: 0.25rem 1.25rem max(1.25rem, env(safe-area-inset-bottom));
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.v3-header.is-open .v3-header__drawer {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

body.v3-menu-open {
  overflow: hidden;
}

/* Set after close transition in JS — skip layout when fully shut */
.v3-header__drawer[hidden] {
  display: none !important;
}

.v3-header__drawer-nav {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.v3-header__drawer-nav a {
  padding: 0.72rem 0.15rem;
  border-bottom: 1px solid var(--v3-border);
  color: var(--v3-ink);
  font-size: 1.0625rem;
  font-weight: 600;
}

.v3-header__drawer-nav a.is-active {
  color: var(--v3-brand, #6d28d9);
}

.v3-header__drawer-nav a:last-child {
  border-bottom: 0;
}

.v3-header__drawer-actions {
  display: grid;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .v3-header__menu-lines i,
  .v3-header__drawer {
    transition: none !important;
  }
}

.v3-header__drawer-actions .v3-header__login {
  display: inline-flex;
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid var(--v3-border);
}

.v3-header__drawer-cta {
  width: 100%;
  border-radius: var(--v3-radius);
}

@media (min-width: 900px) {
  .v3-header__bar {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    min-height: 4.25rem;
    padding-block: 0.75rem;
  }

  .v3-header__nav {
    display: flex;
  }

  .v3-header__actions {
    gap: 0.45rem;
  }

  .v3-header__login {
    height: var(--v3-header-ctrl);
    min-height: var(--v3-header-ctrl);
    padding: 0 0.95rem;
  }

  .v3-header__menu,
  .v3-header__drawer {
    display: none !important;
  }
}

/* Footer */
.v3-footer {
  border-top: 1px solid var(--v3-border);
  background: var(--v3-shade-a);
  padding: var(--v3-section-pad-y) var(--v3-section-pad-x) 2rem;
}

.v3-footer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 1.5rem;
  max-width: var(--v3-max);
  margin-inline: auto;
}

.v3-footer__brand {
  grid-column: 1 / -1;
}

.v3-footer__tagline {
  max-width: 18rem;
  margin: 0.85rem 0 0;
  color: var(--v3-ash);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
}

.v3-footer__label {
  display: block;
  margin: 0 0 0.85rem;
  color: var(--v3-ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.v3-footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.v3-footer__links li + li {
  margin-top: 0.45rem;
}

.v3-footer__links a {
  position: relative;
  display: inline-block;
  color: var(--v3-ink);
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.72;
  transition: opacity 0.15s ease;
}

.v3-footer__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.12em;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.v3-footer__links a:hover {
  opacity: 1;
}

.v3-footer__links a:hover::after {
  transform: scaleX(1);
}

.v3-footer__bottom {
  max-width: var(--v3-max);
  margin: 2.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--v3-border);
}

.v3-footer__bottom p {
  margin: 0;
  color: var(--v3-ash);
  font-size: 0.8125rem;
  font-weight: 500;
}

@media (min-width: 768px) {
  .v3-footer__grid {
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
  }

  .v3-footer__brand {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v3-footer__links a::after {
    transition: none;
  }
}

/* Page hero / content shell */
.mkt-main {
  padding: var(--v3-section-pad-y) var(--v3-section-pad-x);
}

.mkt-wrap {
  max-width: var(--v3-max);
  margin-inline: auto;
}

.mkt-wrap--narrow {
  max-width: 42rem;
}

.mkt-hero {
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.mkt-kicker {
  display: inline-flex;
  margin: 0 0 0.75rem;
  color: var(--v3-ash);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mkt-title {
  margin: 0;
  color: var(--v3-ink);
  font-size: var(--v3-title);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.mkt-lede {
  margin: 1rem auto 0;
  max-width: 32rem;
  color: var(--v3-ash);
  font-size: var(--v3-lede);
  font-weight: 500;
  line-height: var(--v3-lede-lh, 1.625rem);
}

.v3-hl {
  display: inline;
  padding: 0 0.12em;
  background: linear-gradient(
    transparent 62%,
    #ffe14a 62%,
    #ffe14a 92%,
    transparent 92%
  );
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.mkt-card {
  display: block;
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--v3-border);
  border-radius: 1rem;
  background: #fff;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.mkt-card:hover {
  border-color: rgba(34, 34, 34, 0.28);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(34, 34, 34, 0.06);
}

.mkt-card__icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.7rem;
  background: var(--v3-cloud);
  color: var(--v3-ink);
}

.mkt-card__title {
  margin: 1rem 0 0;
  color: var(--v3-ink);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mkt-card__text {
  margin: 0.4rem 0 0;
  color: var(--v3-ash);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.mkt-card__link {
  margin: 0.85rem 0 0;
  color: var(--v3-ink);
  font-size: 0.875rem;
  font-weight: 700;
}

.mkt-grid-2 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .mkt-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Soft ambient blob for hero motion */
.mkt-ambient {
  position: relative;
}

.mkt-ambient::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -1.5rem;
  width: min(28rem, 90vw);
  height: 8rem;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 225, 74, 0.22), transparent 72%);
  pointer-events: none;
  animation: mkt-glow 5.5s ease-in-out infinite;
}

@keyframes mkt-glow {
  0%,
  100% { opacity: 0.55; transform: translateX(-50%) scale(0.96); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.04); }
}

/* Reveal motion */
@media (prefers-reduced-motion: no-preference) {
  body.page-mkt-v4 [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 1.1rem, 0);
    transition:
      opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }

  body.page-mkt-v4 [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
}

/* Legacy landing reveals dim to 0.35 until .is-inview — unused on v4. */
body.page-mkt-v4 .myst-reveal,
body.page-mkt-v4 .myst-reveal-stagger > .myst-reveal-child,
body.page-mkt-v4 .feature-showcase__row {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .mkt-ambient::before,
  .mkt-card {
    animation: none !important;
    transition: none !important;
  }
}

/* Tone down legacy purple marketing chrome on v4 pages */
body.page-mkt-v4 .btn-mysto-primary {
  background: var(--v3-primary);
  color: #fff;
  border-radius: var(--v3-radius);
  box-shadow: none;
}

body.page-mkt-v4 .btn-mysto-primary:hover {
  background: var(--v3-primary-press);
}

body.page-mkt-v4 .btn-mysto-secondary {
  border: 1px solid var(--v3-border);
  color: var(--v3-ink);
  background: #fff;
  border-radius: var(--v3-radius);
}

/* Legal / long-form */
body.page-mkt-v4 .about-content h2,
body.page-mkt-v4 .legal-content h2 {
  color: var(--v3-ink);
  font-weight: 700;
  letter-spacing: -0.03em;
}

body.page-mkt-v4 .about-content p,
body.page-mkt-v4 .legal-content p,
body.page-mkt-v4 .legal-content li {
  color: var(--v3-ash);
}

/* App Store on v4 canvas */
body.page-mkt-v4.page-app-store .page-app-store__main {
  max-width: var(--v3-max);
  margin-inline: auto;
  padding-inline: var(--v3-section-pad-x);
}

body.page-mkt-v4.page-app-store .page-app-store__intro {
  margin-bottom: 2rem;
}

body.page-mkt-v4.page-app-store .page-app-store__filters {
  flex-wrap: nowrap;
  gap: 0.5rem;
  margin-inline: calc(var(--v3-section-pad-x) * -1);
  margin-bottom: 1.75rem;
  padding-inline: var(--v3-section-pad-x);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--v3-section-pad-x);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

body.page-mkt-v4.page-app-store .page-app-store__filters::-webkit-scrollbar {
  display: none;
}

body.page-mkt-v4.page-app-store .page-app-store__filter {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

body.page-mkt-v4.page-app-store .page-app-store__filter.is-active {
  background: var(--v3-ink);
  color: #fff;
  border-color: var(--v3-ink);
}

/* Breadcrumb */
.mkt-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  margin: 0 0 1.75rem;
  color: var(--v3-ash);
  font-size: 0.8125rem;
  font-weight: 600;
}

.mkt-crumb a {
  color: var(--v3-ink);
}

.mkt-crumb a:hover {
  color: var(--v3-ash);
}

.mkt-crumb [aria-current="page"] {
  color: var(--v3-ash);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mkt-empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

/* Blog article */
.mkt-article__head {
  position: relative;
  margin: 0 0 2rem;
  padding-bottom: 0.25rem;
}

.mkt-article__head .mkt-kicker {
  margin-bottom: 0.65rem;
}

.mkt-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
}

.mkt-article__meta > * {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--v3-cloud);
  color: var(--v3-ash);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.mkt-article__title {
  margin: 0;
  color: var(--v3-ink);
  font-size: clamp(1.9rem, 4.4vw, 2.85rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.14;
  text-wrap: balance;
}

.mkt-article__title .v3-hl {
  white-space: normal;
}

@media (prefers-reduced-motion: no-preference) {
  body.page-mkt-v4 .mkt-article.is-in .mkt-article__title .v3-hl {
    background-size: 0% 100%;
    background-repeat: no-repeat;
    animation: mkt-hl-draw 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.12s forwards;
  }
}

@keyframes mkt-hl-draw {
  to { background-size: 100% 100%; }
}

.mkt-article__excerpt {
  margin: 1.1rem 0 0;
  max-width: 36rem;
  color: var(--v3-ash);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: var(--v3-lede-lh, 1.625rem);
  text-wrap: pretty;
}

.mkt-article__hero {
  margin: 0 0 2rem;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--v3-cloud);
}

.mkt-article__hero img {
  display: block;
  width: 100%;
  height: auto;
}

body.page-mkt-v4 .mkt-article__body.blog-content {
  color: var(--v3-ash);
  font-size: 1.0625rem;
  line-height: 1.75;
}

body.page-mkt-v4 .mkt-article__body.blog-content > * + * {
  margin-top: 1.1rem;
}

body.page-mkt-v4 .mkt-article__body.blog-content h2,
body.page-mkt-v4 .mkt-article__body.blog-content h3 {
  margin-top: 2rem;
  color: var(--v3-ink);
  font-family: inherit;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

body.page-mkt-v4 .mkt-article__body.blog-content h2 {
  font-size: 1.45rem;
}

body.page-mkt-v4 .mkt-article__body.blog-content h3 {
  font-size: 1.2rem;
}

body.page-mkt-v4 .mkt-article__body.blog-content a {
  color: var(--v3-ink);
  text-underline-offset: 0.15em;
}

body.page-mkt-v4 .mkt-article__body.blog-content img {
  border-radius: 0.85rem;
}

body.page-mkt-v4 .mkt-article__body.blog-content blockquote {
  margin: 1.5rem 0;
  border-left: 3px solid var(--v3-yellow);
  padding-left: 1rem;
  color: var(--v3-ink);
  font-style: italic;
}

.mkt-aside {
  margin: 2.75rem 0 0;
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--v3-border);
  border-radius: 1rem;
  background: var(--v3-cloud);
}

.mkt-aside h2 {
  margin: 0 0 0.75rem;
  color: var(--v3-ink);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mkt-aside ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mkt-aside li + li {
  margin-top: 0.55rem;
}

.mkt-aside a {
  color: var(--v3-ink);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.mkt-related {
  margin: 3.5rem 0 0;
  padding-top: 2.5rem;
  border-top: 1px solid var(--v3-border);
}

.mkt-related h2 {
  margin: 0 0 1.25rem;
  color: var(--v3-ink);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.mkt-related__grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .mkt-related__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

body.page-mkt-v4 .blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--v3-border);
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.2s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

body.page-mkt-v4 .blog-card:hover {
  border-color: rgba(34, 34, 34, 0.28);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(34, 34, 34, 0.06);
}

body.page-mkt-v4 .blog-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--v3-cloud);
  overflow: hidden;
}

body.page-mkt-v4 .blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.page-mkt-v4 .blog-card__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--v3-ash);
  font-size: 0.8125rem;
  font-weight: 700;
}

body.page-mkt-v4 .blog-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem 1.1rem 1.15rem;
}

body.page-mkt-v4 .blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  color: var(--v3-ash);
  font-size: 0.75rem;
  font-weight: 600;
}

body.page-mkt-v4 .blog-card__title {
  margin: 0.55rem 0 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

body.page-mkt-v4 .blog-card__title a {
  color: var(--v3-ink);
}

body.page-mkt-v4 .blog-card__excerpt {
  margin: 0.45rem 0 0;
  color: var(--v3-ash);
  font-size: 0.875rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.page-mkt-v4 .blog-card__link {
  margin-top: auto;
  padding-top: 0.85rem;
  color: var(--v3-ink);
  font-size: 0.8125rem;
  font-weight: 700;
}

/* Support layout */
.mkt-support {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .mkt-support {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3rem;
  }
}

.mkt-support__faq .faq-intro {
  margin: 0 0 1.25rem;
  max-width: none;
  text-align: left;
}

body.page-mkt-v4 .faq-intro__eyebrow {
  display: none;
}

body.page-mkt-v4 .faq-intro__heading {
  margin: 0;
  color: var(--v3-ink);
  font-family: inherit;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

body.page-mkt-v4 .faq-intro__lede {
  margin: 0.45rem 0 0;
  color: var(--v3-ash);
  font-size: 0.9375rem;
  line-height: 1.5;
}

body.page-mkt-v4 .faq-list {
  max-width: none;
  margin: 0;
  border-top: 1px solid var(--v3-border);
}

body.page-mkt-v4 .faq-details {
  border-bottom: 1px solid var(--v3-border);
  background: transparent;
}

body.page-mkt-v4 .faq-details__summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  color: var(--v3-ink);
  font-family: inherit;
  font-size: 0.975rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  transition: color 0.15s ease;
}

body.page-mkt-v4 .faq-details__summary::-webkit-details-marker {
  display: none;
}

body.page-mkt-v4 .faq-details__summary:hover {
  color: var(--v3-ink);
}

body.page-mkt-v4 .faq-details__summary::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  margin-top: 0.4rem;
  flex-shrink: 0;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  opacity: 0.45;
  transform: rotate(45deg);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.page-mkt-v4 .faq-details[open] .faq-details__summary::after {
  margin-top: 0.55rem;
  opacity: 0.6;
  transform: rotate(-135deg);
}

body.page-mkt-v4 .faq-details__answer {
  padding: 0 0 1.15rem;
  max-width: 36rem;
  color: var(--v3-ash);
  font-size: 0.9375rem;
  line-height: 1.65;
}

body.page-mkt-v4 .faq-details__answer a {
  color: var(--v3-ink);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.mkt-support__form-wrap {
  position: sticky;
  top: 5rem;
}

.mkt-support__form,
.mkt-support__success {
  border: 1px solid var(--v3-border);
  border-radius: 1.15rem;
  background: #fff;
  padding: 1.35rem 1.25rem 1.5rem;
  box-shadow: 0 10px 30px rgba(34, 34, 34, 0.04);
}

.mkt-support__form-head {
  margin: 0 0 1.15rem;
}

.mkt-support__form-head h2 {
  margin: 0;
  color: var(--v3-ink);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.mkt-support__form-head p {
  margin: 0.35rem 0 0;
  color: var(--v3-ash);
  font-size: 0.875rem;
}

.mkt-support__form-head a {
  color: var(--v3-ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.mkt-support__row {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 520px) {
  .mkt-support__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.mkt-field {
  display: grid;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
}

.mkt-field > span {
  color: var(--v3-ink);
  font-size: 0.8125rem;
  font-weight: 700;
}

body.page-mkt-v4 .support-input,
body.page-mkt-v4 .mkt-field__area {
  width: 100%;
  border: 1px solid var(--v3-border);
  border-radius: 0.75rem;
  background: #fff !important;
  padding: 0.8rem 0.95rem;
  color: var(--v3-ink) !important;
  -webkit-text-fill-color: var(--v3-ink);
  font: inherit;
  font-size: 0.9375rem;
  box-shadow: none;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

body.page-mkt-v4 .support-input::placeholder,
body.page-mkt-v4 .mkt-field__area::placeholder {
  color: #9ca3af !important;
  -webkit-text-fill-color: #9ca3af;
  opacity: 1;
}

body.page-mkt-v4 .support-input:focus,
body.page-mkt-v4 .mkt-field__area:focus {
  outline: none;
  border-color: rgba(34, 34, 34, 0.45) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(34, 34, 34, 0.1) !important;
}

body.page-mkt-v4 .mkt-field__area {
  min-height: 8rem;
  resize: vertical;
}

.mkt-support__error {
  margin: 0 0 0.85rem;
  color: #b42318;
  font-size: 0.875rem;
  font-weight: 600;
}

.mkt-support__error.hidden {
  display: none;
}

.mkt-support__submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.25rem;
}

body.page-mkt-v4 .support-form.is-hidden {
  display: none;
}

body.page-mkt-v4 .support-success,
.mkt-support__success {
  display: none;
  text-align: center;
}

body.page-mkt-v4 .support-success.is-visible,
.mkt-support__success.is-visible {
  display: grid;
  place-items: center;
  gap: 0.65rem;
  min-height: 16rem;
}

.mkt-support__success-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: rgba(34, 34, 34, 0.08);
  color: var(--v3-ink);
}

.mkt-support__success h2 {
  margin: 0;
  color: var(--v3-ink);
  font-size: 1.25rem;
  font-weight: 800;
}

.mkt-support__success p {
  margin: 0;
  color: var(--v3-ash);
  font-size: 0.9375rem;
}

body.page-mkt-v4 .page-support .mkt-hero {
  margin-bottom: 2rem;
  text-align: left;
  margin-inline: 0;
}

/* Ghost button (shared with home) */
.v3-btn--ghost {
  background: #fff;
  color: var(--v3-ink);
  border: 1px solid var(--v3-border);
  border-radius: var(--v3-radius);
}

.v3-btn--ghost:hover {
  background: var(--v3-cloud);
  border-color: rgba(34, 34, 34, 0.28);
  transform: translateY(-1px);
}

/* ── About page — same type, cards, and width as home ── */
body.page-about {
  background: transparent;
}

.about-hero,
.about-section,
.about-close {
  border-top: 1px solid var(--v3-border);
}

.about-hero {
  border-top: 0;
  background: transparent;
  padding: clamp(2.75rem, 6vw, 4.5rem) var(--v3-section-pad-x) clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}

.about-section {
  background: var(--v3-shade-a);
  padding: var(--v3-section-pad-y) var(--v3-section-pad-x);
}

.about-section--alt {
  background: var(--v3-shade-b);
}

.about-close {
  background: var(--v3-shade-b);
  padding: var(--v3-section-pad-y) var(--v3-section-pad-x) var(--v3-section-pad-y-lg);
  text-align: center;
}

.about-narrow,
.about-hero .mkt-wrap,
.about-close .mkt-wrap {
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
}

.about-hero .mkt-title,
.about-close .mkt-title,
.about-narrow .mkt-title {
  margin-inline: auto;
}

.about-copy {
  margin: 1rem auto 0;
  max-width: 36rem;
  color: var(--v3-ash);
  font-size: var(--v3-lede);
  font-weight: 500;
  line-height: var(--v3-lede-lh, 1.625rem);
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.about-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 0 0.85rem;
  color: var(--v3-ash);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about-label span {
  width: 3rem;
  height: 1px;
  background: var(--v3-line);
}

.about-photo {
  margin: 1.75rem 0 0;
  overflow: hidden;
  border: 1px solid var(--v3-border);
  border-radius: 1rem;
  background: #fff;
}

.about-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.about-prose {
  margin-top: 1.75rem;
  color: var(--v3-ash);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.7;
  text-align: left;
}

.about-prose p {
  margin: 0;
}

.about-prose p + p {
  margin-top: 1rem;
}

.about-split {
  display: grid;
  align-items: start;
  gap: 1.25rem;
}

.about-split__copy {
  text-align: left;
}

.about-split__copy .about-copy {
  margin-left: 0;
}

.about-photo {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--v3-border);
  border-radius: 1rem;
  background: #fff;
}

.about-photo img {
  display: block;
  width: 100%;
  height: 22rem;
  object-fit: cover;
  object-position: center 30%;
}

.about-photo--wide {
  margin: 1.25rem 0 0;
}

.about-photo--wide:first-child {
  margin-top: 0;
}

.about-photo--wide img {
  height: 14rem;
  object-position: center;
}

.about-grid {
  display: grid;
  align-items: stretch;
  gap: 0.85rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.about-grid > .mkt-card,
.about-grid > article {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}

.about .mkt-card:hover {
  transform: none;
  box-shadow: none;
}

.about-grid .mkt-card__title {
  margin-top: 0.35rem;
}

.about-num {
  margin: 0;
  color: var(--v3-ink);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.about-sub {
  margin: 0;
  color: var(--v3-ink);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.about-card--ink {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 225, 74, 0.22), transparent 42%),
    #1a1228;
  border-color: transparent;
  color: #fff;
}

.about-card--ink .about-sub,
.about-card--ink .mkt-card__title {
  color: #fff;
}

.about-card--ink .mkt-card__text,
.about-kicker--light {
  color: rgba(255, 255, 255, 0.78);
}

.about-link {
  display: inline-flex;
  margin-top: auto;
  padding-top: 1.1rem;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.about-link:hover {
  color: var(--v3-yellow);
}

@media (min-width: 800px) {
  .about-split {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 1.5rem;
  }

  .about-split .about-photo img {
    height: 100%;
    min-height: 22rem;
    max-height: 28rem;
  }
}

@media (min-width: 700px) {
  .about-grid--2,
  .about-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .about-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .about-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.feat-hero {
  padding: 2.75rem var(--v3-section-pad-x) 3.25rem;
  text-align: center;
  background: transparent;
}

.feat-hero .mkt-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.12;
}

.feat-head {
  max-width: 36rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.feat-head + .about-grid {
  margin-top: 0;
}

.feat-group {
  border-top: 1px solid var(--v3-border);
  background: var(--v3-shade-a);
  padding: var(--v3-section-pad-y) var(--v3-section-pad-x);
}

.feat-group:nth-child(even) {
  background: var(--v3-shade-b);
}

.page-features .mkt-card {
  border-radius: 1rem;
  box-shadow: none;
  scroll-margin-top: 5.5rem;
}

.page-features .mkt-card:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--v3-border);
}

.feat-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0 0 1rem;
  border-radius: var(--v3-radius, 0.5rem);
  background: var(--v3-yellow, #ffe14a);
  color: var(--v3-ink);
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1;
}

.page-features .mkt-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.page-features .mkt-card__text {
  font-weight: 500;
  line-height: var(--v3-lede-lh, 1.625rem);
}

.marketing-whatsapp-btn {
  position: fixed;
  right: 1.25rem;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 55;
  display: inline-flex;
  height: 3.25rem;
  width: 3.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #25d366;
  color: #fff;
  box-shadow: none;
  transition: transform 0.15s ease;
}

.marketing-whatsapp-btn:hover {
  transform: scale(1.05);
  box-shadow: none;
}

.marketing-whatsapp-btn:focus-visible {
  outline: 2px solid #25d366;
  outline-offset: 3px;
}

.marketing-whatsapp-btn svg {
  height: 1.625rem;
  width: 1.625rem;
  fill: currentColor;
}

@media (max-width: 639px) {
  .marketing-whatsapp-btn {
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    height: 3rem;
    width: 3rem;
  }

  .marketing-whatsapp-btn svg {
    height: 1.5rem;
    width: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marketing-whatsapp-btn {
    transition: none;
  }

  .marketing-whatsapp-btn:hover {
    transform: none;
  }
}
