/* =================================================
   GROW EMAIL CASE STUDY — grow-casestudy.css
   Place this file inside your css/ folder
   ================================================= */

:root {
  --cs-blue:        #1A46C4;
  --cs-blue-mid:    #2054D4;
  --cs-blue-light:  #EFF6FF;
  --cs-blue-border: #BFDBFE;
  --cs-blue-soft:   #DBEAFE;
  --cs-text:        #0F172A;
  --cs-text-muted:  #64748B;
  --cs-surface:     #F8FAFF;
  --cs-white:       #ffffff;
  --cs-red-bg:      #FEF2F2;
  --cs-red-border:  #FECACA;
  --cs-red-text:    #991B1B;
  --cs-red-icon:    #DC2626;
  --cs-amber-bg:    #FFFBEB;
  --cs-amber-border:#FDE68A;
  --cs-amber-text:  #78350F;
  --cs-green-bg:    #F0FDF4;
  --cs-green-border:#BBF7D0;
  --cs-green-text:  #166534;
}

/* ── PAGE WRAPPER ── */
.cs-page {
  max-width: 900px;
  margin: 40px auto 80px;
  background: var(--cs-white);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--cs-blue-border);
  font-family: 'DM Sans', 'Montserrat', sans-serif;
}

/* ── HERO ── */
.cs-page .hero {
  background: var(--cs-blue);
  padding: 56px 48px 60px;
  position: relative;
  overflow: hidden;
  display: block;
  text-align: left;
  min-height: unset;
  width: auto;
}

.cs-page .hero::before {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

.cs-page .hero::after {
  content: '';
  position: absolute;
  right: 80px; bottom: -80px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  pointer-events: none;
}

.cs-page .hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.18);
  margin-bottom: 20px;
}

.cs-page .hero-tag svg {
  width: 14px; height: 14px;
  flex-shrink: 0;
}

.cs-page .hero h1 {
  font-family: 'DM Serif Display', 'Montserrat', serif;
  color: #fff;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 12px;
  max-width: 540px;
}

.cs-page .hero-sub {
  color: rgba(255,255,255,0.65);
  font-size: 15px;
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 28px;
  font-weight: 300;
}

.cs-page .chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.cs-page .chip {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.15);
}

.cs-page .kpi-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  overflow: hidden;
}

.cs-page .kpi {
  padding: 18px 16px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.cs-page .kpi:last-child { border-right: none; }

.cs-page .kpi-val {
  color: #fff;
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 6px;
}

.cs-page .kpi-badge {
  display: inline-block;
  font-size: 10px;
  color: #86EFAC;
  background: rgba(134,239,172,0.15);
  padding: 2px 8px;
  border-radius: 8px;
  margin-bottom: 4px;
}

.cs-page .kpi-lbl {
  color: rgba(255,255,255,0.5);
  font-size: 11px;
}

/* ── BODY ── */
.cs-body {
  padding: 48px;
}

/* ── TIMELINE ── */
.cs-page .tl {
  display: flex;
  gap: 0;
}

.cs-page .tl-spine {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 28px;
  flex-shrink: 0;
  width: 36px;
}

.cs-page .tl-node {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  flex-shrink: 0;
  z-index: 1;
  border: 2px solid;
  position: relative;
}

.cs-page .n-red   { background: var(--cs-red-bg);    color: #9B1C1C; border-color: #FCA5A5; }
.cs-page .n-blue  { background: var(--cs-blue-light); color: #1E3A8A; border-color: #93C5FD; }
.cs-page .n-amber { background: var(--cs-amber-bg);  color: #92400E; border-color: #FCD34D; }
.cs-page .n-green { background: var(--cs-green-bg);  color: #14532D; border-color: #6EE7B7; }

.cs-page .tl-connector {
  width: 2px;
  flex: 1;
  min-height: 28px;
  background: var(--cs-blue-border);
  margin: 4px 0;
}

.cs-page .tl-content { flex: 1; min-width: 0; }

.cs-page .tl-item { padding-bottom: 48px; }
.cs-page .tl-item:last-child { padding-bottom: 0; }

.cs-page .step-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
  margin-top: 6px;
  font-family: 'Montserrat', sans-serif;
}

.cs-page .sl-red   { color: #DC2626; }
.cs-page .sl-blue  { color: #2563EB; }
.cs-page .sl-amber { color: #D97706; }
.cs-page .sl-green { color: #16A34A; }

.cs-page .tl-item h2 {
  font-family: 'DM Serif Display', 'Montserrat', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--cs-text);
  margin-bottom: 10px;
  line-height: 1.3;
}

.cs-page .body-text {
  font-size: 14px;
  color: var(--cs-text-muted);
  line-height: 1.75;
  margin-bottom: 20px;
  font-weight: 300;
}

/* Problem cards */
.cs-page .prob-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.cs-page .prob-card {
  background: var(--cs-red-bg);
  border: 1px solid var(--cs-red-border);
  border-radius: 10px;
  padding: 16px;
}

.cs-page .prob-card svg {
  width: 20px; height: 20px;
  color: var(--cs-red-icon);
  margin-bottom: 8px;
  display: block;
}

.cs-page .prob-card h4 {
  font-size: 13px;
  font-weight: 500;
  color: #7F1D1D;
  margin-bottom: 4px;
}

.cs-page .prob-card p {
  font-size: 12px;
  color: var(--cs-red-text);
  line-height: 1.5;
}

.cs-page .insight {
  background: var(--cs-blue-light);
  border: 1px solid var(--cs-blue-border);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 13px;
  color: #1E40AF;
  line-height: 1.7;
}

.cs-page .insight strong { font-weight: 500; }

/* Design cards */
.cs-page .design-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.cs-page .design-card {
  background: var(--cs-surface);
  border: 1px solid #E2EAF4;
  border-radius: 10px;
  padding: 14px;
}

.cs-page .design-card h4 {
  font-size: 13px;
  font-weight: 500;
  color: var(--cs-text);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.cs-page .design-card h4 svg {
  width: 16px; height: 16px;
  color: var(--cs-blue-mid);
  flex-shrink: 0;
}

.cs-page .design-card p {
  font-size: 12px;
  color: var(--cs-text-muted);
  line-height: 1.55;
}

/* Email showcase */
.cs-page .em-showcase {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--cs-blue-border) transparent;
}

.cs-page .em-showcase::-webkit-scrollbar { height: 4px; }
.cs-page .em-showcase::-webkit-scrollbar-track { background: transparent; }
.cs-page .em-showcase::-webkit-scrollbar-thumb { background: var(--cs-blue-border); border-radius: 2px; }

.cs-page .em {
  flex-shrink: 0;
  width: 110px;
  border: 1px solid var(--cs-blue-border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.cs-page .em:hover { transform: translateY(-2px); border-color: #93C5FD; }

.cs-page .em-hd { background: var(--cs-blue); padding: 8px 10px; }

.cs-page .em-dots { display: flex; gap: 3px; margin-bottom: 5px; }
.cs-page .em-dots span { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.3); }

.cs-page .em-hd p { color: #fff; font-size: 9px; font-weight: 500; line-height: 1.35; }

.cs-page .em-bd { padding: 8px 10px; background: #F0F6FF; }

.cs-page .em-ln { height: 5px; background: #BFDBFE; border-radius: 2px; margin-bottom: 4px; width: 100%; }
.cs-page .em-ln.s { width: 55%; }
.cs-page .em-ln.m { width: 75%; }

.cs-page .em-cta-bar { height: 13px; background: var(--cs-blue); border-radius: 3px; margin-top: 6px; width: 65%; }

.cs-page .em-ft {
  font-size: 9px; color: #2563EB; font-weight: 500;
  padding: 5px 10px 7px;
  background: #fff;
  border-top: 1px solid #DBEAFE;
}

/* A/B test */
.cs-page .ab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }

.cs-page .ab-card { border-radius: 10px; padding: 14px; }
.cs-page .ab-a { background: var(--cs-amber-bg); border: 1px solid var(--cs-amber-border); }
.cs-page .ab-b { background: var(--cs-green-bg);  border: 1px solid var(--cs-green-border); }

.cs-page .ab-label {
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 8px;
  font-family: 'Montserrat', sans-serif;
}

.cs-page .ab-a .ab-label { color: #92400E; }
.cs-page .ab-b .ab-label { color: #166534; }
.cs-page .ab-card p { font-size: 12px; line-height: 1.6; }
.cs-page .ab-a p { color: var(--cs-amber-text); }
.cs-page .ab-b p { color: var(--cs-green-text); }

.cs-page .ab-winner {
  background: var(--cs-green-bg);
  border: 1px solid var(--cs-green-border);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #166534;
  line-height: 1.55;
}

.cs-page .ab-winner svg { width: 18px; height: 18px; color: #16A34A; flex-shrink: 0; margin-top: 1px; }

/* Results */
.cs-page .res-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.cs-page .res-card {
  background: var(--cs-blue-light);
  border-radius: 10px;
  padding: 16px 12px;
  text-align: center;
}

.cs-page .res-val { font-size: 26px; font-weight: 500; color: #1D4ED8; line-height: 1; margin-bottom: 6px; }

.cs-page .res-change {
  display: inline-block;
  font-size: 10px;
  color: var(--cs-green-text);
  background: var(--cs-green-bg);
  padding: 2px 8px;
  border-radius: 8px;
  margin-bottom: 5px;
  border: 1px solid var(--cs-green-border);
}

.cs-page .res-lbl { font-size: 11px; color: #3B82F6; }

/* Quote */
.cs-page .quote { background: var(--cs-blue-light); border-radius: 14px; padding: 24px 28px; }

.cs-page .quote-text {
  font-family: 'DM Serif Display', serif;
  font-size: 17px;
  color: #1E3A8A;
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 16px;
}

.cs-page .quote-author { display: flex; align-items: center; gap: 12px; }

.cs-page .quote-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #BFDBFE;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 500; color: #1E40AF;
  flex-shrink: 0;
}

.cs-page .quote-name { font-size: 13px; font-weight: 500; color: #1E3A8A; }
.cs-page .quote-role { font-size: 12px; color: #60A5FA; }

/* ── CTA SECTION ── */
.cs-page .cta-section {
  background: var(--cs-blue);
  padding: 28px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.cs-page .cta-left h3 { color: #fff; font-size: 16px; font-weight: 500; margin-bottom: 4px; }
.cs-page .cta-left p  { color: rgba(255,255,255,0.55); font-size: 13px; }
.cs-page .cta-btns    { display: flex; gap: 10px; flex-shrink: 0; }

.cs-page .btn-ghost {
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 13px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.2);
  transition: background 0.2s;
}
.cs-page .btn-ghost:hover { background: rgba(255,255,255,0.18); }

.cs-page .btn-primary {
  background: #fff;
  color: var(--cs-blue);
  font-size: 13px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  padding: 10px 22px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}
.cs-page .btn-primary:hover { opacity: 0.9; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .cs-page { margin: 0; border-radius: 0; border-left: none; border-right: none; }
  .cs-page .hero { padding: 36px 24px 40px; }
  .cs-page .hero h1 { font-size: 28px; }
  .cs-page .kpi-bar { grid-template-columns: repeat(2, 1fr); }
  .cs-page .kpi:nth-child(2) { border-right: none; }
  .cs-body { padding: 32px 24px; }
  .cs-page .prob-grid { grid-template-columns: 1fr; }
  .cs-page .design-grid { grid-template-columns: 1fr; }
  .cs-page .ab-grid { grid-template-columns: 1fr; }
  .cs-page .res-grid { grid-template-columns: repeat(2, 1fr); }
  .cs-page .cta-section { flex-direction: column; align-items: flex-start; padding: 24px; }
  .cs-page .tl-spine { margin-right: 16px; }
}

@media (max-width: 480px) {
  .cs-page .hero h1 { font-size: 24px; }
  .cs-page .res-grid { grid-template-columns: 1fr 1fr; }
}



.cs-page a.em {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}