/* =====================================================================
   MARKET HUNTERZ — CASE STUDY · TEXAS MATTRESS MAKERS
   Standalone marketing page. Brutalist type, black + lime, editorial rhythm.
   ===================================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #000;
  --bg-elev:   #0a0a0a;
  --bg-card:   #0e0e0e;
  --bg-row:    #0d0d0d;
  --bg-row-alt:#111;
  --fg:        #fff;
  --fg-dim:    rgba(255,255,255,0.70);
  --fg-dimmer: rgba(255,255,255,0.45);
  --line:      rgba(255,255,255,0.10);
  --line-2:    rgba(255,255,255,0.22);
  --lime:      #cbff3a;
  --lime-glow: rgba(203,255,58,0.35);
}

html { -webkit-font-smoothing: antialiased; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Manrope', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  padding-top: 56px;
  min-height: 100dvh;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}
@media (max-width: 720px) { .container { padding: 0 22px; } }

.display {
  font-family: 'Big Shoulders Display', 'Anton', sans-serif;
  font-weight: 900;
  letter-spacing: -0.015em;
  line-height: 0.88;
  text-transform: uppercase;
}
.mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.lime { color: var(--lime); }
.lime-dot { color: var(--lime); }


/* ---------- Sticky brand bar ---------- */
.mh-bar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 60;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.mh-bar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 56px;
}
.mh-bar-brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--fg); transition: opacity .2s;
}
.mh-bar-brand:hover { opacity: 0.8; }
.mh-bar-brand img { width: 22px; height: 22px; filter: brightness(0) invert(1); }
.mh-bar-wordmark {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.04em; font-size: 15px;
}
.mh-bar-cta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--lime);
  border: 1px solid var(--lime);
  padding: 7px 12px;
  transition: background .2s, color .2s;
}
.mh-bar-cta:hover { background: var(--lime); color: #000; }


/* =====================================================================
   HERO
   ===================================================================== */
.cs-hero {
  padding: clamp(72px, 14vh, 160px) 0 64px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(80% 60% at 15% 0%, rgba(203,255,58,0.14), transparent 55%),
    radial-gradient(60% 50% at 100% 20%, rgba(203,255,58,0.06), transparent 60%),
    #000;
  position: relative;
  overflow: hidden;
}
.cs-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 120px);
}
.cs-eyebrow {
  color: var(--lime);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid var(--lime);
  border-radius: 999px;
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
}
.cs-h1 {
  font-size: clamp(52px, 9.2vw, 148px);
  margin-bottom: 30px;
  max-width: 20ch;
  position: relative;
  z-index: 2;
}
.cs-lede {
  max-width: 62ch;
  color: var(--fg-dim);
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.5;
  margin-bottom: 42px;
  position: relative;
  z-index: 2;
}
.cs-lede em { font-style: italic; color: var(--lime); }

.cs-hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
  background: rgba(0,0,0,0.35);
}
.cs-hero-meta-item {
  padding: 18px 20px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cs-hero-meta-item:last-child { border-right: 0; }
.cs-hero-meta-label {
  font-size: 10px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--fg-dimmer);
}
.cs-hero-meta-value {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 16px;
  color: var(--fg);
}


/* =====================================================================
   HEADLINE STATS
   ===================================================================== */
.cs-stats {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, transparent, rgba(203,255,58,0.03) 100%),
    #000;
}
.cs-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.cs-stat {
  background: var(--bg-card);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.cs-stat-wide { grid-column: 1 / -1; }
.cs-stat-num {
  font-size: clamp(52px, 8vw, 120px);
  line-height: 0.9;
  color: var(--fg);
}
.cs-stat-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--fg-dim);
  max-width: 28ch;
}


/* =====================================================================
   BODY SECTIONS
   ===================================================================== */
.cs-section { padding: 88px 0; border-bottom: 1px solid var(--line); }
.cs-section-alt {
  background:
    linear-gradient(180deg, rgba(203,255,58,0.025), transparent 80%),
    var(--bg-elev);
}

.cs-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 56px;
  align-items: flex-start;
}
.cs-two-side { position: sticky; top: 80px; }

.cs-kicker {
  display: inline-block;
  color: var(--lime);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--lime);
  margin-bottom: 20px;
}
.cs-h2 {
  font-size: clamp(40px, 6vw, 84px);
  color: var(--fg);
}
.cs-body-lead {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--fg);
  margin-bottom: 24px;
}
.cs-body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg-dim);
  margin-bottom: 20px;
  max-width: 66ch;
}
.cs-body-small { font-size: 14px; color: var(--fg-dimmer); }
.cs-body strong { color: var(--fg); font-weight: 600; }
.cs-body strong.lime { color: var(--lime); font-weight: 700; }
.cs-body em { font-style: italic; color: var(--fg); }
.cs-body-lead strong { color: var(--fg); font-weight: 700; }
.cs-body-lead strong.lime { color: var(--lime); }
.cs-body-lead em { font-style: italic; color: var(--lime); }


/* ---------- Deliverables list ---------- */
.cs-deliverables {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.cs-deliverables li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 22px;
  align-items: baseline;
}
.cs-deliv-num {
  font-size: 56px;
  line-height: 1;
  color: var(--lime);
}
.cs-deliv-txt {
  color: var(--fg);
  font-size: 15px;
  line-height: 1.55;
}


/* =====================================================================
   COST TABLE
   ===================================================================== */
.cs-costs {
  margin-top: 48px;
  border: 1px solid var(--line);
  background: var(--bg-card);
}
.cs-cost-row {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(280px, 2fr) minmax(180px, 1fr);
  gap: 24px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.cs-cost-row:nth-child(even) { background: var(--bg-row-alt); }
.cs-cost-row:last-child { border-bottom: 0; }
.cs-cost-head {
  background: #000 !important;
  border-bottom: 1px solid var(--line-2);
}
.cs-cost-head .cs-cost-cell {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dimmer);
}
.cs-cost-cell-num { text-align: right; }
.cs-cost-label {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 20px;
  color: var(--fg);
  line-height: 1.1;
}
.cs-cost-cell-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-dim);
}
.cs-cost-cell-desc strong { color: var(--lime); font-weight: 700; }
.cs-cost-amt {
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
  white-space: nowrap;
}
.cs-cost-total {
  background:
    linear-gradient(90deg, rgba(203,255,58,0.10), rgba(203,255,58,0.02)) !important;
  border-top: 2px solid var(--lime) !important;
  padding: 32px 28px;
}
.cs-cost-total-label {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--lime);
}
.cs-cost-total-amt {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
  color: var(--lime);
  text-shadow: 0 0 24px var(--lime-glow);
}


/* ---------- Not included ---------- */
.cs-notincluded {
  margin-top: 40px;
  padding: 28px;
  border: 1px dashed var(--line-2);
  background: rgba(255,255,255,0.02);
}
.cs-notincluded-title {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dimmer);
  margin-bottom: 16px;
}
.cs-notincluded-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 24px;
  margin-bottom: 20px;
}
.cs-notincluded-list li {
  color: var(--fg-dim);
  font-size: 13.5px;
  padding-left: 14px;
  position: relative;
}
.cs-notincluded-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--fg-dimmer);
  font-weight: 700;
}
.cs-notincluded-note {
  font-size: 11px;
  color: var(--fg-dimmer);
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.55;
  max-width: 60ch;
}


/* =====================================================================
   ALTERNATIVE VIEW
   ===================================================================== */
.cs-alt {
  margin-top: 30px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  margin-bottom: 24px;
}
.cs-alt-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 24px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.cs-alt-row:last-child { border-bottom: 0; }
.cs-alt-lbl {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.cs-alt-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
  white-space: nowrap;
}
.cs-alt-hero {
  background: rgba(203,255,58,0.06);
  border-top: 1px solid var(--lime);
  border-bottom: 1px solid var(--lime);
  padding: 26px 24px;
}
.cs-alt-hero .cs-alt-lbl { color: var(--lime); }
.cs-alt-hero .cs-alt-num {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
  text-shadow: 0 0 20px var(--lime-glow);
}


/* =====================================================================
   PULL QUOTE
   ===================================================================== */
.cs-quote-wrap { background: #000; }
.cs-quote {
  border-left: 3px solid var(--lime);
  padding: 20px 0 20px 32px;
  margin-top: 20px;
}
.cs-quote p {
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.05;
  color: var(--fg);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.cs-quote em { font-style: italic; color: var(--fg-dim); }
.cs-quote cite {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dimmer);
}


/* =====================================================================
   CTA
   ===================================================================== */
.cs-cta {
  padding: clamp(80px, 12vh, 160px) 0;
  background:
    radial-gradient(60% 60% at 50% 100%, rgba(203,255,58,0.18), transparent 65%),
    #000;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.cs-cta-inner { max-width: 900px; margin: 0 auto; }
.cs-cta-title {
  font-size: clamp(52px, 9vw, 128px);
  margin: 20px 0 32px;
}
.cs-cta .cs-kicker { border-bottom-color: var(--lime); }
.cs-cta-body {
  color: var(--fg-dim);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.55;
  margin-bottom: 40px;
  max-width: 58ch;
  margin-left: auto;
  margin-right: auto;
}
.cs-cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.cs-cta-btn {
  display: inline-block;
  padding: 18px 28px;
  background: var(--lime);
  color: #000;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  transition: transform .15s, background .2s, box-shadow .2s;
  box-shadow: 0 0 0 0 var(--lime-glow);
}
.cs-cta-btn:hover {
  transform: translateY(-2px);
  background: #d6ff5b;
  box-shadow: 0 12px 0 -6px var(--lime-glow);
}
.cs-cta-btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line-2);
  box-shadow: none;
}
.cs-cta-btn-ghost:hover {
  background: transparent;
  border-color: var(--lime);
  color: var(--lime);
  transform: translateY(-2px);
}


/* =====================================================================
   METHODOLOGY
   ===================================================================== */
.cs-method {
  padding: 64px 0 80px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
}
.cs-method-title {
  display: inline-block;
  color: var(--fg-dimmer);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.cs-method-body {
  color: var(--fg-dim);
  font-size: 13.5px;
  line-height: 1.7;
  max-width: 80ch;
}
.cs-method-body p { margin-bottom: 14px; }
.cs-method-sources {
  list-style: none;
  padding: 16px 20px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
}
.cs-method-sources li {
  font-size: 12.5px;
  color: var(--fg-dimmer);
}
.cs-method-sources a {
  color: var(--fg);
  border-bottom: 1px dotted var(--line-2);
  transition: color .2s, border-color .2s;
}
.cs-method-sources a:hover { color: var(--lime); border-color: var(--lime); }
.cs-method-note {
  font-size: 11px;
  color: var(--fg-dimmer);
  letter-spacing: 0.02em;
  text-transform: none;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}


/* =====================================================================
   FOOTER
   ===================================================================== */
.cs-footer { padding: 32px 0 40px; }
.cs-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cs-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--fg);
}
.cs-footer-brand img { width: 30px; height: 30px; filter: brightness(0) invert(1); }
.cs-footer-brand > div { display: flex; flex-direction: column; gap: 2px; }
.cs-footer-wordmark {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.04em; font-size: 15px;
}
.cs-footer-blurb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dimmer);
}
.cs-footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.cs-footer-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
  transition: color .2s;
}
.cs-footer-links a:hover { color: var(--lime); }
.cs-footer-copy {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dimmer);
}


/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 900px) {
  .cs-two { grid-template-columns: 1fr; gap: 30px; }
  .cs-two-side { position: static; }
  .cs-stats-grid { grid-template-columns: 1fr; }
  .cs-stat-wide { grid-column: 1; }
}

@media (max-width: 720px) {
  body { padding-top: 52px; }
  .mh-bar, .mh-bar-inner { height: 52px; }
  .mh-bar-brand img { width: 20px; height: 20px; }
  .mh-bar-wordmark { font-size: 13px; }
  .mh-bar-cta { font-size: 10px; padding: 6px 10px; letter-spacing: 0.14em; }

  .cs-hero { padding: 64px 0 48px; }
  .cs-hero-meta { grid-template-columns: repeat(2, 1fr); }
  .cs-hero-meta-item { border-bottom: 1px solid var(--line); }
  .cs-hero-meta-item:nth-child(2n) { border-right: 0; }

  .cs-stats { padding: 48px 0; }
  .cs-stat { padding: 28px 22px; }

  .cs-section { padding: 56px 0; }
  .cs-cta { padding: 72px 0; }

  /* Cost rows stack */
  .cs-cost-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 20px 22px;
  }
  .cs-cost-head { display: none; }
  .cs-cost-cell-num { text-align: left; }
  .cs-cost-total { padding: 24px 22px; }

  /* Deliverables stack */
  .cs-deliverables li {
    grid-template-columns: 70px 1fr;
    gap: 16px;
  }
  .cs-deliv-num { font-size: 44px; }

  /* Not-included list single column */
  .cs-notincluded { padding: 22px; }
  .cs-notincluded-list { grid-template-columns: 1fr; gap: 8px; }

  /* Quote */
  .cs-quote { padding-left: 22px; }

  .cs-cta-actions { flex-direction: column; }
  .cs-cta-btn { width: 100%; max-width: 360px; margin: 0 auto; }
}

@media (max-width: 420px) {
  .cs-h1 { font-size: 44px; }
  .cs-cta-title { font-size: 42px; }
}
