/**
 * Marketing 2027 — shared layout primitives (preview pages only)
 * Product-specific colors live in truckers-home-preview.css / fleet-home-preview.css
 */

.m27-inner {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 768px) {
  .m27-inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.m27-page-hero {
  position: relative;
  z-index: 10;
  padding: 2.5rem 0 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .m27-page-hero {
    padding: 3rem 0 2.5rem;
  }
}

.m27-page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0 0 0.75rem;
}

.m27-page-hero .m27-lead {
  color: var(--ts-muted, #94a3b8);
  font-size: 1rem;
  max-width: 36rem;
  margin: 0 auto;
  line-height: 1.65;
}

body.fs-preview .m27-page-hero .m27-lead {
  color: var(--fs-muted);
}

.m27-product-toggle {
  position: relative;
  z-index: 25;
  background: rgba(8, 12, 18, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.65rem 1rem;
}

.m27-product-toggle-inner {
  max-width: 28rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.m27-toggle-btn {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  padding: 0.65rem 1.25rem;
  border-radius: 0.75rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.m27-toggle-btn--ts-active {
  background: rgba(37, 99, 235, 0.22);
  color: #93c5fd;
  border-color: rgba(37, 99, 235, 0.45);
}

.m27-toggle-btn--ts-idle {
  background: rgba(16, 185, 129, 0.08);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.25);
}

.m27-toggle-btn--fs-active {
  background: rgba(201, 146, 42, 0.18);
  color: var(--fs-gold-light, #e8b84b);
  border-color: rgba(201, 146, 42, 0.45);
}

.m27-toggle-btn--fs-idle {
  background: rgba(37, 99, 235, 0.08);
  color: #93b4e8;
  border-color: rgba(37, 99, 235, 0.25);
}

.m27-nav-link--active {
  color: #fff !important;
}

body.ts-preview .m27-nav-link--active {
  box-shadow: inset 0 -2px 0 var(--ts-orange);
}

body.fs-preview .m27-nav-link--active {
  box-shadow: inset 0 -2px 0 var(--fs-gold-light);
}

.m27-mobile-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.75rem 0 0.25rem;
}

.m27-mobile-nav summary {
  list-style: none;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3b8;
  padding: 0.35rem 0;
}

.m27-mobile-nav summary::-webkit-details-marker {
  display: none;
}

.m27-mobile-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem 0 0.25rem;
}

.m27-pill {
  font-family: "Montserrat", sans-serif;
  font-size: 0.62rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: 9999px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  white-space: nowrap;
}

.m27-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2.5rem 1.25rem 2rem;
  text-align: center;
  font-size: 0.75rem;
  color: #64748b;
}

.m27-footer a {
  color: #94a3b8;
  text-decoration: none;
}

.m27-footer a:hover {
  text-decoration: underline;
}

.m27-footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1rem;
  margin-bottom: 1rem;
}

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