/* Component Styles for Health Insurance Case Study — Scoped to Airtel Theme */
.cs-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-md) var(--space-2xl);
}

.cs-hero {
  margin-bottom: 4rem;
}

.cs-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 1.5rem;
}

.cs-eyebrow-logo {
  height: 22px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
  display: block;
}

.cs-dot {
  width: 4px;
  height: 4px;
  background: var(--text-tertiary);
  border-radius: 50%;
  display: inline-block;
}

.cs-hero-title {
  font-size: clamp(2.5rem, 7vw, 6.5rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.cs-hero-sub {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-secondary);
  max-width: 700px;
  line-height: 1.5;
}

.cs-brief-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.cs-meta-pill {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cs-meta-key {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary, #94a3b8);
}

.cs-meta-val {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary, #f8fafc);
}

.cs-meta-divider {
  width: 1px;
  height: 28px;
  background: var(--border, rgba(255, 255, 255, 0.12));
}

.cs-section {
  margin-bottom: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.cs-section-num {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  color: var(--color-airtel-red, #e61f25);
  margin-bottom: 0.75rem;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.cs-section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.cs-body {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.cs-body p+p {
  margin-top: 1.25rem;
}

.cs-list {
  margin: 1rem 0 1.5rem 0;
  padding-left: 0;
  list-style: none;
}

.cs-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: var(--fs-body);
  color: var(--text-secondary);
  line-height: 1.6;
}

.cs-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-airtel-red, #e61f25);
  font-weight: bold;
}

.cs-insight {
  font-size: var(--fs-body, 1rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 2rem 0;
  padding: 1.1rem 1.35rem;
  border-radius: 0 8px 8px 0;
  transition: all 0.25s ease;
}

body.cs-light-theme .cs-hero-eyebrow span {
  color: #0f172a;
}
body.cs-light-theme .cs-dot {
  background: #0f172a;
}

/* 1. Info / Grey Variant (Default & .cs-insight--info) */
.cs-insight,
.cs-insight--info {
  border-left: 3px solid #64748b;
  background: rgba(100, 116, 139, 0.08);
}

.cs-insight strong,
.cs-insight--info strong {
  color: var(--text-primary, #f8fafc);
}

body.cs-light-theme .cs-insight,
body.cs-light-theme .cs-insight--info {
  border-left-color: #64748b;
  background: rgba(100, 116, 139, 0.06);
}

body.cs-light-theme .cs-insight strong,
body.cs-light-theme .cs-insight--info strong {
  color: #0f172a;
}

/* 2. Positive / Green Variant (.cs-insight--positive) */
.cs-insight--positive {
  border-left: 3px solid #00ef87 !important;
  background: rgba(0, 239, 135, 0.08) !important;
}

.cs-insight--positive strong {
  color: #00ef87 !important;
}

body.cs-light-theme .cs-insight--positive {
  border-left-color: #059669 !important;
  background: rgba(5, 150, 105, 0.08) !important;
}

body.cs-light-theme .cs-insight--positive strong {
  color: #059669 !important;
}

/* 3. Negative / Red Variant (.cs-insight--negative) */
.cs-insight--negative {
  border-left: 3px solid #ff4d4f !important;
  background: rgba(255, 77, 79, 0.08) !important;
}

.cs-insight--negative strong {
  color: #ff4d4f !important;
}

body.cs-light-theme .cs-insight--negative {
  border-left-color: #dc2626 !important;
  background: rgba(220, 38, 38, 0.08) !important;
}

body.cs-light-theme .cs-insight--negative strong {
  color: #dc2626 !important;
}

.cs-pullquote {
  padding: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--color-airtel-red, #e61f25);
  margin: 2.5rem 0;
  border-radius: 8px;
}

.cs-pullquote p {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-primary);
  line-height: 1.65;
}

.cs-pullquote strong {
  color: var(--color-airtel-red, #e61f25);
}

.cs-img-full {
  margin: 2.5rem 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
}

.cs-img-full img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.cs-img-full figcaption {
  padding: 0.85rem 1.25rem;
  font-size: var(--fs-micro);
  color: var(--text-tertiary);
  line-height: 1.4;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

.cs-img-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.cs-img-pair figure {
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.cs-img-pair img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.4s var(--ease-out-expo);
}

.cs-img-pair figure:hover img {
  transform: scale(1.03);
}

.cs-img-pair figcaption {
  padding: 0.75rem 1rem;
  font-size: var(--fs-micro);
  color: var(--text-tertiary);
  border-top: 1px solid var(--border);
  line-height: 1.4;
  background: var(--bg-secondary);
}

/* 3-Image Trio Grid */
.cs-img-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 2.5rem 0;
}

.cs-img-trio figure {
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  position: relative;
}

.cs-img-trio img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.4s var(--ease-out-expo);
  cursor: zoom-in;
}

.cs-img-trio figure:hover img {
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .cs-img-trio {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Lightbox & Zoom */
.cs-img-full,
.cs-img-pair figure,
.cs-img-trio figure {
  position: relative;
}

.cs-img-full img,
.cs-img-pair img,
.cs-img-trio img {
  cursor: zoom-in;
}

.cs-zoom-hint {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 20px;
  font-family: var(--font-primary);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.95);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
  z-index: 2;
}

.cs-zoom-hint svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cs-img-full:hover .cs-zoom-hint,
.cs-img-pair figure:hover .cs-zoom-hint {
  opacity: 1;
}

/* Personas Cards */
.cs-persona {
  border: 1px solid var(--border);
  background: var(--bg-surface);
  border-radius: 12px;
  margin: 2.5rem 0;
  overflow: hidden;
}

.cs-persona-head {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.cs-persona-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--color-airtel-red, #e61f25);
  background: rgba(230, 31, 37, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-airtel-red, #e61f25);
  flex-shrink: 0;
}

.cs-persona-name {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
  color: var(--text-primary);
}

.cs-persona-sub {
  font-size: var(--fs-micro);
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.cs-persona-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.cs-persona-traits span {
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: var(--fs-micro);
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  background: var(--bg-primary);
}

.cs-persona-body {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.cs-persona-col {
  padding: 1.5rem;
  border-right: 1px solid var(--border);
}

.cs-persona-col:last-child {
  border-right: none;
}

.cs-plabel {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-airtel-red, #e61f25);
  margin-bottom: 0.85rem;
  display: block;
}

.cs-plabel+.cs-plabel {
  margin-top: 1.5rem;
}

.cs-plabel--channels {
  margin-top: 1.5rem;
  display: block;
}

.cs-persona-quote {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.55;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 1.5rem;
  background: var(--bg-secondary);
}

/* Spectrum */
.cs-spectrum-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cs-spectrum-item {
  display: grid;
  grid-template-columns: 62px 1fr 62px;
  align-items: center;
  gap: 0.5rem;
}

.cs-spectrum-item>span {
  font-size: 0.68rem;
  color: var(--text-tertiary);
}

.cs-spectrum-item>span:last-child {
  text-align: right;
}

.cs-spectrum-track {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  position: relative;
}

.cs-spectrum-dot {
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  background: var(--color-airtel-red, #e61f25);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 6px rgba(230, 31, 37, 0.4);
}

/* Bars */
.cs-bars {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cs-bar-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 0.5rem;
}

.cs-bar-row>span {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.cs-bar-track {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.cs-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-airtel-red, #e61f25), #ff4d4d);
  border-radius: 2px;
}

/* Bio */
.cs-persona-bio {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.cs-persona-bio-em {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-tertiary);
  line-height: 1.6;
}

/* Persona Footer */
.cs-persona-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-secondary);
}

.cs-persona-gl {
  padding: 1.5rem;
  border-right: 1px solid var(--border);
}

.cs-persona-gl:last-child {
  border-right: none;
}

.cs-persona-gl ul {
  list-style: none;
  padding: 0;
}

.cs-persona-gl ul li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-left: 1rem;
  position: relative;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.cs-persona-gl ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-airtel-red, #e61f25);
  font-weight: bold;
}

.cs-subsection-title {
  margin: 2.5rem 0 1.25rem 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Reframe Question Card & Header */
.cs-reframe-question-card {
  margin: 1.5rem 0 1.75rem 0;
  padding: 0.25rem 0;
}

.cs-qmeta-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
}

.cs-qmeta-line {
  width: 3px;
  height: 18px;
  background: #00ef87;
  display: inline-block;
  border-radius: 2px;
}

.cs-qmeta-label {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--text-tertiary, #64748b);
  text-transform: uppercase;
}

.cs-qmeta-value {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem) !important;
  font-weight: 800 !important;
  line-height: 1.45 !important;
  color: var(--text-primary) !important;
  margin: 0 !important;
}

/* Points Grid Section */
.cs-points-grid {
  margin: 2rem 0 3.5rem 0;
}

.cs-point-icon-wrapper {
  font-family: var(--font-mono, monospace);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
}

/* Grey to Black Gradient Modifier for Decision Factors Section */
.cs-points-grid--grey .cs-point-icon-wrapper {
  background: radial-gradient(146% 220.53% at -24% 130%, #94a3b8 0%, #334155 50%, #090d16 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

body.cs-light-theme .cs-points-grid--grey .cs-point-icon-wrapper {
  background: radial-gradient(146% 220.53% at -24% 130%, #64748b 0%, #1e293b 60%, #0f172a 100%);
  color: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.2);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Close Section */
.cs-close {
  padding: 5rem 0 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.cs-close-line {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cs-close-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.cs-close-tags span {
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: var(--fs-micro);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.2s ease;
}

.cs-close-tags span:hover {
  border-color: var(--color-airtel-red, #e61f25);
  color: var(--color-airtel-red, #e61f25);
}

.cs-close-author {
  font-size: var(--fs-micro);
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 2rem;
}

/* Reusable Spectrum Dot Position Utilities */
.cs-pos-30 { left: 30%; }
.cs-pos-35 { left: 35%; }
.cs-pos-40 { left: 40%; }
.cs-pos-50 { left: 50%; }
.cs-pos-55 { left: 55%; }
.cs-pos-60 { left: 60%; }
.cs-pos-78 { left: 78%; }
.cs-pos-80 { left: 80%; }
.cs-pos-85 { left: 85%; }

/* Reusable Bar Fill Width Utilities */
.cs-w-15 { width: 15%; }
.cs-w-18 { width: 18%; }
.cs-w-20 { width: 20%; }
.cs-w-25 { width: 25%; }
.cs-w-28 { width: 28%; }
.cs-w-33 { width: 33%; }
.cs-w-38 { width: 38%; }
.cs-w-42 { width: 42%; }
.cs-w-48 { width: 48%; }
.cs-w-50 { width: 50%; }
.cs-w-55 { width: 55%; }
.cs-w-60 { width: 60%; }
.cs-w-62 { width: 62%; }
.cs-w-65 { width: 65%; }
.cs-w-68 { width: 68%; }
.cs-w-75 { width: 75%; }
.cs-w-80 { width: 80%; }
.cs-w-82 { width: 82%; }
.cs-w-85 { width: 85%; }

/* Responsive Media Queries */
@media (max-width: 768px) {
  .cs-shell {
    padding: 3.5rem 1.25rem 3rem;
  }

  .cs-hero-title {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }

  .cs-brief-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .cs-img-pair {
    grid-template-columns: 1fr;
  }

  .cs-persona-head {
    padding: 1.25rem;
  }

  .cs-persona-body {
    grid-template-columns: 1fr;
  }

  .cs-persona-col {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 1.25rem;
  }

  .cs-persona-col:last-child {
    border-bottom: none;
  }

  .cs-persona-footer {
    grid-template-columns: 1fr;
  }

  .cs-persona-gl {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 1.25rem;
  }

  .cs-persona-gl:last-child {
    border-bottom: none;
  }
}

/* ==========================================================================
   Classic iPhone (iPhone 8 / SE) Device Mockup Frame
   ========================================================================== */
.iphone-mockup-frame--iphone8 {
  position: relative;
  width: 420px;
  height: 912px;
  background: linear-gradient(145deg, #2c2c2e, #18181a 60%, #2c2c2e);
  border-radius: 58px;
  padding: 50px 14px 60px 14px;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.06) inset,
    0 45px 90px rgba(0, 0, 0, 0.55),
    0 15px 30px rgba(0, 0, 0, 0.4);
}

.iphone-mockup-frame--iphone8::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 58px;
  padding: 3px;
  background: linear-gradient(160deg, #4a4a4e, #1a1a1c 40%, #3a3a3e 70%, #1a1a1c);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.iphone-mockup-frame--iphone8 .iphone-classic-speaker {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 6px;
  background: #101012;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8);
}

.iphone-mockup-frame--iphone8 .iphone-classic-home {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: radial-gradient(circle, #1a1a1c 60%, #2a2a2c 100%);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

.iphone-mockup-frame--iphone8 .iphone-mockup-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.iphone-mockup-frame--iphone8 .iphone-mockup-island,
.iphone-mockup-frame--iphone8 .iphone-mockup-home-indicator {
  display: none !important;
}
