/* Marketing pages — Commazaar UI kit inspired */
body.font-sans {
  font-family: 'Nunito', ui-sans-serif, system-ui, sans-serif;
  color: #1f2937;
}

.partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  height: 1.625rem;
  min-height: 1.625rem;
  padding: 0 0.5rem;
  vertical-align: -0.15em;
  line-height: 1;
}
.partner-badge__logo {
  display: block;
  height: 0.875rem;
  width: auto;
  max-width: 4.75rem;
  object-fit: contain;
}
.partner-badge img {
  display: block;
}
.partner-badge__asterisk {
  font-size: 0.5625rem;
  font-weight: 800;
  line-height: 1;
  color: #9ca3af;
  margin-left: 0;
  text-decoration: none;
  align-self: center;
}
.partner-badge__asterisk:hover {
  color: #6b7280;
  text-decoration: underline;
}
.partner-badge__asterisk--footer {
  color: rgba(255, 255, 255, 0.5);
  margin-right: 0.2rem;
  margin-left: 0;
  align-self: auto;
  margin-top: 0;
}


.marketing-header {
  z-index: 50;
}

.marketing-mobile-menu {
  position: fixed;
  left: 0;
  right: 0;
  top: 64px;
  bottom: 0;
  z-index: 40;
  min-height: calc(100dvh - 64px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 640px) {
  .marketing-mobile-menu {
    top: 70px;
    min-height: calc(100dvh - 70px);
  }
}

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

#marketing-menu-btn .marketing-menu-icon {
  display: block;
}
#marketing-menu-btn .marketing-menu-icon.hidden {
  display: none;
}

.marketing-hero {
  background-color: #235390;
  min-height: 100svh;
  padding-top: 64px;
}

.marketing-footer {
  background-color: #235390;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr;
  justify-content: start;
  justify-items: start;
  gap: 1.5rem;
  margin-bottom: 3rem;
  text-align: left;
}
@media (min-width: 640px) {
  .footer-links {
    grid-template-columns: repeat(3, minmax(5.5rem, 7rem));
    justify-content: center;
    justify-items: center;
    gap: 1.5rem 2.5rem;
    text-align: center;
  }
}
.footer-links__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links__col a {
  text-decoration: none;
}

.marketing-footer__disclaimer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0.35rem;
}
.marketing-footer__disclaimer .partner-badge {
  vertical-align: middle;
}

.marketing-separator {
  max-width: 1065px;
  border-bottom: 2px solid #e5e5e5;
  margin: 0 auto;
}

.marketing-section {
  padding: 3rem 1rem;
}
@media (min-width: 640px) {
  .marketing-section { padding: 4rem 1.5rem; }
}

.marketing-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 0.625rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #58cc02;
  border: 2px solid #58a700;
  border-bottom-width: 4px;
  text-decoration: none;
}
.marketing-cta-primary:hover { background: #61e002; }
.marketing-cta-primary:active {
  transform: translateY(2px);
  border-bottom-width: 2px;
}

.marketing-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 0.625rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #235390;
  border: 2px solid #042c60;
  border-bottom-width: 4px;
  text-decoration: none;
}
.marketing-cta-secondary:active {
  transform: translateY(2px);
  border-bottom-width: 2px;
}

.marketing-cta-secondary--ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  border-bottom-color: rgba(255, 255, 255, 0.15);
}
.marketing-cta-secondary--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Hero market carousel — full card flip */
.hero-market-widget {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.hero-market-carousel__scene {
  perspective: 1400px;
}
.hero-market-carousel__viewport {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  transform-style: preserve-3d;
}
.hero-market-slide .market-card {
  width: 100%;
}
.hero-market-slide {
  grid-area: 1 / 1;
  width: 100%;
  align-self: start;
  z-index: 0;
  opacity: 0;
  visibility: hidden;
  transform: rotateY(88deg);
  transform-origin: center center;
  backface-visibility: hidden;
  pointer-events: none;
}
.hero-market-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  z-index: 2;
  backface-visibility: visible;
  pointer-events: auto;
}
.hero-market-slide.is-active .market-card {
  position: relative;
  z-index: 1;
}
.hero-market-slide.is-active .market-card a {
  position: relative;
  z-index: 2;
}
.hero-market-slide.is-flip-out {
  visibility: visible;
  opacity: 1;
  z-index: 2;
  animation: hero-flash-out 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
}
.hero-market-slide.is-flip-in {
  visibility: visible;
  opacity: 1;
  z-index: 3;
  animation: hero-flash-in 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
}
@keyframes hero-flash-out {
  0% { transform: rotateY(0deg); opacity: 1; }
  100% { transform: rotateY(-88deg); opacity: 0; }
}
@keyframes hero-flash-in {
  0% { transform: rotateY(88deg); opacity: 0; }
  100% { transform: rotateY(0deg); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-market-slide.is-flip-out,
  .hero-market-slide.is-flip-in {
    animation: none;
  }
  .hero-market-slide.is-flip-out { opacity: 0; }
  .hero-market-slide.is-flip-in { transform: rotateY(0deg); opacity: 1; }
}
.hero-market-dots {
  display: flex;
  justify-content: center;
  gap: 0.375rem;
  margin: 0.5rem 0 0;
}
.hero-market-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.35);
  transition: background 0.2s, transform 0.2s;
}
.hero-market-dot.is-active {
  background: #fff;
  transform: scale(1.25);
}
/* Pricing slider */
.pricing-slider-wrap {
  margin-bottom: 1.25rem;
  padding: 0.75rem 0.25rem;
  --seat-pct: 0%;
}

.pricing-slider {
  width: 100%;
  height: 8px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 9999px;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
  touch-action: pan-x;
  position: relative;
  z-index: 1;
}

.pricing-slider:focus {
  outline: none;
}

.pricing-slider:focus-visible::-webkit-slider-thumb,
.pricing-slider:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 3px rgba(35, 83, 144, 0.25), 0 2px 6px rgba(0, 0, 0, 0.2);
}

.pricing-slider::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 9999px;
  background: linear-gradient(to right, #58cc02 var(--seat-pct, 0%), #e5e7eb var(--seat-pct, 0%));
}

.pricing-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -8px;
  border-radius: 50%;
  background: #235390;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: grab;
  transition: transform 0.08s ease;
}

.pricing-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(0.92);
}

.pricing-slider::-moz-range-track {
  height: 8px;
  border-radius: 9999px;
  background: #e5e7eb;
}

.pricing-slider::-moz-range-progress {
  height: 8px;
  border-radius: 9999px;
  background: #58cc02;
}

.pricing-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #235390;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: grab;
}

.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(88, 204, 2, 0.15);
  color: #58cc02;
  border: 1px solid rgba(88, 204, 2, 0.3);
}

.prose-legal h2 { font-size: 1.25rem; font-weight: 800; color: #111827; margin-top: 2rem; margin-bottom: 0.75rem; }
.prose-legal h3 { font-size: 1.125rem; font-weight: 700; color: #1f2937; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.prose-legal p { color: #4b5563; line-height: 1.625; margin-bottom: 1rem; }
.prose-legal--compact p:last-child { margin-bottom: 0; }
.prose-legal .about-signoff {
  margin-top: 1.5rem;
  margin-bottom: 0;
  color: #374151;
  font-weight: 700;
}
.prose-legal ul { list-style: disc; padding-left: 1.5rem; color: #4b5563; margin-bottom: 1rem; }
.prose-legal ul li { margin-bottom: 0.5rem; }
.prose-legal ol { list-style: decimal; padding-left: 1.5rem; color: #4b5563; margin-bottom: 1rem; }
.prose-legal ol li { margin-bottom: 0.5rem; }
.prose-legal hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 2rem 0;
}
.prose-legal strong { color: #111827; font-weight: 800; }
.prose-legal em { color: #6b7280; }
.prose-legal--md > h1:first-child {
  font-size: 1.875rem;
  font-weight: 800;
  color: #235390;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.prose-legal--md > p:first-of-type,
.prose-legal--md > h1:first-child + p {
  font-size: 0.875rem;
  color: #9ca3af;
  margin-bottom: 2rem;
}
.prose-legal--md > p:first-of-type strong,
.prose-legal--md > h1:first-child + p strong {
  font-weight: 600;
  color: #9ca3af;
}
.prose-legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}
.prose-legal th,
.prose-legal td {
  border: 1px solid #e5e7eb;
  padding: 0.625rem 0.75rem;
  text-align: left;
  vertical-align: top;
}
.prose-legal th {
  background: #f9fafb;
  font-weight: 700;
  color: #111827;
}

/* FAQ accordion */
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] { border-color: rgba(35, 83, 144, 0.25); background: #fff; }
.faq-item[open] .faq-chevron { color: #235390; transform: rotate(180deg); }

/* How it works steps */
.how-step-num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: #235390;
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Marketing color utilities (fallback if Tailwind not built) */
.bg-commazaar-blue { background-color: #235390; }
.text-commazaar-blue { color: #235390; }
.text-commazaar-green { color: #58cc02; }
.border-commazaar-green { border-color: #58cc02; }

/* ── Pricing page ── */
.pricing-page {
  background: #f9fafb;
  min-height: 100vh;
  padding: 5rem 0 4rem;
}
@media (min-width: 640px) {
  .pricing-page { padding-top: 6rem; }
}

.pricing-page__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) {
  .pricing-page__inner { padding: 0 1.5rem; }
}

.pricing-page__header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.pricing-page__title {
  font-size: 1.875rem;
  font-weight: 800;
  color: #235390;
  margin: 0 0 1rem;
}
@media (min-width: 640px) {
  .pricing-page__title { font-size: 2.25rem; }
}
.pricing-page__subtitle {
  color: #6b7280;
  font-size: 1.125rem;
  margin: 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
}

.pricing-card {
  background: #fff;
  border-radius: 1rem;
  border: 2px solid #e5e7eb;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.pricing-card--free,
.pricing-card--trial {
  border-color: #58cc02;
}
.pricing-card--featured {
  border-color: #235390;
  box-shadow: 0 4px 14px rgba(35, 83, 144, 0.12);
}
.pricing-card--custom {
  border-style: dashed;
}

.pricing-card__label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
  margin: 0;
}
.pricing-card--free .pricing-card__label,
.pricing-card--trial .pricing-card__label { color: #58cc02; }

.pricing-card__price-note {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #9ca3af;
  margin-top: 0.25rem;
}

.pricing-card__trial-note {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.4;
  margin: 0 0 1rem;
}

.pricing-card__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #111827;
  margin: 0.25rem 0 0;
}

.pricing-card__desc {
  font-size: 0.875rem;
  color: #9ca3af;
  margin: 0.25rem 0 1rem;
  line-height: 1.4;
}

.pricing-card__price {
  font-size: 1.875rem;
  font-weight: 800;
  color: #235390;
  margin: 0;
}
.pricing-card__price span {
  font-size: 0.875rem;
  font-weight: 400;
  color: #9ca3af;
}

.pricing-card__annual {
  font-size: 0.75rem;
  color: #9ca3af;
  margin: 0.25rem 0 0;
}

.pricing-card__body { flex: 1; }

.pricing-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: auto;
  padding-top: 1.5rem;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.pricing-card__header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.pricing-card__price-col {
  text-align: right;
  flex-shrink: 0;
}

.pricing-card__seats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}
.pricing-card__seats-row span:first-child {
  font-weight: 700;
  color: #4b5563;
}
.pricing-card__seats-count {
  font-size: 1.125rem;
  font-weight: 800;
  color: #235390;
}

.pricing-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: #6b7280;
}
.pricing-card__features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.pricing-card__features svg {
  width: 1rem;
  height: 1rem;
  color: #58cc02;
  flex-shrink: 0;
}


.pricing-slider-markers {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.625rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pricing-page__footer-note {
  text-align: center;
  font-size: 0.875rem;
  color: #9ca3af;
  margin-top: 2.5rem;
}
.pricing-page__footer-note a {
  color: #235390;
  font-weight: 700;
  text-decoration: none;
}
.pricing-page__footer-note a:hover { text-decoration: underline; }

.pricing-faqs {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid #e5e7eb;
}
.pricing-faqs__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
  text-align: center;
  margin: 0 0 2rem;
}

.marketing-cta-primary.pricing-card__cta {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.875rem;
  font-size: 0.75rem;
}

.pricing-card__cta--outline {
  padding: 0.5rem 0.875rem;
  font-size: 0.75rem;
  box-sizing: border-box;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #235390;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-bottom: 4px solid #d1d5db;
  border-radius: 1rem;
  transition: background 0.15s, border-color 0.15s, transform 0.08s;
}
.pricing-card__cta--outline:hover {
  background: #f9fafb;
  border-color: #235390;
  color: #235390;
}
.pricing-card__cta--outline:active {
  transform: translateY(2px);
  border-bottom-width: 2px;
}

/* ── Dark mode (marketing pages) ── */
.dark body.font-sans {
  color: #e2e8f0;
}

.dark .marketing-separator {
  border-bottom-color: #334155;
}

.dark .partner-badge__asterisk {
  color: #64748b;
}
.dark .partner-badge__asterisk:hover {
  color: #94a3b8;
}

.dark .faq-item[open] {
  border-color: rgba(96, 165, 250, 0.25);
  background: #1e293b;
}
.dark .faq-item[open] .faq-chevron {
  color: #60a5fa;
}

.dark .prose-legal h2 { color: #f1f5f9; }
.dark .prose-legal h3 { color: #e2e8f0; }
.dark .prose-legal p,
.dark .prose-legal ul,
.dark .prose-legal ol { color: #94a3b8; }
.dark .prose-legal .about-signoff { color: #cbd5e1; }
.dark .prose-legal hr { border-top-color: #334155; }
.dark .prose-legal strong { color: #f1f5f9; }
.dark .prose-legal em { color: #64748b; }
.dark .prose-legal--md > h1:first-child { color: #60a5fa; }
.dark .prose-legal--md > p:first-of-type,
.dark .prose-legal--md > h1:first-child + p { color: #64748b; }
.dark .prose-legal th,
.dark .prose-legal td { border-color: #334155; }
.dark .prose-legal th {
  background: #0f172a;
  color: #f1f5f9;
}

.dark .pricing-page { background: #0f172a; }
.dark .pricing-page__title { color: #60a5fa; }
.dark .pricing-page__subtitle { color: #94a3b8; }
.dark .pricing-card {
  background: #1e293b;
  border-color: #334155;
  box-shadow: none;
}
.dark .pricing-card--featured {
  border-color: #3b82f6;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.12);
}
.dark .pricing-card__title { color: #f1f5f9; }
.dark .pricing-card__desc,
.dark .pricing-card__label,
.dark .pricing-card__price-note,
.dark .pricing-card__annual,
.dark .pricing-card__trial-note { color: #94a3b8; }
.dark .pricing-card__price { color: #60a5fa; }
.dark .pricing-card__price span { color: #64748b; }
.dark .pricing-card__seats-row span:first-child { color: #cbd5e1; }
.dark .pricing-card__seats-count { color: #60a5fa; }
.dark .pricing-card__features { color: #94a3b8; }
.dark .pricing-slider::-webkit-slider-runnable-track {
  background: linear-gradient(to right, #58cc02 var(--seat-pct, 0%), #334155 var(--seat-pct, 0%));
}
.dark .pricing-slider::-webkit-slider-thumb { border-color: #1e293b; }
.dark .pricing-slider::-moz-range-track { background: #334155; }
.dark .pricing-slider::-moz-range-thumb { border-color: #1e293b; }
.dark .pricing-slider-markers { color: #64748b; }
.dark .pricing-page__footer-note { color: #64748b; }
.dark .pricing-page__footer-note a { color: #60a5fa; }
.dark .pricing-faqs { border-top-color: #334155; }
.dark .pricing-faqs__title { color: #f1f5f9; }
.dark .pricing-card__cta--outline {
  color: #60a5fa;
  background: #1e293b;
  border-color: #475569;
  border-bottom-color: #334155;
}
.dark .pricing-card__cta--outline:hover {
  background: #334155;
  border-color: #60a5fa;
  color: #93c5fd;
}
