/* ============================================================
   HausMatch · Market page
   Pearl editorial. Confidential draft.
   ============================================================ */

.mk-body {
  background: var(--bg-0);
  color: var(--fg-1);
  min-height: 100vh;
  font-family: var(--font-sans);
}

/* -------- Nav -------- */
.mk-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: rgba(253, 252, 249, 0.88);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--line-1);
}
.mk-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg-1);
}
.mk-nav-mark { height: 26px; width: auto; opacity: 0.95; }
.mk-nav-wordmark { height: 18px; width: auto; opacity: 0.95; }
.mk-nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.mk-nav-link {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--fg-2);
  text-decoration: none;
  transition: color 200ms var(--ease-out);
}
.mk-nav-link:hover { color: var(--fg-1); }
.mk-nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.mk-nav-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--fg-3);
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  background: var(--pearl-50);
}
.mk-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: var(--slate-900);
  color: var(--pearl-00);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--slate-900);
  transition: all 220ms var(--ease-out);
  white-space: nowrap;
}
.mk-nav-cta:hover {
  background: var(--slate-800);
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}
.mk-nav-cta-arrow {
  font-size: 14px;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform 220ms var(--ease-out);
}
.mk-nav-cta:hover .mk-nav-cta-arrow { transform: translate(2px, -3px); }

@media (max-width: 880px) {
  .mk-nav-links { display: none; }
}
@media (max-width: 720px) {
  .mk-nav { padding: 14px 20px; }
  .mk-nav-label { display: none; }
}

/* -------- Main -------- */
.mk-main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 80px 48px 120px;
}
@media (max-width: 720px) {
  .mk-main { padding: 48px 24px 80px; }
}

/* -------- Shared typography -------- */
.mk-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 14px;
}
.mk-display {
  font-family: var(--font-display);
  font-size: clamp(44px, 5.2vw, 72px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--fg-1);
  margin: 0 0 24px;
  text-wrap: balance;
}
.mk-italic {
  font-family: var(--font-serif-italic);
  font-style: italic;
  color: var(--slate-500);
  letter-spacing: 0;
}
.mk-h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.018em;
  color: var(--fg-1);
  margin: 0 0 16px;
  text-wrap: balance;
}
.mk-lede {
  font-family: var(--font-sans);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 720px;
  margin: 0;
  text-wrap: pretty;
}

/* -------- Reveal -------- */
.mk-hero,
.mk-section {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 820ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 820ms cubic-bezier(0.22, 1, 0.36, 1);
}
.mk-hero.is-in,
.mk-section.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* -------- Hero -------- */
.mk-hero {
  padding: 64px 0 88px;
}

/* -------- Sections -------- */
.mk-section {
  padding: 72px 0;
  border-top: 1px solid var(--line-1);
}
.mk-section-head {
  margin-bottom: 48px;
  max-width: 640px;
}

/* -------- Two anchors -------- */
.mk-anchors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
@media (max-width: 720px) {
  .mk-anchors { grid-template-columns: 1fr; gap: 40px; }
}
.mk-anchor {
  padding: 0;
}
.mk-anchor-num {
  font-family: var(--font-display);
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--fg-1);
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
}
.mk-anchor-plus {
  font-size: 0.7em;
  color: var(--slate-500);
}
.mk-anchor-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 14px;
}
.mk-anchor-desc {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0;
  max-width: 420px;
  text-wrap: pretty;
}

/* -------- Validation circles -------- */
.mk-val-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 900px) {
  .mk-val-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}
@media (max-width: 480px) {
  .mk-val-grid { grid-template-columns: 1fr; gap: 40px; }
}
.mk-val {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.mk-val-circle {
  position: relative;
  width: 160px;
  height: 160px;
}
.mk-val-circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.mk-val-bg {
  fill: none;
  stroke: var(--pearl-200);
  stroke-width: 6;
}
.mk-val-fill {
  fill: none;
  stroke: var(--sage-600);
  stroke-width: 6;
  stroke-linecap: round;
}
.mk-val-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--fg-1);
}
.mk-val-text {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-1);
  margin: 0;
  text-wrap: pretty;
}
.mk-val-source {
  font-family: var(--font-serif-italic);
  font-style: italic;
  font-size: 13px;
  color: var(--fg-3);
}

/* -------- Why now -------- */
.mk-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
@media (max-width: 900px) {
  .mk-why-grid { grid-template-columns: 1fr; gap: 32px; }
}
.mk-why {
  padding: 0;
}
.mk-why-num {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--fg-4);
  margin-bottom: 14px;
}
.mk-why-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--fg-1);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.mk-why-body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0;
  text-wrap: pretty;
}

/* -------- Team -------- */
.mk-team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 56px;
}
@media (max-width: 720px) {
  .mk-team-grid { grid-template-columns: 1fr; gap: 32px; }
}
.mk-team {
  padding: 0;
}
.mk-team-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--fg-1);
  margin: 0 0 6px;
}
.mk-team-role {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fg-3);
  margin-bottom: 14px;
}
.mk-team-bio {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0;
  text-wrap: pretty;
}

/* -------- Product preview -------- */
.mk-section-product {
  padding: 72px 0;
  border-top: 1px solid var(--line-1);
}
.mk-product-card {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 56px;
  align-items: center;
  padding: 48px 56px;
  background: var(--pearl-50);
  border: 1px solid var(--line-1);
  border-radius: var(--radius-lg);
}
@media (max-width: 900px) {
  .mk-product-card {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 36px;
  }
}
.mk-product-copy { min-width: 0; }
.mk-product-copy .mk-eyebrow { margin-bottom: 10px; }
.mk-product-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.018em;
  color: var(--fg-1);
  margin: 0 0 18px;
  text-wrap: balance;
}
.mk-product-body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0 0 12px;
  text-wrap: pretty;
  max-width: 520px;
}
.mk-product-subtle {
  font-family: var(--font-serif-italic);
  font-style: italic;
  color: var(--fg-3);
  font-size: 14px;
  margin-bottom: 24px;
}
.mk-product-cta {
  margin-top: 4px;
}
.mk-btn-arrow {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.mk-product-cta:hover .mk-btn-arrow {
  transform: translate(4px, -1px);
}

/* Stylized app-preview mock — mirrors the demo's dark match moment */
.mk-product-preview {
  background: var(--slate-900);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-3);
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
}
.mk-product-preview-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(253, 252, 249, 0.08);
  background: rgba(253, 252, 249, 0.03);
}
.mk-product-preview-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(253, 252, 249, 0.18);
}
.mk-product-preview-dot:first-child { background: var(--clay-600); }
.mk-product-preview-label {
  flex: 1;
  text-align: center;
  font-size: 10px;
  color: rgba(253, 252, 249, 0.5);
  letter-spacing: 0.08em;
  text-transform: lowercase;
}
.mk-product-preview-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 6px;
  padding: 12px;
}
.mk-product-preview-cell {
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  position: relative;
  opacity: 0.85;
}
.mk-pc-a { background-image: url("https://images.unsplash.com/photo-1600566753190-17f0baa2a6c3?w=600&q=80&auto=format&fit=crop"); }
.mk-pc-b { background-image: url("https://images.unsplash.com/photo-1613977257363-707ba9348227?w=600&q=80&auto=format&fit=crop"); }
.mk-pc-c { background-image: url("https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?w=600&q=80&auto=format&fit=crop"); }
.mk-pc-d { background-image: url("https://images.unsplash.com/photo-1600573472550-8090b5e0745e?w=600&q=80&auto=format&fit=crop"); }
.mk-pc-e { background-image: url("https://images.unsplash.com/photo-1600585154363-67eb9e2e2099?w=600&q=80&auto=format&fit=crop"); }
.mk-pc-f { background-image: url("https://images.unsplash.com/photo-1600566753376-12c8ab7fb75b?w=600&q=80&auto=format&fit=crop"); }

/* -------- Structure card -------- */
.mk-section-structure {
  padding: 72px 0;
  border-top: 1px solid var(--line-1);
}
.mk-structure-card {
  padding: 48px 56px;
  background: var(--pearl-50);
  border: 1px solid var(--line-1);
  border-radius: var(--radius-lg);
  max-width: 820px;
  margin: 0 auto;
}
@media (max-width: 720px) {
  .mk-structure-card { padding: 32px 24px; }
}
.mk-structure-card .mk-eyebrow { margin-bottom: 10px; }
.mk-structure-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--fg-1);
  margin: 0 0 20px;
  text-wrap: balance;
}
.mk-structure-body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--fg-2);
  margin: 0 0 14px;
  text-wrap: pretty;
}
.mk-structure-body:last-child { margin-bottom: 0; }
.mk-structure-subtle {
  font-size: 14px;
  color: var(--fg-3);
  font-family: var(--font-serif-italic);
  font-style: italic;
  border-top: 1px solid var(--line-1);
  padding-top: 14px;
}

/* -------- Contact card -------- */
.mk-section-contact { padding-top: 96px; }
.mk-contact-card {
  padding: 56px 48px;
  background: var(--pearl-50);
  border: 1px solid var(--line-1);
  border-radius: var(--radius-xl);
  text-align: center;
}
@media (max-width: 720px) {
  .mk-contact-card { padding: 40px 24px; }
}
.mk-contact-card .mk-eyebrow {
  margin-bottom: 10px;
}
.mk-contact-lede {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 520px;
  margin: 12px auto 28px;
  text-wrap: pretty;
}
.mk-contact-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.mk-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 220ms cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.mk-btn-primary {
  background: var(--slate-900);
  color: var(--pearl-00);
  border-color: var(--slate-900);
  box-shadow: var(--shadow-1);
}
.mk-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}
.mk-btn-ghost {
  background: transparent;
  color: var(--fg-1);
  border-color: var(--line-2);
}
.mk-btn-ghost:hover {
  border-color: var(--fg-3);
  background: var(--pearl-100);
}

/* -------- Footer -------- */
.mk-footer {
  border-top: 1px solid var(--line-1);
  padding: 28px 48px;
  background: var(--bg-0);
}
.mk-footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.mk-footer-copy {
  font-size: 12px;
  color: var(--fg-3);
}
.mk-footer-note {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--fg-4);
  text-transform: uppercase;
}
@media (max-width: 720px) {
  .mk-footer { padding: 20px 24px; }
}
