/* Solution: customer service and support - page-specific design.

   Zoho green (Desk) is the base. In the weekly chart, green is what closed and red is what came
   in - deliberately the reverse of the usual "green = good" reflex, because on this page the
   incoming volume is not a failure, the growing gap between the two is. The bar pair is what
   the reader should compare, so nothing else on the page uses those two colours together.

   All classes scoped to .cs-page, prefixed cs-. */

.cs-page {
  --cs: #088741;
  --cs-d: #056530;
  --cs-l: #e9f6ef;
  --cs-ink: #0f2117;
}

/* ---------------------------------------------------------------------- hero -- */
.cs-hero {
  padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px);
  background: linear-gradient(185deg, var(--cs-l) 0%, var(--white) 62%);
  border-block-end: 1px solid color-mix(in srgb, var(--cs) 16%, var(--line));
}
.cs-hero-in {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(24px, 4vw, 56px); align-items: center;
}
.cs-hero h1 { font-size: clamp(1.7rem, 3.7vw, 2.75rem); line-height: 1.18; margin: 0 0 14px; color: var(--cs-ink); }
.cs-hero .lede { max-width: 64ch; margin-block-end: 26px; }
.cs-acts { display: flex; flex-wrap: wrap; gap: 12px; }

/* four channels converging on one hub */
.cs-hero-vis { display: grid; place-items: center; min-height: 240px; }
.cs-inbox { position: relative; width: 100%; max-width: 290px; aspect-ratio: 1.1; }
.cs-ch {
  position: absolute; font-size: .8rem; font-weight: 700;
  padding: 6px 12px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line); color: var(--muted);
}
.cs-ch-1 { inset-block-start: 4%;  inset-inline-start: 2% }
.cs-ch-2 { inset-block-start: 4%;  inset-inline-end: 2% }
.cs-ch-3 { inset-block-end: 6%;    inset-inline-start: 0 }
.cs-ch-4 { inset-block-end: 6%;    inset-inline-end: 6% }
.cs-hub {
  position: absolute; inset-block-start: 50%; inset-inline-start: 50%;
  transform: translate(50%, -50%);
  width: 74px; height: 74px; border-radius: 20px;
  background: var(--cs); box-shadow: 0 0 0 8px color-mix(in srgb, var(--cs) 14%, transparent);
}

@media (prefers-reduced-motion: no-preference) {
  .cs-ch { animation: cs-pull 4.4s ease-in-out infinite; }
  .cs-ch-2 { animation-delay: .5s } .cs-ch-3 { animation-delay: 1s } .cs-ch-4 { animation-delay: 1.5s }
  .cs-hub { animation: cs-beat 4.4s ease-in-out infinite; }
}
@keyframes cs-pull { 0%, 100% { transform: translate(0, 0) } 50% { transform: translate(0, 8px) } }
@keyframes cs-beat {
  0%, 100% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--cs) 14%, transparent) }
  50%      { box-shadow: 0 0 0 16px color-mix(in srgb, var(--cs) 6%, transparent) }
}

/* --------------------------------------------------------------- weekly chart -- */
.cs-queue { padding: clamp(48px, 7vw, 84px) 0; }
.cs-queue h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0 0 12px; }
.cs-queue .lede { max-width: 80ch; }

.cs-chart {
  margin-block-start: 28px;
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(16px, 3vw, 26px);
  box-shadow: 0 20px 50px -40px rgba(8, 34, 20, .55);
}
.cs-chart-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px; flex-wrap: wrap; margin-block-end: 20px;
}
.cs-legend { display: flex; gap: 16px; flex-wrap: wrap; }
.cs-lg { display: inline-flex; align-items: center; gap: 7px; font-size: .88rem; color: var(--muted); font-weight: 600; }
.cs-lg::before { content: ''; width: 12px; height: 12px; border-radius: 3px; display: block; }
.cs-lg-in::before  { background: color-mix(in srgb, var(--zoho-red) 62%, var(--white)); }
.cs-lg-out::before { background: var(--cs); }
.cs-replay {
  font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer;
  color: var(--cs-d); background: var(--white);
  border: 1px solid color-mix(in srgb, var(--cs) 38%, var(--line));
  border-radius: 9px; padding: 8px 15px;
}
.cs-replay:hover { background: var(--cs-l); }

.cs-days {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px;
  align-items: end; height: 200px; margin-block-end: 20px;
}
.cs-day { display: grid; grid-template-rows: 1fr auto; gap: 8px; height: 100%; }
.cs-bars {
  display: flex; align-items: flex-end; justify-content: center; gap: 5px; height: 100%;
}
.cs-bars i {
  display: block; width: 16px; border-radius: 4px 4px 2px 2px;
  transition: height .45s ease;
}
.cs-b-in  { background: color-mix(in srgb, var(--zoho-red) 62%, var(--white)); }
.cs-b-out { background: var(--cs); }
.cs-day-n { text-align: center; font-size: .82rem; font-weight: 600; color: var(--muted); }
.cs-day.is-on .cs-day-n { color: var(--ink); }

.cs-read {
  display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap;
  padding-block-start: 18px; border-block-start: 1px solid var(--line);
}
.cs-read-n { display: flex; align-items: baseline; gap: 9px; }
.cs-read-n b {
  font-size: clamp(2rem, 5vw, 2.9rem); line-height: 1; color: var(--cs-d);
  font-variant-numeric: tabular-nums;
}
.cs-chart.is-bad .cs-read-n b { color: #a5191b; }
.cs-read-n span { color: var(--muted); font-size: .93rem; }
.cs-read-t { margin: 0; color: var(--ink); font-weight: 600; }
.cs-note { margin-block-start: 18px; color: var(--muted); font-size: .93rem; max-width: 84ch; }

/* --------------------------------------------------------------------- rules -- */
.cs-rule {
  padding: clamp(48px, 7vw, 84px) 0;
  background: var(--cs-l);
  border-block: 1px solid color-mix(in srgb, var(--cs) 14%, var(--line));
}
.cs-rule h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0 0 12px; }
.cs-rule .lede { max-width: 80ch; }
.cs-rules {
  margin-block-start: 26px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px;
}
.cs-r {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 15px; padding: 22px;
}
.cs-r-n {
  display: inline-block; margin-block-end: 10px;
  font-size: .76rem; font-weight: 800;
  color: var(--white); background: var(--cs-d);
  padding: 4px 11px; border-radius: 6px;
}
.cs-r h3 { margin: 0 0 8px; font-size: 1.06rem; }
.cs-r p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ------------------------------------------------------------------ knowledge -- */
.cs-kb { padding: clamp(48px, 7vw, 84px) 0; }
.cs-kb-in {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: clamp(22px, 4vw, 42px); align-items: start;
}
.cs-kb h2 { font-size: clamp(1.4rem, 2.9vw, 2.05rem); margin: 0 0 12px; }
.cs-kb .lede { max-width: 68ch; }
.cs-kb-two {
  margin-block-start: 22px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 13px;
}
.cs-kb-bad, .cs-kb-good { border-radius: 14px; padding: 20px; }
.cs-kb-bad h3, .cs-kb-good h3 { margin: 0 0 12px; font-size: 1.02rem; }
.cs-kb-bad ul, .cs-kb-good ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 8px; }
.cs-kb-bad li, .cs-kb-good li { color: var(--muted); font-size: .95rem; }
.cs-kb-bad {
  background: color-mix(in srgb, var(--zoho-red) 5%, var(--white));
  border: 1px solid color-mix(in srgb, var(--zoho-red) 24%, var(--line));
}
.cs-kb-bad h3 { color: #a5191b; }
.cs-kb-good {
  background: color-mix(in srgb, var(--cs) 6%, var(--white));
  border: 1px solid color-mix(in srgb, var(--cs) 30%, var(--line));
}
.cs-kb-good h3 { color: var(--cs-d); }
.cs-kb-side {
  background: var(--cs-ink); border-radius: 16px; padding: 24px;
}
.cs-kb-t { margin: 0 0 8px; color: var(--white); font-weight: 800; }
.cs-kb-side p:last-child { margin: 0; color: color-mix(in srgb, var(--white) 78%, transparent); }

/* --------------------------------------------------------------------- stack -- */
.cs-stack {
  padding: clamp(48px, 7vw, 84px) 0;
  background: var(--cs-l);
  border-block: 1px solid color-mix(in srgb, var(--cs) 14%, var(--line));
}
.cs-stack h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0 0 12px; }
.cs-stack .lede { max-width: 80ch; }
.cs-parts {
  margin-block-start: 26px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px;
}
.cs-part {
  display: grid; gap: 6px; align-content: start;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px; text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.cs-part:hover { border-color: var(--cs); transform: translateY(-2px); }
.cs-part img { display: block; margin-block-end: 4px; }
.cs-p-n { font-size: 1.02rem; font-weight: 700; color: var(--ink); }
.cs-p-r { color: var(--muted); font-size: .93rem; }
.cs-p-go { margin-block-start: 8px; font-size: .84rem; font-weight: 700; color: var(--cs-d); }
.cs-part-core { border-color: var(--cs); box-shadow: 0 0 0 1px color-mix(in srgb, var(--cs) 24%, transparent); }

/* ----------------------------------------------------------------------- how -- */
.cs-how { padding: clamp(48px, 7vw, 84px) 0; }
.cs-how h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0 0 24px; }
.cs-steps {
  list-style: none; margin: 0; padding: 0; counter-reset: css;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 13px;
}
.cs-steps li {
  counter-increment: css;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 18px; display: grid; gap: 5px;
}
.cs-steps b {
  display: flex; align-items: baseline; gap: 9px;
  font-size: 1.02rem; color: var(--cs-d);
}
.cs-steps b::before {
  content: counter(css, decimal-leading-zero);
  font-size: .8rem; font-weight: 800; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.cs-steps span { color: var(--muted); font-size: .95rem; }
.cs-how-cta {
  margin-block-start: 22px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  background: var(--cs-l);
  border: 1px solid color-mix(in srgb, var(--cs) 22%, var(--line));
  border-radius: 14px; padding: 20px 22px;
}
.cs-how-cta p { margin: 0; color: var(--cs-ink); max-width: 66ch; }

/* ------------------------------------------------------------------------ faq -- */
.cs-faq { padding: 0 0 clamp(24px, 4vw, 40px); }
.cs-faq h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0 0 20px; }

/* ------------------------------------------------------------- nearby solutions -- */
.cs-near { padding: 0 0 clamp(40px, 6vw, 64px); }
.cs-near h2 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); margin: 0 0 16px; }
.cs-near-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px;
}
.cs-near-c {
  display: grid; gap: 5px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 17px; text-decoration: none;
  transition: border-color .2s;
}
.cs-near-c:hover { border-color: var(--cs); }
.cs-near-c b { color: var(--cs-d); font-size: 1rem; }
.cs-near-c span { color: var(--muted); font-size: .93rem; }

/* ---------------------------------------------------------------------- close -- */
.cs-close { padding: 0 0 clamp(48px, 7vw, 84px); }
.cs-close-box {
  display: flex; align-items: center; justify-content: space-between;
  gap: 22px; flex-wrap: wrap; border-radius: 20px;
  padding: clamp(26px, 4vw, 42px);
  background: linear-gradient(125deg, var(--cs-d), color-mix(in srgb, var(--cs) 38%, #052b1a));
}
.cs-close-box h2 { color: var(--white); margin: 0 0 8px; font-size: clamp(1.3rem, 2.8vw, 1.9rem); }
.cs-close-box .lede { color: color-mix(in srgb, var(--white) 86%, transparent); margin: 0; max-width: 60ch; }

/* --------------------------------------------------------------------- narrow -- */
@media (max-width: 900px) {
  .cs-hero-in, .cs-kb-in { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cs-days { height: 160px; gap: 6px; }
  .cs-bars i { width: 11px; }
  .cs-day-n { font-size: .74rem; }
}
