/* ==========================================================================
   Mini Kosmos — Homepage CSS
   Sections: Hero · Category Shelf · New Products · Marquee · Story · Newsletter
   Shared utilities (mk-wrap, mk-btn, product card) live in chrome.css.
   ========================================================================== */


/* ==========================================================================
   1. Hero
   ========================================================================== */

.mk-hero {
  position: relative;
  padding-top: 28px;
  padding-bottom: 56px;
}

/* Floating product figure circles */
.mk-hero-fig {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 16px 30px -20px rgba(32, 24, 46, .4);
  border: 1px solid rgba(32, 24, 46, .06);
  display: none; /* hidden on narrow viewports */
}

.mk-hero-fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

@media (min-width: 1100px) {
  .mk-hero-fig { display: block; }
}

/* Center content stack */
.mk-hero-body {
  display: grid;
  place-items: center;
  padding: 60px 0 30px;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Eyebrow pill */
.mk-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  margin-bottom: 24px;
}

.mk-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(255, 107, 74, .18);
  flex-shrink: 0;
}

/* H1 */
.mk-hero-h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 10vw, 140px);
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1.05;
  text-wrap: balance;
}

.mk-hero-h1 span { display: block; }

.mk-hero-h1 .mk-script-accent {
  font-size: inherit;
  letter-spacing: 0;
  margin-right: 8px;
}

/* Subtitle */
.mk-hero-sub {
  max-width: 620px;
  margin-top: 22px;
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* CTAs */
.mk-hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Trust strip */
.mk-hero-trust {
  display: flex;
  gap: 26px;
  margin-top: 36px;
  color: var(--ink-soft);
  font-size: 13px;
  flex-wrap: wrap;
  justify-content: center;
}

.mk-hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mk-hero-trust svg { color: var(--coral); flex-shrink: 0; }


/* ==========================================================================
   2. Category Shelf
   ========================================================================== */

.mk-cats-section { padding-bottom: 64px; }

.mk-cats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.mk-cat-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden; /* clips the image to the card's rounded corners */
  border: 1px solid var(--line);
  aspect-ratio: 3 / 4;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform .3s ease;
}

.mk-cat-card:hover { transform: translateY(-4px) rotate(-1deg); }

.mk-cat-card-bg  { position: absolute; inset: 0; }

.mk-cat-card-img {
  position: absolute;
  top: 0;
  right: 0;
  height: 85%;
  width: auto;
  max-width: 55%;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(32, 24, 46, .25));
}

.mk-cat-card-info {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
}

.mk-cat-card-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  margin-top: 2px;
  color: var(--ink);
}

.mk-cat-card-sub  { font-size: 13px; color: var(--ink-soft); }

.mk-cat-card-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}


/* ==========================================================================
   3. New Products section
   ========================================================================== */

.mk-new-section   { padding-bottom: 80px; }
.mk-faves-section { padding-bottom: 80px; }

/* Filter chips */
.mk-filter-chips {
  display: flex;
  gap: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 5px;
  border-radius: 999px;
  flex-shrink: 0;
}

.mk-chip {
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
  font-family: inherit;
}

.mk-chip:hover           { background: rgba(32, 24, 46, .06); }
.mk-chip.mk-chip--active { background: var(--ink); color: var(--paper); }


/* ==========================================================================
   4. Marquee Strip
   ========================================================================== */

.mk-marquee-section {
  padding: 0 0 80px;
  overflow: hidden;
}

.mk-marquee-track {
  display: flex;
  gap: 36px;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.mk-marquee-row {
  display: flex;
  gap: 36px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 8vw, 110px);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}

.mk-marquee-word {
  display: inline-flex;
  align-items: center;
  gap: 36px;
}

.mk-marquee-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}


/* ==========================================================================
   5. Story Panel
   ========================================================================== */

.mk-story-section { padding-bottom: 96px; }

.mk-story-card {
  background: var(--ink);
  color: var(--cream);
  border-radius: 32px;
  padding: clamp(28px, 5vw, 64px);
  position: relative;
  overflow: hidden;
}

.mk-story-deco {
  position: absolute;
  right: -80px;
  top: -80px;
  width: 380px;
  height: 380px;
  opacity: .12;
  pointer-events: none;
}

.mk-story-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.mk-story-h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 4.4vw, 60px);
  letter-spacing: -0.02em;
  margin-top: 10px;
  color: var(--paper);
  text-wrap: balance;
}

.mk-story-body {
  margin-top: 18px;
  color: rgba(255, 252, 246, .75);
  font-size: 17px;
  max-width: 540px;
  line-height: 1.5;
}

.mk-story-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mk-stat-card {
  background: rgba(255, 252, 246, .06);
  border: 1px solid rgba(255, 252, 246, .12);
  border-radius: 18px;
  padding: 20px 18px;
}

.mk-stat-n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 4vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--paper);
}

.mk-stat-l {
  margin-top: 8px;
  color: rgba(255, 252, 246, .7);
  font-size: 14px;
}


/* ==========================================================================
   6. Newsletter
   ========================================================================== */

.mk-newsletter-section { padding-bottom: 80px; }

.mk-newsletter-card {
  background: var(--coral);
  color: var(--paper);
  border-radius: 32px;
  padding: clamp(32px, 5vw, 72px) clamp(24px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.mk-nl-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.mk-nl-blob--sun {
  right: -60px; bottom: -60px;
  width: 280px; height: 280px;
  background: var(--sun);
  opacity: .9; z-index: 0;
}

.mk-nl-blob--paper {
  right: 80px; top: -40px;
  width: 120px; height: 120px;
  background: var(--paper);
  opacity: .3; z-index: 0;
}

.mk-nl-copy { position: relative; z-index: 1; }

.mk-nl-h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 4.4vw, 56px);
  letter-spacing: -0.02em;
  margin-top: 6px;
  color: var(--paper);
  text-wrap: balance;
}

.mk-nl-h2 .mk-script-accent { color: var(--paper); }

.mk-nl-body {
  margin-top: 14px;
  max-width: 460px;
  color: rgba(255, 252, 246, .9);
  font-size: 16px;
  line-height: 1.5;
}

.mk-nl-form { position: relative; z-index: 1; }

.mk-nl-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--paper);
  opacity: .85;
  margin-bottom: 8px;
}

.mk-nl-input-row {
  background: var(--paper);
  border-radius: 16px;
  padding: 6px;
  display: flex;
  gap: 6px;
}

.mk-nl-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 0 14px;
  font-size: 16px;
  color: var(--ink);
  font-family: inherit;
  min-width: 0;
}

.mk-nl-input::placeholder { color: var(--muted); }

.mk-nl-submit {
  height: 48px;
  padding: 0 22px;
  border: none;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: opacity .15s;
  flex-shrink: 0;
}

.mk-nl-submit:hover { opacity: .88; }
.mk-nl-submit svg   { flex-shrink: 0; }

.mk-nl-legal {
  margin-top: 12px;
  font-size: 12px;
  color: var(--paper);
  opacity: .75;
}
.mk-nl-legal-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 1;
}
.mk-nl-legal-link:hover { opacity: .9; }


/* ==========================================================================
   7. Responsive (homepage-specific)
   ========================================================================== */

@media (max-width: 1100px) {
  .mk-cats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .mk-story-grid      { grid-template-columns: 1fr; }
  .mk-newsletter-card { grid-template-columns: 1fr; }
  .mk-hero-trust      { gap: 14px; }
}

@media (max-width: 600px) {
  .mk-cats-grid              { gap: 10px; }
  .mk-hero-ctas              { flex-direction: column; align-items: stretch; }
  .mk-hero-ctas .mk-btn      { justify-content: center; }
  .mk-filter-chips           { flex-wrap: wrap; border-radius: 16px; }
  .mk-story-stats            { grid-template-columns: 1fr 1fr; }
}
