/* ============================================
   Case Page Styles — extends styles.css
   ============================================ */

.case-page { padding-top: 100px; }

.case-hero {
  padding: clamp(40px, 8vw, 100px) var(--gutter) clamp(60px, 8vw, 120px);
  position: relative;
  overflow: hidden;
}
.case-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.case-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 56px;
  transition: color 0.3s, gap 0.3s;
}
.case-back:hover { color: var(--accent); gap: 14px; }
.case-back .arr {
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.case-meta-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 64px;
}
@media (max-width: 720px) {
  .case-meta-row { grid-template-columns: repeat(2, 1fr); }
}
.meta-cell .meta-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.meta-cell .meta-value {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  font-variation-settings: "SOFT" 100, "opsz" 144;
}

.case-title-display {
  font-size: clamp(48px, 8vw, 120px);
  margin-bottom: 32px;
}

.case-lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 380;
  line-height: 1.4;
  max-width: 32ch;
  color: var(--ink-soft);
  margin-top: 16px;
}

.case-cover {
  width: 100%;
  aspect-ratio: 16/8;
  border-radius: var(--r-lg);
  margin-block: clamp(40px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}

/* Cover patterns */
.cover-loja-digital {
  background:
    radial-gradient(ellipse at 20% 30%, oklch(0.72 0.12 155) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 70%, oklch(0.45 0.14 145) 0%, transparent 50%),
    oklch(0.38 0.12 150);
}
.cover-vivo {
  background: linear-gradient(135deg, oklch(0.65 0.16 295), oklch(0.42 0.18 275));
}
.cover-drsintomas {
  background: linear-gradient(135deg, oklch(0.68 0.12 195), oklch(0.45 0.15 215));
}
.cover-doacoes {
  background:
    radial-gradient(ellipse at 20% 30%, oklch(0.78 0.10 50) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 70%, oklch(0.55 0.13 35) 0%, transparent 50%),
    oklch(0.45 0.12 40);
}
.cover-bexs {
  background:
    radial-gradient(ellipse at 30% 40%, oklch(0.72 0.08 110) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 60%, oklch(0.45 0.10 130) 0%, transparent 55%),
    oklch(0.38 0.09 120);
}
.cover-internalizacao {
  background:
    radial-gradient(ellipse at 25% 35%, oklch(0.75 0.09 70) 0%, transparent 50%),
    radial-gradient(ellipse at 78% 65%, oklch(0.50 0.12 50) 0%, transparent 55%),
    oklch(0.40 0.10 60);
}

.cover-glyph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.92);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(80px, 18vw, 240px);
  font-weight: 360;
  letter-spacing: -0.04em;
}

.case-section {
  padding-block: clamp(48px, 7vw, 96px);
}
.case-block {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.cs-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(40px, 6vw, 96px);
}
@media (max-width: 880px) {
  .cs-grid { grid-template-columns: 1fr; gap: 16px; }
}
.cs-eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-top: 6px;
}
.cs-body {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 65ch;
}
.cs-body p + p { margin-top: 1em; }
.cs-body strong { color: var(--ink); font-weight: 500; }

.cs-h {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  margin-bottom: 24px;
  text-wrap: balance;
}

/* Process steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
}
@media (max-width: 880px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
.step {
  background: var(--bg-elevated);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 24px;
}
.step-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 12px;
}
.step-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 8px;
  font-variation-settings: "SOFT" 100, "opsz" 144;
}
.step-text {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* Outcomes */
.outcomes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}
@media (max-width: 880px) {
  .outcomes { grid-template-columns: 1fr; }
}
.outcome {
  background: var(--bg-deep);
  border-radius: var(--r-md);
  padding: 32px;
}
.outcome-num {
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 380;
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  margin-bottom: 12px;
}
.outcome-num em { font-style: italic; color: var(--accent); }
.outcome-text {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* Quote */
.cs-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 380;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  text-wrap: balance;
  max-width: 22ch;
  margin: 0 auto;
  text-align: center;
  padding-block: clamp(40px, 6vw, 80px);
  position: relative;
  color: var(--ink);
}
.cs-quote::before, .cs-quote::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 32px;
}
.cs-quote::after { margin: 32px auto 0; }

/* Image placeholder (legacy) */
.cs-img {
  width: 100%;
  aspect-ratio: 16/9;
  background:
    repeating-linear-gradient(135deg,
      transparent 0 16px,
      color-mix(in oklch, var(--ink) 4%, transparent) 16px 17px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mute);
  margin-block: 16px;
}

/* ── Visual diagrams (confidential-friendly) ── */
.cs-visual {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-elevated);
  padding: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 48px);
  margin-top: 32px;
}
.cs-visual-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 28px;
  text-align: center;
}

/* ── Flow: horizontal journey nodes ── */
.cs-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.cs-flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  min-width: 90px;
  transition: border-color 0.3s;
}
.cs-flow-node:hover { border-color: var(--accent); }
.cs-flow-node .node-num {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
}
.cs-flow-node .node-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cs-flow-arrow {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--line);
  padding: 0 clamp(8px, 1.5vw, 20px);
  flex-shrink: 0;
}
@media (max-width: 880px) {
  .cs-flow { flex-wrap: wrap; gap: 8px; justify-content: center; }
  .cs-flow-arrow { display: none; }
  .cs-flow-node { min-width: calc(50% - 4px); }
}

/* ── Before / After comparison ── */
.cs-before-after {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 56px);
}
.cs-ba-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.cs-ba-block .ba-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.cs-ba-block .ba-value {
  font-family: var(--serif);
  font-weight: 350;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 80, "opsz" 144;
}
.cs-ba-block .ba-value em { font-style: italic; }
.cs-ba-before .ba-value {
  font-size: clamp(28px, 5vw, 64px);
  color: var(--ink-mute);
}
.cs-ba-after .ba-value {
  font-size: clamp(32px, 6vw, 80px);
  color: var(--accent);
}
.cs-ba-block .ba-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--line);
}
.cs-ba-before .ba-bar { width: clamp(140px, 22vw, 280px); }
.cs-ba-after .ba-bar {
  width: clamp(40px, 6vw, 72px);
  background: var(--accent);
}
.ba-arrow {
  font-family: var(--mono);
  font-size: 24px;
  color: var(--line);
  flex-shrink: 0;
  align-self: center;
  margin-top: 12px;
}

/* ── Proportional split bar ── */
.cs-split {
  display: flex;
  border-radius: var(--r-sm);
  overflow: hidden;
  height: 80px;
}
.cs-split-bar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(16px, 2vw, 28px);
  gap: 4px;
}
.cs-split-bar .split-pct {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 380;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 80, "opsz" 144;
}
.cs-split-bar .split-pct em { font-style: italic; }
.cs-split-bar .split-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}
.cs-split-auto {
  flex: 9;
  background: var(--bg-deep);
  color: var(--ink);
}
.cs-split-manual {
  flex: 1;
  background: color-mix(in oklch, var(--accent) 15%, var(--bg));
  color: var(--accent-deep);
  min-width: 120px;
}

/* Tags row */
.cs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

/* Next case */
.next-case {
  border-top: 1px solid var(--line);
  padding: clamp(60px, 9vw, 120px) var(--gutter);
  text-align: center;
}
.next-case-eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 24px;
}
.next-case-title {
  font-family: var(--serif);
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 380;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  text-wrap: balance;
  margin-bottom: 32px;
  display: inline-block;
  transition: color 0.3s;
}
.next-case-title:hover { color: var(--accent); }
.next-case-title em { font-style: italic; }
