/* BetMetrics Phase 3 — Marketing presentation layer */

:root {
  --mkt-bg: #0A0F1C;
  --mkt-surface: #0F172A;
  --mkt-card: #0F172A;
  --mkt-card-hover: #162033;
  --mkt-primary: #1E90FF;
  --mkt-primary-hover: #3BA8FF;
  --mkt-accent: #00D4FF;
  --mkt-text: #F1F5F9;
  --mkt-text-secondary: #94A3B8;
  --mkt-text-muted: #64748B;
  --mkt-border: #1E293B;
  --mkt-success: #22C55E;
  --mkt-purple: #8B5CF6;
  --mkt-gold: #FBBF24;
  --mkt-danger: #EF4444;
  --mkt-max: 1600px;
  --mkt-header-h: 72px;
  --mkt-hero-h-max: 408px;
  --mkt-horse-nudge-x: 40px;
  --mkt-horse-scale: 1.2;
  --mkt-announce-h: 56px;
  --mkt-features-h: 76px;
  --mkt-membership-h: 148px;
  --mkt-card-h: 148px;
  --mkt-section-gap: 8px;
  --mkt-landing-pad-bottom: 8px;
  --mkt-hero-cta-clearance: 16px;
  --mkt-hero-copy-pad-top: 14px;
  --mkt-hero-announce-lift: 20mm;
  --mkt-hero-horse-offset-y: 8px;
  --mkt-horse-compose-shift-x: -110px;
  --mkt-horse-size-scale: 1.24;
  --mkt-hero-glow-compose-x: 62%;
  --mkt-hero-h: var(--mkt-hero-h-max);
  /* Announce + features + membership + gaps */
  --mkt-landing-chrome: calc(
    var(--mkt-announce-h) +
    var(--mkt-features-h) +
    var(--mkt-membership-h) +
    (var(--mkt-section-gap) * 3) +
    var(--mkt-landing-pad-bottom)
  );
  --mkt-radius: 12px;
  --mkt-btn-h: 44px;
  --mkt-shadow-hover: 0 20px 50px rgba(30, 144, 255, 0.22);
  --mkt-transition: 300ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html:has(body.mkt-home) {
  height: 100%;
  overflow: hidden;
}

body.mkt-home {
  height: 100dvh;
  overflow: hidden;
}

body.mkt-home #main-content {
  margin-top: var(--mkt-header-h);
  height: calc(100dvh - var(--mkt-header-h));
  overflow: hidden;
}

body.mkt-home.mkt-landing-scroll #main-content {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body.mkt-body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--mkt-text);
  background: var(--mkt-bg);
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mkt-container {
  width: 100%;
  max-width: var(--mkt-max);
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
}

/* Full-viewport landing — header + hero + announce + features + cards */
.mkt-landing-screen {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--mkt-section-gap);
  padding-top: 0;
  padding-bottom: var(--mkt-landing-pad-bottom);
  overflow: hidden;
  --mkt-hero-h: min(var(--mkt-hero-h-max), calc(100% - var(--mkt-landing-chrome)));
}

.mkt-landing-screen > section {
  flex-shrink: 0;
}

.mkt-landing-screen .mkt-reveal {
  opacity: 1;
  transform: none;
}

/* Header */
.mkt-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--mkt-header-h);
  background: var(--mkt-bg);
  border-bottom: 1px solid var(--mkt-border);
  transition: background var(--mkt-transition), border-color var(--mkt-transition);
}

.mkt-header.is-scrolled {
  background: rgba(15, 23, 42, 0.96);
}

.mkt-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: 100%;
  width: 100%;
  max-width: var(--mkt-max);
  margin: 0 auto;
  padding: 0 48px;
}

.mkt-brand {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--mkt-text);
}

.mkt-brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mkt-brand-sub {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mkt-text-secondary);
}

.mkt-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--mkt-primary);
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.mkt-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.mkt-nav-center {
  justify-self: center;
}

.mkt-header-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
}

.mkt-nav-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--mkt-primary);
}

.mkt-nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mkt-btn-signup svg {
  width: 16px;
  height: 16px;
}

.mkt-btn-arrow {
  margin-left: 2px;
  font-size: 14px;
  line-height: 1;
  opacity: 0.9;
}

.mkt-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mkt-nav-links a {
  color: var(--mkt-text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--mkt-transition);
}

.mkt-nav-links a:hover,
.mkt-nav-links a.is-active {
  color: var(--mkt-text);
}

.mkt-nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mkt-link {
  color: var(--mkt-text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color var(--mkt-transition);
}

.mkt-link:hover {
  color: var(--mkt-text);
}

.mkt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--mkt-btn-h);
  padding: 0 20px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--mkt-transition), transform var(--mkt-transition),
    box-shadow var(--mkt-transition), border-color var(--mkt-transition);
}

.mkt-btn-primary {
  background: var(--mkt-primary);
  color: var(--mkt-text);
}

.mkt-btn-primary:hover {
  background: var(--mkt-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(29, 122, 242, 0.35);
}

.mkt-btn-outline {
  background: transparent;
  color: var(--mkt-text);
  border: 1px solid var(--mkt-border);
}

.mkt-btn-outline:hover {
  border-color: var(--mkt-primary);
  color: var(--mkt-primary-hover);
}

.mkt-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--mkt-text);
  border: 1px solid var(--mkt-border);
}

.mkt-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--mkt-text-secondary);
}

.mkt-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--mkt-border);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.mkt-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--mkt-text);
  transition: transform var(--mkt-transition), opacity var(--mkt-transition);
}

.mkt-menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mkt-menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.mkt-menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mkt-btn-action {
  min-width: 190px;
}

.mkt-btn-action svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Hero */
.mkt-hero {
  position: relative;
  flex: 0 0 var(--mkt-hero-h);
  height: var(--mkt-hero-h);
  min-height: var(--mkt-hero-h);
  max-height: var(--mkt-hero-h-max);
  padding: 0;
  overflow: visible;
  display: flex;
  align-items: stretch;
  isolation: isolate;
}

.mkt-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  width: 100%;
  max-width: var(--mkt-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 48px;
  gap: 0;
}

.mkt-hero-copy {
  position: relative;
  z-index: 3;
  height: 100%;
  padding: var(--mkt-hero-copy-pad-top) 0 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  max-height: 100%;
  box-sizing: border-box;
}

.mkt-hero-label {
  display: inline-block;
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mkt-primary);
}

.mkt-hero-title {
  margin: 0 0 4px;
  font-size: 58px;
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.mkt-hero-title .accent {
  color: var(--mkt-accent);
}

.mkt-hero-desc {
  margin: 0 0 8px;
  max-width: 480px;
  font-size: 15px;
  color: var(--mkt-text-secondary);
  line-height: 1.4;
}

.mkt-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mkt-hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 0;
  overflow: visible;
  padding-left: 0;
}

.mkt-hero-horse-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% + 110px);
  height: 100%;
  margin-left: -110px;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
  pointer-events: none;
}

.mkt-hero-horse {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: left center;
  transform:
    translateX(calc(var(--mkt-horse-nudge-x, 0px) + var(--mkt-horse-compose-shift-x, 0px)))
    translateY(var(--mkt-hero-horse-offset-y))
    scale(var(--mkt-horse-size-scale, 1));
  transform-origin: center center;
  background: transparent;
  filter: drop-shadow(0 10px 24px rgba(30, 144, 255, 0.15));
}

.mkt-hero-glow {
  position: absolute;
  left: calc(50% + var(--mkt-horse-nudge-x));
  top: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 88%;
  z-index: 1;
  background: radial-gradient(
    ellipse at center,
    rgba(29, 122, 242, 0.4) 0%,
    rgba(0, 212, 255, 0.15) 45%,
    transparent 72%
  );
  filter: blur(48px);
  animation: mkt-glow-pulse 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes mkt-glow-pulse {
  0%,
  100% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
  }
}

/* Announcement bar */
.mkt-announce {
  position: relative;
  z-index: 5;
  flex: 0 0 var(--mkt-announce-h);
  height: var(--mkt-announce-h);
  padding: 0;
  margin: calc(-1 * var(--mkt-hero-announce-lift, 10mm)) 0 0;
}

.mkt-announce .mkt-container {
  padding-left: 48px;
  padding-right: 48px;
}

.mkt-announce-card {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid var(--mkt-border);
  border-radius: var(--mkt-radius);
  padding: 0 18px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  position: relative;
}

.mkt-announce-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(30, 144, 255, 0.12);
  color: var(--mkt-primary);
}

.mkt-announce-icon svg {
  width: 16px;
  height: 16px;
}

.mkt-announce-body {
  flex: 1;
  min-width: 200px;
}

.mkt-announce-title {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.mkt-announce-line {
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
  color: var(--mkt-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mkt-announce-line strong {
  color: var(--mkt-text);
  font-weight: 600;
}

.mkt-announce-line.is-high {
  color: var(--mkt-text);
}

.mkt-announce-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: auto;
}

.mkt-announce-link {
  color: var(--mkt-accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.mkt-announce-link:hover {
  color: var(--mkt-primary-hover);
}

.mkt-carousel-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--mkt-border);
  background: var(--mkt-surface);
  color: var(--mkt-text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--mkt-transition), color var(--mkt-transition);
}

.mkt-carousel-btn:hover {
  border-color: var(--mkt-primary);
  color: var(--mkt-text);
}

.mkt-carousel-btn svg {
  width: 16px;
  height: 16px;
}

.mkt-announce-slide {
  display: none;
  flex: 1;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.mkt-announce-slide.is-active {
  display: flex;
}

/* Feature strip */
.mkt-features-strip {
  flex: 0 0 var(--mkt-features-h);
  height: var(--mkt-features-h);
  min-height: var(--mkt-features-h);
  padding: 0;
  margin: 0;
}

.mkt-features-strip .mkt-container {
  height: 100%;
  padding-bottom: 0;
}

.mkt-features-strip .mkt-features {
  height: 100%;
  align-items: center;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 168px));
  justify-content: center;
  max-width: 760px;
  margin: 0 auto;
}

.mkt-features-strip .mkt-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 4px;
  text-align: center;
}

.mkt-features-strip .mkt-feature-icon {
  width: 32px;
  height: 32px;
  margin: 0;
  flex-shrink: 0;
  border-radius: 8px;
}

.mkt-features-strip .mkt-feature-icon svg {
  width: 18px;
  height: 18px;
}

.mkt-features-strip .mkt-feature-text {
  min-width: 0;
}

.mkt-features-strip .mkt-feature-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

.mkt-features-strip .mkt-feature-desc {
  display: none;
}

.mkt-feature-desc {
  margin: 0;
  font-size: 12px;
  color: var(--mkt-text-muted);
  line-height: 1.3;
}

/* Membership strip on first screen */
.mkt-membership-strip {
  flex: 0 0 var(--mkt-membership-h);
  height: var(--mkt-membership-h);
  min-height: var(--mkt-membership-h);
  padding: 0;
  margin: 0;
  min-width: 0;
}

.mkt-membership-strip .mkt-container {
  height: 100%;
  padding-bottom: 0;
  display: flex;
  align-items: stretch;
}

.mkt-pricing-compact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  height: var(--mkt-card-h);
  width: 100%;
  min-height: 0;
}

.mkt-pricing-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  height: var(--mkt-card-h);
  min-height: 0;
}

.mkt-plan-image-card {
  display: block;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border-radius: var(--mkt-radius);
  overflow: hidden;
  line-height: 0;
  text-decoration: none;
  background: #0a0f1c;
  border: 1px solid rgba(148, 163, 184, 0.14);
  transition:
    transform var(--mkt-transition),
    box-shadow var(--mkt-transition),
    border-color var(--mkt-transition);
}

.mkt-plan-image-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  background: transparent;
  transition: filter var(--mkt-transition);
}

.mkt-plan-image-card--trial:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 197, 94, 0.55);
  box-shadow:
    0 10px 28px rgba(34, 197, 94, 0.35),
    0 0 0 1px rgba(34, 197, 94, 0.35),
    0 0 32px rgba(34, 197, 94, 0.25);
}

.mkt-plan-image-card--trial:hover img {
  filter: brightness(1.06);
}

.mkt-plan-image-card--meeting:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow:
    0 10px 28px rgba(139, 92, 246, 0.35),
    0 0 0 1px rgba(139, 92, 246, 0.35),
    0 0 32px rgba(139, 92, 246, 0.25);
}

.mkt-plan-image-card--meeting:hover img {
  filter: brightness(1.06);
}

.mkt-plan-image-card--season:hover {
  transform: translateY(-3px);
  border-color: rgba(251, 191, 36, 0.6);
  box-shadow:
    0 10px 28px rgba(251, 191, 36, 0.38),
    0 0 0 1px rgba(251, 191, 36, 0.4),
    0 0 32px rgba(251, 191, 36, 0.28);
}

.mkt-plan-image-card--season:hover img {
  filter: brightness(1.08);
}

.mkt-plan-image-card:focus-visible {
  outline: 2px solid var(--mkt-primary);
  outline-offset: 2px;
}

.mkt-pricing-compact .mkt-price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  height: var(--mkt-card-h);
  max-height: var(--mkt-card-h);
  padding: var(--mkt-card-pad, 8px 12px 6px);
  border-radius: var(--mkt-radius);
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(155deg, rgba(20, 31, 53, 0.98), rgba(10, 15, 28, 1));
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-align: left;
  overflow: hidden;
  transition: transform var(--mkt-transition), box-shadow var(--mkt-transition);
}

.mkt-pricing-compact .mkt-price-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--mkt-shadow-hover);
}

.mkt-price-card--trial {
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: inset 0 0 48px rgba(34, 197, 94, 0.07);
}

.mkt-price-card--meeting {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: inset 0 0 48px rgba(139, 92, 246, 0.07);
}

.mkt-price-card--season {
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: inset 0 0 48px rgba(251, 191, 36, 0.08);
}

.mkt-price-head {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 1px;
}

.mkt-pricing-compact .mkt-price-tier-icon {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}

.mkt-pricing-compact .mkt-price-tier-icon svg {
  width: 10px;
  height: 10px;
}

.mkt-price-tier-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
}

.mkt-price-tier-icon svg {
  width: 12px;
  height: 12px;
}

.mkt-price-tier-icon--green {
  color: var(--mkt-success);
  background: rgba(34, 197, 94, 0.15);
}

.mkt-price-tier-icon--purple {
  color: var(--mkt-purple);
  background: rgba(139, 92, 246, 0.15);
}

.mkt-price-tier-icon--gold {
  color: var(--mkt-gold);
  background: rgba(251, 191, 36, 0.15);
}

.mkt-price-art {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.mkt-price-art svg {
  width: 56px;
  height: 56px;
}

.mkt-pricing-compact .mkt-price-art--green {
  opacity: 1;
  width: 96px;
  height: auto;
}

.mkt-pricing-compact .mkt-price-art-horse {
  width: 96px;
  height: auto;
  object-fit: contain;
  object-position: center right;
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.45));
}

.mkt-pricing-compact .mkt-price-art--purple {
  color: var(--mkt-purple);
  opacity: 0.22;
  filter: drop-shadow(0 0 14px rgba(139, 92, 246, 0.35));
}

.mkt-pricing-compact .mkt-price-art--gold {
  opacity: 1;
  width: 96px;
  height: auto;
}

.mkt-pricing-compact .mkt-price-art-trophy {
  width: 96px;
  height: auto;
  object-fit: contain;
  object-position: center right;
  opacity: 1;
  filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.5));
}

.mkt-price-art--green {
  opacity: 1;
  width: 96px;
  height: auto;
}

.mkt-price-art-horse {
  width: 96px;
  height: auto;
  object-fit: contain;
  object-position: center right;
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.45));
}

.mkt-price-art-trophy {
  width: 96px;
  height: auto;
  object-fit: contain;
  object-position: center right;
  opacity: 1;
  filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.5));
}

.mkt-price-art--purple {
  color: var(--mkt-purple);
  opacity: 0.35;
  filter: drop-shadow(0 0 14px rgba(139, 92, 246, 0.35));
}

.mkt-price-art--gold {
  color: var(--mkt-gold);
  opacity: 0.4;
  filter: drop-shadow(0 0 14px rgba(251, 191, 36, 0.35));
}

.mkt-price-art-duo {
  position: relative;
  width: 100%;
  height: 100%;
}

.mkt-price-art-duo svg:first-child {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-58%);
  width: 43px;
  height: 43px;
}

.mkt-price-art-duo svg:last-child {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-18%);
  width: 24px;
  height: 24px;
}

.mkt-pricing-compact .mkt-price-tier {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mkt-price-card--trial .mkt-price-tier {
  color: var(--mkt-success);
}

.mkt-price-card--meeting .mkt-price-tier {
  color: var(--mkt-purple);
}

.mkt-price-card--season .mkt-price-tier {
  color: var(--mkt-gold);
}

.mkt-pricing-compact .mkt-price-name {
  margin: 0;
  padding-right: 72px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.08;
}

.mkt-pricing-compact .mkt-price-content {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
}

.mkt-pricing-compact .mkt-price-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 0;
  padding-right: 72px;
  font-size: 12px;
  line-height: 1.25;
  color: var(--mkt-text-muted);
  overflow: hidden;
  white-space: normal;
}

.mkt-pricing-compact .mkt-btn-card {
  width: 100%;
  margin-top: 4px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: var(--mkt-text-secondary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  min-height: 21px;
  padding: 0 8px;
  text-transform: uppercase;
}

.mkt-btn-card {
  width: 100%;
  margin-top: 3px;
  background: transparent;
  border: 1px solid var(--mkt-border);
  color: var(--mkt-text-secondary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  min-height: 26px;
  padding: 0 8px;
  text-transform: uppercase;
}

.mkt-btn-card--green {
  border-color: rgba(34, 197, 94, 0.45);
  color: var(--mkt-success);
}

.mkt-btn-card--purple {
  border-color: rgba(139, 92, 246, 0.45);
  color: var(--mkt-purple);
}

.mkt-btn-card--gold {
  border-color: rgba(251, 191, 36, 0.45);
  color: var(--mkt-gold);
}

.mkt-btn-card:hover {
  background: rgba(255, 255, 255, 0.06);
}

.mkt-pricing-compact .mkt-price-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  left: auto;
  transform: none;
  padding: 3px 8px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-radius: 999px;
  background: var(--mkt-gold);
  color: #1a1400;
  z-index: 2;
}

.mkt-home .mkt-trust-bar {
  display: none;
}

.mkt-trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--mkt-border);
  flex: 0 0 52px;
}

.mkt-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
}

.mkt-trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--mkt-primary);
  flex-shrink: 0;
  margin-top: 1px;
}

.mkt-trust-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mkt-trust-text strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--mkt-text);
  line-height: 1.2;
}

.mkt-trust-text span {
  display: block;
  font-size: 11px;
  color: var(--mkt-text-muted);
  line-height: 1.25;
}

/* Sections below fold */
.mkt-section {
  padding: 120px 0;
}

.mkt-section-header {
  text-align: center;
  margin-bottom: 64px;
}

.mkt-section-title {
  margin: 0 0 16px;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mkt-section-desc {
  margin: 0 auto;
  max-width: 560px;
  font-size: 18px;
  color: var(--mkt-text-secondary);
}

.mkt-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.mkt-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Feature strip */
.mkt-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.mkt-feature {
  text-align: center;
  padding: 32px 20px;
}

.mkt-feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(29, 122, 242, 0.4);
  color: var(--mkt-primary);
  background: rgba(29, 122, 242, 0.08);
}

.mkt-feature-icon svg {
  width: 26px;
  height: 26px;
}

.mkt-feature-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Membership cards */
.mkt-pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.mkt-price-card {
  position: relative;
  background: var(--mkt-card);
  border: 1px solid var(--mkt-border);
  border-radius: var(--mkt-radius);
  padding: 40px 32px;
  transition: transform var(--mkt-transition), box-shadow var(--mkt-transition),
    background var(--mkt-transition);
}

.mkt-price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--mkt-shadow-hover);
  background: var(--mkt-card-hover);
}

.mkt-price-card.is-featured {
  border-color: var(--mkt-primary);
  box-shadow: 0 0 0 1px rgba(29, 122, 242, 0.3), var(--mkt-shadow-hover);
}

.mkt-price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--mkt-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mkt-price-tier {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mkt-accent);
}

.mkt-price-name {
  margin: 0 0 24px;
  font-size: 24px;
  font-weight: 700;
}

.mkt-price-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}

.mkt-price-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--mkt-text-secondary);
}

.mkt-price-list li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--mkt-success);
}

.mkt-price-card .mkt-btn {
  width: 100%;
}

/* About */
.mkt-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.mkt-about-copy p {
  color: var(--mkt-text-secondary);
  margin: 0 0 16px;
}

.mkt-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mkt-stat {
  background: var(--mkt-card);
  border: 1px solid var(--mkt-border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}

.mkt-stat-value {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--mkt-accent);
  margin-bottom: 4px;
}

.mkt-stat-label {
  font-size: 13px;
  color: var(--mkt-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Footer */
.mkt-footer {
  border-top: 1px solid var(--mkt-border);
  padding: 48px 0;
  margin-top: 40px;
}

.mkt-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mkt-footer-copy {
  margin: 0;
  font-size: 14px;
  color: var(--mkt-text-secondary);
}

.mkt-footer-links {
  display: flex;
  gap: 24px;
}

.mkt-footer-links a {
  font-size: 14px;
  color: var(--mkt-text-secondary);
  text-decoration: none;
}

.mkt-footer-links a:hover {
  color: var(--mkt-text);
}

/* Maintenance banner */
.mkt-maintenance {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 24px;
  font-size: 14px;
  color: #fca5a5;
  text-align: center;
}

/* Auth pages on marketing shell */
.mkt-auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.mkt-auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--mkt-header-h) + 40px) 24px 80px;
}

.mkt-auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--mkt-card);
  border: 1px solid var(--mkt-border);
  border-radius: var(--mkt-radius);
  padding: 40px 36px;
}

.mkt-auth-card h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
}

.mkt-auth-intro {
  margin: 0 0 28px;
  font-size: 15px;
  color: var(--mkt-text-secondary);
}

.mkt-auth-card label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--mkt-text-secondary);
}

.mkt-auth-card input {
  width: 100%;
  margin-bottom: 20px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--mkt-border);
  background: var(--mkt-surface);
  color: var(--mkt-text);
  font-family: inherit;
  font-size: 15px;
}

.mkt-auth-card input:focus {
  outline: none;
  border-color: var(--mkt-primary);
  box-shadow: 0 0 0 3px rgba(29, 122, 242, 0.2);
}

.mkt-auth-card .mkt-btn {
  width: 100%;
  margin-top: 8px;
}

.mkt-form-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
}

.mkt-form-footer a {
  color: var(--mkt-accent);
  text-decoration: none;
}

.mkt-form-footer a:hover {
  color: var(--mkt-primary-hover);
}

.mkt-flash {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 14px;
}

.mkt-flash-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.mkt-flash-success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
}

/* Desktop spec lock at 1080p */
@media (min-width: 1200px) and (min-height: 900px) {
  .mkt-landing-screen {
    --mkt-hero-h: var(--mkt-hero-h-max);
  }

  .mkt-hero {
    min-height: var(--mkt-hero-h-max);
  }
}

@media (min-width: 1200px) {
  .mkt-hero-title {
    font-size: 58px;
  }

  .mkt-hero-horse-wrap {
    padding-left: 0;
    padding-right: 0;
  }

  .mkt-hero-horse {
    --mkt-horse-nudge-x: 40px;
    --mkt-horse-scale: 1.2;
    max-width: none;
    max-height: none;
    width: 560px;
    height: auto;
  }

  .mkt-hero-glow {
    left: calc(50% + 40px);
  }

  .mkt-announce .mkt-container,
  .mkt-announce-card {
    height: 100%;
  }
}

/* Short desktop-height — compress before clipping */
@media (min-width: 1200px) and (max-height: 860px) {
  .mkt-landing-screen {
    --mkt-section-gap: 10px;
    --mkt-hero-cta-clearance: 14px;
  }

  :root {
    --mkt-hero-h-max: 360px;
  }

  .mkt-hero-title {
    font-size: 50px;
  }

  .mkt-hero-desc {
    margin-bottom: 8px;
    font-size: 14px;
  }

  .mkt-hero-horse {
    width: 460px;
  }
}

@media (min-width: 1200px) and (max-height: 800px) {
  :root {
    --mkt-hero-h-max: 320px;
  }

  .mkt-hero-title {
    font-size: 46px;
  }

  .mkt-hero-horse {
    width: 400px;
    --mkt-horse-scale: 1.1;
  }
}

/* Very short desktop-height — scroll instead of clip */
@media (min-width: 1200px) and (max-height: 759px) {
  html:has(body.mkt-home) {
    height: auto;
    overflow: auto;
  }

  body.mkt-home {
    height: auto;
    min-height: 100dvh;
    overflow: auto;
  }

  body.mkt-home #main-content {
    height: auto;
    min-height: calc(100dvh - var(--mkt-header-h));
    overflow: visible;
  }

  .mkt-landing-screen {
    height: auto;
    min-height: 0;
    overflow: visible;
    padding-bottom: 24px;
    --mkt-hero-h: var(--mkt-hero-h-max);
  }

  .mkt-hero {
    flex: none;
    height: auto;
    min-height: var(--mkt-hero-h-max);
    max-height: none;
  }

  .mkt-hero-copy {
    max-height: none;
  }
}

/* Responsive — release viewport lock below desktop */
@media (max-width: 1199px) {
  .mkt-hero-title {
    font-size: clamp(40px, 6vw, 58px);
  }

  body.mkt-home {
    height: auto;
    overflow: auto;
  }

  .mkt-landing-screen {
    height: auto;
    min-height: 100vh;
    gap: 20px;
    padding-bottom: 40px;
  }

  .mkt-hero,
  .mkt-announce,
  .mkt-features-strip,
  .mkt-membership-strip {
    flex: none;
    height: auto;
  }

  .mkt-pricing-compact {
    grid-template-columns: 1fr;
  }

  .mkt-trust-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {

  .mkt-hero-title {
    font-size: 56px;
  }

  .mkt-section {
    padding: 80px 0;
  }

  .mkt-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .mkt-hero-horse {
    max-height: min(50vh, 520px);
    max-width: 100%;
    object-position: center center;
  }

  .mkt-about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .mkt-container,
  .mkt-header-inner,
  .mkt-hero-grid {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 768px) {
  .mkt-menu-toggle {
    display: flex;
  }

  .mkt-nav-center {
    position: fixed;
    top: var(--mkt-header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(5, 8, 22, 0.98);
    border-bottom: 1px solid var(--mkt-border);
    padding: 16px 24px 24px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--mkt-transition), opacity var(--mkt-transition);
    z-index: 999;
  }

  .mkt-nav-center.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mkt-nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

  .mkt-nav-links a {
    display: flex;
    width: 100%;
    padding: 12px 0;
  }

  .mkt-header-inner {
    grid-template-columns: 1fr auto;
  }

  .mkt-nav-center {
    grid-column: 1 / -1;
    order: 3;
  }

  .mkt-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .mkt-hero-copy {
    padding-right: 0;
  }

  .mkt-hero-title {
    font-size: 40px;
  }

  .mkt-hero-visual {
    order: 2;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mkt-hero-horse-wrap {
    width: 100%;
    height: 100%;
  }

  .mkt-hero-horse {
    max-height: 100%;
    max-width: 100%;
    object-position: center center;
    --mkt-horse-nudge-x: 0;
    transform: none;
  }

  .mkt-hero-horse-wrap {
    padding-left: 0;
  }

  .mkt-hero-actions {
    flex-direction: column;
  }

  .mkt-hero-actions .mkt-btn {
    width: 100%;
  }

  .mkt-section {
    padding: 60px 0;
  }

  .mkt-features {
    grid-template-columns: 1fr;
  }

  .mkt-pricing {
    grid-template-columns: 1fr;
  }

  .mkt-stat-row {
    grid-template-columns: 1fr;
  }

  .mkt-announce-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .mkt-announce-actions {
    width: 100%;
    justify-content: space-between;
  }
}

/* ============================================================
   Viewport-aware landing engine (landing-engine.js)
   ============================================================ */

body.mkt-home.mkt-engine-active {
  height: 100dvh;
  overflow: hidden;
}

body.mkt-home.mkt-engine-active #main-content {
  margin-top: var(--mkt-header-h);
  height: calc(var(--viewport-height, 100dvh) - var(--mkt-header-h));
  overflow: hidden;
}

body.mkt-home.mkt-engine-active .mkt-landing-screen {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  gap: var(--mkt-section-gap);
  padding-bottom: var(--mkt-landing-pad-bottom);
}

body.mkt-home.mkt-landing-scroll.mkt-engine-active .mkt-landing-screen {
  height: auto;
  min-height: 100%;
  overflow: visible;
}

body.mkt-home.mkt-landing-scroll.mkt-engine-active #main-content {
  overflow-x: hidden;
  overflow-y: auto;
}

body.mkt-home.mkt-engine-active .mkt-hero {
  flex: 0 0 var(--mkt-hero-h);
  height: var(--mkt-hero-h);
  min-height: 0;
  max-height: none;
}

body.mkt-home.mkt-engine-active .mkt-hero-title {
  font-size: var(--mkt-hero-title-size, 58px);
}

body.mkt-home.mkt-engine-active .mkt-hero-horse-wrap {
  padding-right: 0;
}

body.mkt-home.mkt-engine-active .mkt-hero-copy {
  height: 100%;
  justify-content: flex-start;
  padding: var(--mkt-hero-copy-pad-top) 0 0;
}

body.mkt-home.mkt-engine-active .mkt-hero-horse {
  width: var(--mkt-horse-width, 560px);
  height: auto;
  max-width: none;
  max-height: calc(var(--mkt-hero-h) * var(--mkt-horse-height-factor, 0.9) * 1.08);
  transform:
    translateX(calc(var(--mkt-horse-nudge-x, 0px) + var(--mkt-horse-compose-shift-x, 0px)))
    translateY(var(--mkt-hero-horse-offset-y))
    scale(var(--mkt-horse-size-scale, 1));
}

body.mkt-home.mkt-engine-active .mkt-hero-glow {
  left: var(--mkt-hero-glow-compose-x, 58%);
  transform: translate(-50%, calc(-50% + var(--mkt-hero-horse-offset-y)));
}

body.mkt-home.mkt-engine-active .mkt-features-strip .mkt-feature-icon {
  width: var(--mkt-feature-icon-size, 32px);
  height: var(--mkt-feature-icon-size, 32px);
}

body.mkt-home.mkt-engine-active .mkt-features-strip .mkt-feature-title {
  font-size: var(--mkt-feature-title-size, 14px);
}

body.mkt-home.mkt-engine-active .mkt-pricing-compact .mkt-price-name {
  font-size: var(--mkt-card-title-size, 20px);
}

body.mkt-home.mkt-engine-active .mkt-pricing-compact .mkt-price-tier {
  font-size: var(--mkt-card-tier-size, 14px);
}

body.mkt-home.mkt-engine-active .mkt-pricing-compact .mkt-price-desc {
  font-size: var(--mkt-card-desc-size, 12px);
}

body.mkt-home.mkt-engine-active .mkt-pricing-compact .mkt-btn-card {
  font-size: var(--mkt-card-btn-size, 13px);
  min-height: var(--mkt-card-btn-min, 21px);
}

body.mkt-home.mkt-engine-active .mkt-pricing-compact .mkt-price-tier-icon {
  width: var(--mkt-card-icon-size, 14px);
  height: var(--mkt-card-icon-size, 14px);
}

body.mkt-home.mkt-engine-active .mkt-pricing-compact .mkt-price-tier-icon svg {
  width: var(--mkt-card-icon-svg, 10px);
  height: var(--mkt-card-icon-svg, 10px);
}

body.mkt-home.mkt-engine-active .mkt-pricing-compact .mkt-price-art,
body.mkt-home.mkt-engine-active .mkt-pricing-compact .mkt-price-art--green {
  width: var(--mkt-card-art-size, 88px);
  height: var(--mkt-card-art-size, 88px);
}

body.mkt-home.mkt-engine-active .mkt-pricing-compact .mkt-price-art-horse,
body.mkt-home.mkt-engine-active .mkt-pricing-compact .mkt-price-art-trophy {
  width: var(--mkt-card-art-size, 96px);
}

@media (max-width: 1199px) {
  body.mkt-home.mkt-engine-active {
    height: 100dvh;
    overflow: hidden;
  }

  body.mkt-home.mkt-engine-active .mkt-landing-screen {
    height: 100%;
    min-height: 0;
    padding-bottom: var(--mkt-landing-pad-bottom);
  }

  body.mkt-home.mkt-engine-active .mkt-hero {
    flex: 0 0 var(--mkt-hero-h);
    height: var(--mkt-hero-h);
  }

  body.mkt-home.mkt-engine-active .mkt-announce {
    flex: 0 0 var(--mkt-announce-h);
    height: var(--mkt-announce-h);
  }

  body.mkt-home.mkt-engine-active .mkt-features-strip {
    flex: 0 0 var(--mkt-features-h);
    height: var(--mkt-features-h);
  }

  body.mkt-home.mkt-engine-active .mkt-membership-strip {
    flex: 0 0 var(--mkt-membership-h);
    height: var(--mkt-membership-h);
  }
}

@media (max-width: 768px) {
  body.mkt-home.mkt-engine-active .mkt-hero-horse {
    width: min(var(--mkt-horse-width, 100%), 92vw);
    max-height: calc(var(--mkt-hero-h) * var(--mkt-horse-height-factor, 0.82));
    transform:
      translateX(calc(var(--mkt-horse-nudge-x, 0px) + var(--mkt-horse-compose-shift-x, 0px)))
      translateY(var(--mkt-hero-horse-offset-y))
      scale(var(--mkt-horse-size-scale, 1));
  }
}
