/* ============================================================
   cases.css — "Case studies" section
   Three columns. Left + middle thirds: flagship cases (Annabella, Her Fantasy
   Box) as vertical cards — full square poster on top, every metric shown, subtle
   CTA, no dropdown. Right third: three compact proof cases stacked, each with a
   "Show results" accordion (top metric peeks through a fade) and no link.
   Then an audit CTA band. Conversion Halo: conversion red + aurora purple.
   ============================================================ */
.cases-sec { position: relative; overflow: hidden; padding-top: 96px; padding-bottom: 110px; }
.cases-sec .haze-bloom { opacity: calc(0.12 * var(--glow-mult)); }
.cases-sec .wrap { position: relative; z-index: 1; }
.cases-head { margin-bottom: 56px; }

/* ---- shared card surface --------------------------------------- */
.cs-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--bg-card-translucent);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform .32s var(--ease), box-shadow .32s var(--ease), border-color .32s var(--ease);
}
.cs-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

/* ---- square poster media (perfect-square sources fit exactly) -- */
.cs-media { position: relative; aspect-ratio: 1 / 1; background: #000; overflow: hidden; flex-shrink: 0; }
.cs-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform .5s var(--ease); }
.cs-card:hover .cs-media img { transform: scale(1.03); }
.cs-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 -1px 0 var(--border-subtle); }

/* ---- content column ------------------------------------------- */
.cs-content { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 26px; }

/* ---- tag + brand label ---------------------------------------- */
.cs-tagrow { display: flex; align-items: center; gap: 12px; }
.cs-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-ui); font-weight: 600; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg2);
  padding: 5px 11px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-default);
}
.cs-tag .pdot { width: 6px; height: 6px; border-radius: 50%; background: var(--violet-500); box-shadow: 0 0 8px rgba(140, 107, 240, 0.7); }
.cs-tag--feat { color: var(--magenta-200); border-color: var(--border-brand); background: rgba(242, 34, 72, 0.1); }
.cs-tag--feat .pdot { background: var(--magenta-400); box-shadow: 0 0 9px rgba(242, 34, 72, calc(0.9 * var(--glow-mult))); }
.cs-brandlabel {
  font-family: var(--font-ui); font-weight: 600; font-size: 12px;
  letter-spacing: 0.04em; color: var(--fg3);
}
.cs-brandlabel--lg { font-family: var(--font-display); font-size: 16px; letter-spacing: -0.01em; color: var(--fg1); }

/* ---- brand logos (replace the text labels) -------------------- */
.cs-logo { height: 18px; width: auto; max-width: 140px; display: block; object-fit: contain; }
.cs-tagrow .cs-logo { margin-left: auto; }
.cs-logo--tall { height: 34px; }            /* Her Fantasy Box stacked wordmark */
.cs-logo--rail { height: 16px; margin-left: 0; }

/* ---- headline (runs the full content width) ------------------- */
.cs-h {
  font-family: var(--font-display); font-weight: 600; font-size: 21px;
  line-height: 1.24; letter-spacing: -0.02em; color: var(--fg1);
  margin: 15px 0 0;
}

/* ============================================================
   Three-column grid: Annabella | Her Fantasy Box | proof rail
   ============================================================ */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }

/* ---- flagship cards (cols 1 & 2) ------------------------------ */
.cs-pcard--feat { border-color: var(--border-brand); box-shadow: var(--shadow-card), 0 0 34px rgba(242, 34, 72, calc(0.16 * var(--glow-mult))); }
.cs-pcard--feat:hover { box-shadow: var(--shadow-glow); }

/* all metrics shown — single row of three, value over label, vertical dividers */
.cs-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 22px; margin-bottom: auto; padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}
.cs-metric { display: flex; flex-direction: column; gap: 6px; padding: 0 13px; }
.cs-metric:first-child { padding-left: 0; }
.cs-metric:last-child { padding-right: 0; }
.cs-metric:not(:first-child) { border-left: 1px solid var(--border-subtle); }
.cs-metric__v {
  font-family: var(--font-display); font-weight: 600; font-size: 21px;
  line-height: 1; letter-spacing: -0.02em; color: var(--fg1);
}
.cs-metric__v.cs-up { color: var(--lift); }
.cs-metric__l {
  font-family: var(--font-body); font-weight: 300; font-size: 11px;
  line-height: 1.3; color: var(--fg2);
}

/* primary CTA — now the pill treatment (swapped with the toggle) */
.cs-cta-link {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  margin-top: 24px;
  font-family: var(--font-ui); font-weight: 600; font-size: 12px;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg1);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-default);
  border-radius: var(--radius-pill); padding: 9px 16px; text-decoration: none;
  transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.cs-cta-link i { font-size: 15px; transition: transform .25s var(--ease); }
.cs-cta-link:hover { border-color: var(--border-strong); background: rgba(255, 255, 255, 0.07); }
.cs-cta-link:hover i { transform: translateX(3px); }

/* ============================================================
   Proof rail (col 3): three stacked compact cards
   image hugs the left edge; everything (incl. metrics) sits to its right
   ============================================================ */
.cases-rail { display: flex; flex-direction: column; gap: 24px; }
.cs-scard { flex-direction: row; align-items: stretch; padding: 0; min-height: 178px; }
.cs-media--rail { width: 42%; max-width: 210px; aspect-ratio: auto; align-self: stretch; flex-shrink: 0; }
.cs-media--rail::after { box-shadow: none; }
.cs-scard-body { display: flex; flex-direction: column; justify-content: center; flex: 1; min-width: 0; padding: 20px; }
.cs-scard-body .cs-tagrow { align-items: baseline; gap: 8px; flex-wrap: wrap; row-gap: 4px; }
.cs-proof-funnel {
  font-family: var(--font-ui); font-weight: 500; font-size: 10px;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--fg3);
  text-align: right; flex-shrink: 0; margin-left: auto;
}
.cs-proof-h {
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  line-height: 1.3; letter-spacing: -0.01em; color: var(--fg1);
  margin: 8px 0 0; text-wrap: balance;
}

/* results accordion — top metric peeks through a fade when collapsed */
.cs-results {
  overflow: hidden;
  max-height: 46px;
  margin-top: 16px;
  -webkit-mask-image: linear-gradient(to bottom, #000 36%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 36%, transparent 100%);
  transition: max-height .42s var(--ease);
}
.cs-results.is-open {
  max-height: 240px;
  -webkit-mask-image: none;
          mask-image: none;
}
.cs-results-inner {
  padding-top: 14px; border-top: 1px solid var(--border-subtle);
  display: flex; flex-direction: column; gap: 11px;
}
.cs-pm { display: flex; align-items: baseline; gap: 11px; }
.cs-pm__v {
  font-family: var(--font-display); font-weight: 600; font-size: 19px;
  line-height: 1; letter-spacing: -0.02em; color: var(--fg1);
  min-width: 78px; flex-shrink: 0;
}
.cs-pm__v.cs-up { color: var(--lift); }
.cs-pm__l {
  font-family: var(--font-body); font-weight: 300; font-size: 12px;
  line-height: 1.35; color: var(--fg2);
}

/* show / hide results toggle — now the subtle text-link treatment (swapped) */
.cs-disclose {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  margin-top: 14px; padding: 0 0 2px;
  background: none; border: none; border-bottom: 1px solid transparent; cursor: pointer;
  font-family: var(--font-ui); font-weight: 600; font-size: 13px;
  letter-spacing: 0.01em; color: var(--fg2);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.cs-disclose:hover { color: var(--magenta-200); border-bottom-color: var(--border-brand); }
.cs-disclose i { font-size: 16px; transition: transform .3s var(--ease); }
.cs-disclose i.is-up { transform: rotate(180deg); }

/* ---- closing CTA band ----------------------------------------- */
.cases-cta {
  margin: 64px auto 0; max-width: 620px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.cases-cta__h {
  font-family: var(--font-display); font-weight: 600; font-size: 30px;
  line-height: 1.15; letter-spacing: -0.02em; color: var(--fg1); margin: 0; text-wrap: balance;
}
.cases-cta__sub {
  font-family: var(--font-body); font-weight: 300; font-size: 15px;
  line-height: 1.6; color: var(--fg2); margin: 14px 0 28px; max-width: 56ch;
}

/* ---- responsive ----------------------------------------------- */
@media (max-width: 1000px) {
  .cases-grid { grid-template-columns: 1fr 1fr; }
  /* rail spans the full width and lays its three cards out in a row, but each
     card stays a comfortable min width so the funnel label never clips */
  .cases-rail { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .cases-rail .cs-scard { flex: 1 1 300px; }
}
@media (max-width: 680px) {
  .cases-sec { padding-top: 72px; padding-bottom: 80px; }
  .cases-head { margin-bottom: 40px; }
  .cases-grid { grid-template-columns: 1fr; }
  .cases-rail { flex-direction: column; }
  .cs-h { font-size: 20px; }
  .cases-cta__h { font-size: 25px; }
}
