/* MarketClean site-wide layout and shared components. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body.mc-home {
  font-family: var(--mc-font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--mc-color-text);
  background: var(--mc-color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
}

.mc-home-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.mc-home-section {
  padding: 80px 0;
}

.mc-home-section + .mc-home-section {
  padding-top: 0;
}

.mc-home-topbar {
  padding: 24px 0 0;
}

.mc-home-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--mc-space-4);
}

.mc-home-wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--mc-space-3);
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--mc-color-text);
}

.mc-home-wordmark-link {
  text-decoration: none;
}

.mc-home-wordmark-accent {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: var(--mc-radius-pill);
  background: var(--mc-gradient-primary);
}

.mc-home-topbar-nav,
.mc-home-footer-nav {
  display: flex;
  align-items: center;
  gap: var(--mc-space-5);
  flex-wrap: wrap;
}

.mc-home-topbar-link {
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 600;
  text-decoration: none;
  color: var(--mc-color-text-muted);
}

.mc-home-topbar-link:hover,
.mc-home-topbar-link-active {
  color: var(--mc-color-text);
}

.mc-home-eyebrow,
.mc-home-section-eyebrow {
  display: inline-block;
  margin-bottom: var(--mc-space-3);
}

.mc-home-page-header {
  padding-top: 80px;
  padding-bottom: 0;
}

.mc-home-hero-row {
  display: grid;
  grid-template-columns: 6px 1fr;
  gap: var(--mc-space-5);
  align-items: stretch;
}

.mc-home-hero-bar {
  display: block;
  width: 6px;
  border-radius: var(--mc-radius-pill);
  background: var(--mc-gradient-primary);
}

.mc-home-hero-text {
  display: flex;
  flex-direction: column;
  gap: var(--mc-space-4);
}

.mc-home-hero-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--mc-color-text);
}

.mc-home-hero-lede,
.mc-home-section-lede,
.mc-home-hero-note,
.mc-home-footer-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--mc-color-text-muted);
}

.mc-home-section-title {
  margin: 0 0 var(--mc-space-4);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--mc-color-text);
}

.mc-home-section-lede {
  max-width: 60ch;
}

.mc-home-hero-cta {
  display: flex;
  align-items: center;
  gap: var(--mc-space-4);
  flex-wrap: wrap;
}

.mc-home-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--mc-radius-pill);
  font-size: 1rem;
  line-height: 1.5;
  text-decoration: none;
  box-shadow: var(--mc-shadow-soft);
}

.mc-home-inline-links {
  display: flex;
  align-items: center;
  gap: var(--mc-space-4);
  flex-wrap: wrap;
}

.mc-home-inline-link {
  font-size: 0.9375rem;
  line-height: 1.6;
  font-weight: 600;
  text-decoration: none;
  color: var(--mc-color-primary);
}

.mc-home-inline-link:hover {
  text-decoration: underline;
}

.mc-home-trust-strip {
  margin-top: var(--mc-space-4);
  padding: 16px 18px;
  border-radius: var(--mc-radius-lg);
  background: var(--mc-color-surface-low);
  box-shadow: var(--mc-shadow-hairline);
}

.mc-home-trust-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mc-home-trust-item {
  font-size: 0.9375rem;
  line-height: 1.5;
  font-weight: 600;
  color: var(--mc-color-text-muted);
}

.mc-home-footer {
  padding: var(--mc-space-5) 0 40px;
  margin-top: 40px;
  border-top: 1px solid var(--mc-color-outline-soft);
}

.mc-home-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--mc-space-4);
}

.mc-home-footer-text {
  text-align: center;
}

.mc-home-footer-nav {
  justify-content: center;
}

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

@media (min-width: 960px) {
  .mc-home-trust-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 699px) {
  .mc-home-topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .mc-home-topbar-nav {
    gap: var(--mc-space-4);
  }
}
