@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  /* TODO: restore when real customer logos are added
  .marquee-track {
    animation: none !important;
  }
  */
  .typewriter-message {
    opacity: 1 !important;
  }
  .home-pricing-grid .features-list li {
    opacity: 1 !important;
    transform: none !important;
    transition-delay: 0ms !important;
  }
}

/*
 * ChatYug Marketing Pages - Shared Stylesheet
 * Marketing colors: ONLY --m-* tokens from colors.css (locked palette).
 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--m-text-primary);
  overflow-x: hidden;
  background: var(--m-surface-0);
}

a { color: var(--m-accent); }

img { max-width: 100%; height: auto; }

/* Header */
.nav-scroll-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
  visibility: hidden;
}

.header {
  background: var(--m-gradient-primary);
  color: var(--m-text-on-dark);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px color-mix(in srgb, var(--m-text-primary) 10%, transparent);
  transition: padding 200ms ease-out, box-shadow 200ms ease-out;
}

.header.scrolled {
  padding: 0.7rem 2rem;
  box-shadow: 0 2px 12px color-mix(in srgb, var(--m-text-primary) 8%, transparent);
}

.nav {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logo-container { display: flex; align-items: center; gap: 12px; }

.logo-container img {
  height: 65px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  background: color-mix(in srgb, var(--m-text-on-dark) 95%, transparent);
  padding: 10px 20px;
  border-radius: 12px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 2px solid color-mix(in srgb, var(--m-text-on-dark) 50%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--m-text-on-dark) 12%, transparent);
  color: var(--m-text-on-dark);
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 200ms ease-out, transform 200ms ease-out;
}

.nav-toggle:hover { opacity: 0.9; }
.nav-toggle:focus-visible {
  outline: 2px solid var(--m-text-on-dark);
  outline-offset: 2px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--m-text-on-dark);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 200ms ease-out;
}

.nav-links a:hover { opacity: 0.8; }

.nav-links a.active {
  opacity: 1;
  border-bottom: 2px solid var(--m-text-on-dark);
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform 200ms ease-out, box-shadow 200ms ease-out, background-color 200ms ease-out, opacity 200ms ease-out;
  font-size: 1rem;
}

.btn-primary {
  background: var(--m-brand-primary);
  color: var(--m-text-on-dark);
}

.btn-primary:hover {
  background: var(--m-brand-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px color-mix(in srgb, var(--m-brand-primary) 30%, transparent);
}

.btn-secondary {
  background: var(--m-surface-0) !important;
  color: var(--m-text-primary) !important;
  border: 2px solid var(--m-text-on-dark);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--m-text-primary) 15%, transparent);
  font-weight: 600;
}

.btn-secondary:hover {
  background: var(--m-surface-50) !important;
  transform: translateY(-2px);
}

/* Inner marketing pages: hero + breadcrumb + main share full-width shell */
.marketing-page-shell {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: var(--m-surface-0);
  display: flow-root;
}

/* Page hero */
.page-hero {
  background: var(--m-gradient-primary);
  color: var(--m-text-on-dark);
  padding: 5rem 2rem 3rem;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.page-hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.25;
  font-weight: 700;
}

.page-hero .answer-capsule {
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 760px;
  margin: 0 auto;
  opacity: 0.95;
}

/* Breadcrumb */
.breadcrumb {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem 0;
  font-size: 0.9rem;
  color: var(--m-text-secondary);
}

.breadcrumb a {
  color: var(--m-accent);
  text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; }

.breadcrumb .sep { margin: 0 0.5rem; opacity: 0.5; }

/* Generic content */
.page-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
}

.page-content section { margin-bottom: 3rem; }

.page-content h2 {
  font-size: 1.85rem;
  color: var(--m-text-primary);
  margin-bottom: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
}

.page-content h3 {
  font-size: 1.3rem;
  color: var(--m-text-primary);
  margin: 1.5rem 0 0.5rem;
  font-weight: 600;
}

.page-content p {
  color: var(--m-text-secondary);
  margin-bottom: 0.9rem;
  font-size: 1rem;
  line-height: 1.7;
}

.page-content .section-capsule {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--m-text-primary);
  background: var(--m-surface-50);
  border-left: 4px solid var(--m-brand-primary);
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin-bottom: 1.25rem;
}

.placeholder {
  background: color-mix(in srgb, var(--m-accent) 10%, var(--m-surface-50));
  border: 1px dashed color-mix(in srgb, var(--m-accent) 35%, var(--m-surface-0));
  color: var(--m-text-primary);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin: 0.5rem 0 1rem;
  font-size: 0.95rem;
}

ul.bullet-list, ol.numbered-list {
  margin: 0.5rem 0 1rem 1.25rem;
  color: var(--m-text-secondary);
  line-height: 1.75;
}

.last-updated {
  display: inline-block;
  background: var(--m-accent-light);
  color: var(--m-accent-dark);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

/* TODO: restore if E-E-A-T byline returns
.meta-byline {
  display: inline-block;
  background: var(--m-accent-light);
  color: var(--m-accent-dark);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
*/

/* FAQ (inner pages) */
.faq-section { padding: 3rem 0; background: var(--m-surface-0); }

.faq-container { display: grid; gap: 1.25rem; }

.faq-item {
  background: var(--m-surface-50);
  border: 1px solid color-mix(in srgb, var(--m-text-secondary) 18%, transparent);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  transition: box-shadow 200ms ease-out, transform 200ms ease-out;
}

.faq-item:hover {
  box-shadow: 0 6px 18px color-mix(in srgb, var(--m-text-primary) 8%, transparent);
  transform: translateY(-2px);
}

.faq-item h3 {
  font-size: 1.15rem;
  color: var(--m-text-primary);
  margin: 0 0 0.6rem;
  font-weight: 600;
  line-height: 1.4;
}

.faq-item p {
  color: var(--m-text-secondary);
  line-height: 1.65;
  font-size: 0.98rem;
  margin: 0;
}

/* Tables */
.compare-table-wrapper { overflow-x: auto; }

.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  background: var(--m-surface-0);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--m-text-primary) 6%, transparent);
}

.compare-table th, .compare-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid color-mix(in srgb, var(--m-text-secondary) 15%, transparent);
  vertical-align: top;
  font-size: 0.95rem;
}

.compare-table th {
  background: var(--m-accent-light);
  color: var(--m-accent-dark);
  font-weight: 600;
}

.compare-table tr:last-child td { border-bottom: none; }

/* Pricing cards (/pricing) */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 1rem auto;
}

.pricing-card {
  background: var(--m-surface-0);
  border: 2px solid color-mix(in srgb, var(--m-text-secondary) 20%, transparent);
  border-radius: 12px;
  padding: 2.25rem;
  text-align: center;
  position: relative;
  transition: transform 200ms ease-out, box-shadow 200ms ease-out, border-color 200ms ease-out;
}

.pricing-card:hover {
  border-color: var(--m-accent);
  transform: scale(1.02);
}

.pricing-card.featured {
  border-color: var(--m-brand-primary);
  background: linear-gradient(135deg, var(--m-surface-50) 0%, color-mix(in srgb, var(--m-brand-primary) 8%, var(--m-surface-0)) 100%);
}

.pricing-card h3 { font-size: 1.6rem; margin-bottom: 0.75rem; }

.pricing-card .price {
  font-size: 2.6rem;
  font-weight: bold;
  color: var(--m-accent);
  margin: 0.75rem 0;
}

.pricing-card .price-period { font-size: 1rem; color: var(--m-text-secondary); }

.pricing-card .features-list {
  list-style: none;
  margin: 1.5rem 0;
  text-align: left;
  padding: 0;
}

.pricing-card .features-list li { padding: 0.4rem 0; color: var(--m-text-secondary); }

.pricing-card .features-list li::before {
  content: "\2713  ";
  color: var(--m-brand-primary);
  font-weight: bold;
}

/* Blog cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.blog-card {
  background: var(--m-surface-0);
  border: 1px solid color-mix(in srgb, var(--m-text-secondary) 18%, transparent);
  border-radius: 12px;
  padding: 1.5rem;
  transition: box-shadow 200ms ease-out, transform 200ms ease-out;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  box-shadow: 0 8px 22px color-mix(in srgb, var(--m-text-primary) 8%, transparent);
  transform: translateY(-3px);
}

.blog-card .blog-date {
  font-size: 0.8rem;
  color: var(--m-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.blog-card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  color: var(--m-text-primary);
  line-height: 1.4;
}

.blog-card p {
  color: var(--m-text-secondary);
  font-size: 0.95rem;
  margin: 0 0 1rem;
  flex-grow: 1;
}

.blog-card a.read-more {
  color: var(--m-accent);
  font-weight: 600;
  text-decoration: none;
}

.internal-links {
  background: var(--m-surface-50);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.internal-links h2 { font-size: 1.25rem; margin-bottom: 0.75rem; color: var(--m-text-primary); }

.internal-links ul { list-style: none; padding: 0; margin: 0; }

.internal-links li { padding: 0.35rem 0; }

.internal-links a { color: var(--m-accent); text-decoration: none; font-weight: 500; }

.internal-links a:hover { text-decoration: underline; }

/* Contact form */
.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 640px;
  margin: 1.5rem 0;
}

.contact-form label { font-weight: 500; color: var(--m-text-primary); }

.contact-form input, .contact-form textarea {
  padding: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--m-text-secondary) 25%, transparent);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}

.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--m-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--m-accent) 15%, transparent);
}

.contact-form textarea { min-height: 120px; resize: vertical; }

.contact-form .form-status {
  font-size: 0.95rem;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  display: none;
}

.contact-form .form-status.success {
  display: block;
  background: color-mix(in srgb, var(--m-brand-primary) 12%, var(--m-surface-0));
  color: var(--m-brand-primary-dark);
}

.contact-form .form-status.error {
  display: block;
  background: color-mix(in srgb, var(--m-accent) 10%, var(--m-surface-0));
  color: var(--m-accent-dark);
}

/* Footer — multi-column */
.footer {
  background: var(--m-surface-900);
  color: var(--m-text-on-dark);
  padding: 2.5rem 2rem 0;
}

.footer-mbp,
.mbp-badge-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 0 2rem;
  padding: 0.75rem;
  background: color-mix(in srgb, var(--m-text-on-dark) 10%, transparent);
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--m-text-on-dark) 20%, transparent);
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.footer-mbp img,
.mbp-badge-footer img { height: 50px; width: auto; }

.footer-mbp-text,
.mbp-badge-footer-text {
  color: color-mix(in srgb, var(--m-text-on-dark) 95%, transparent);
  font-size: 0.95rem;
  font-weight: 600;
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-bottom: 2rem;
  text-align: left;
}

.footer-col h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  color: color-mix(in srgb, var(--m-text-on-dark) 90%, transparent);
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }

.footer-col li { margin-bottom: 0.5rem; }

.footer-col a {
  color: color-mix(in srgb, var(--m-text-on-dark) 92%, transparent);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 200ms ease-out;
}

.footer-col a:hover { color: var(--m-text-on-dark); }

.footer-col address {
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--m-text-on-dark) 88%, transparent);
}

.footer-rule {
  border: none;
  border-top: 1px solid color-mix(in srgb, var(--m-text-secondary) 20%, transparent);
  max-width: 1100px;
  margin: 0 auto;
}

.footer-legal {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 0 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--m-text-on-dark) 85%, transparent);
}

.footer-legal a {
  color: var(--m-brand-primary);
  text-decoration: none;
  font-weight: 600;
}

.footer-legal a:hover { text-decoration: underline; }

.footer-legal-links { display: flex; gap: 1.25rem; }

/* Legacy single-line footer text (hidden when grid present) */
.footer-tagline,
.footer-text {
  text-align: center;
  color: color-mix(in srgb, var(--m-text-on-dark) 90%, transparent);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* Single-line credit when footer-grid not used (legacy pages) */
.footer-credit {
  text-align: center;
  color: color-mix(in srgb, var(--m-text-on-dark) 95%, transparent);
  font-size: 1rem;
  margin: 0 0 2rem;
  font-weight: 600;
}

.footer-credit a {
  color: var(--m-brand-primary);
  text-decoration: none;
  font-weight: 700;
}

.footer-credit a:hover { text-decoration: underline; }

@media (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 88vw);
    height: 100vh;
    height: 100dvh;
    background: var(--m-surface-0);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 1.5rem 2rem;
    gap: 1rem;
    box-shadow: -4px 0 24px color-mix(in srgb, var(--m-text-primary) 12%, transparent);
    transform: translateX(100%);
    transition: transform 250ms ease-out;
    z-index: 200;
  }

  .nav-links a {
    color: var(--m-text-primary);
    width: 100%;
    padding: 0.5rem 0;
    border-bottom: none !important;
  }

  .header.nav-open .nav-links {
    transform: translateX(0);
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: color-mix(in srgb, var(--m-text-primary) 35%, transparent);
    z-index: 150;
  }

  .header.nav-open .nav-overlay {
    display: block;
  }

  .logo-container img { height: 55px; padding: 8px 16px; }

  .page-hero { padding: 4rem 1rem 2.5rem; }

  .page-hero h1 { font-size: 1.85rem; }

  .page-content { padding: 2rem 1rem 3rem; }

  .page-content h2 { font-size: 1.5rem; }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
  }
}
