/* Zoho Cliq - page-specific design.
   Blue is the product; the icon also carries red, and red is used here for exactly one thing:
   the message in the feed that is actually a decision. Everything else in the channel is
   deliberately low-contrast, because the page's claim is that the important message looks
   identical to the noise around it until someone marks it.

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

.cq-page {
  --cq: #226db4;
  --cq-d: #17518c;
  --cq-l: #e9f1f9;
  --cq-ink: #101c29;
}

/* ---------------------------------------------------------------------- hero -- */
.cq-hero {
  padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px);
  background:
    radial-gradient(80% 100% at 90% 0%, color-mix(in srgb, var(--zoho-red) 7%, transparent), transparent 60%),
    linear-gradient(180deg, var(--cq-l), var(--white));
  border-block-end: 1px solid color-mix(in srgb, var(--cq) 16%, var(--line));
}
.cq-hero-in {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(24px, 4vw, 56px); align-items: center;
}
.cq-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px; background: var(--white);
  border: 1px solid color-mix(in srgb, var(--cq) 28%, var(--line));
  border-radius: 999px; font-weight: 700; color: var(--cq-d); font-size: .9rem;
  margin-block-end: 18px;
}
.cq-hero h1 { font-size: clamp(1.75rem, 3.9vw, 2.85rem); line-height: 1.17; margin: 0 0 14px; color: var(--cq-ink); }
.cq-hero .lede { max-width: 62ch; margin-block-end: 26px; }
.cq-acts { display: flex; flex-wrap: wrap; gap: 12px; }

/* a chat window where one bubble is the decision and it keeps drifting up */
.cq-hero-vis { display: grid; place-items: center; }
.cq-win {
  width: 100%; max-width: 300px;
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px; display: grid; gap: 9px;
  box-shadow: 0 20px 46px -30px rgba(10, 30, 55, .5);
  overflow: hidden;
}
.cq-w-head { height: 9px; width: 40%; border-radius: 5px; background: color-mix(in srgb, var(--cq) 30%, #e2e8ee); margin-block-end: 6px; }
.cq-m { height: 22px; border-radius: 10px; display: block; }
.cq-m-l { width: 72%; background: #eef2f5; justify-self: start; }
.cq-m-r { width: 58%; background: var(--cq-l); justify-self: end; }
.cq-m-key { background: color-mix(in srgb, var(--zoho-red) 16%, var(--white)); border: 1px solid color-mix(in srgb, var(--zoho-red) 36%, var(--line)); }

@media (prefers-reduced-motion: no-preference) {
  .cq-win .cq-m { animation: cq-rise 7s ease-in-out infinite; }
  .cq-win .cq-m:nth-child(3) { animation-delay: .2s }
  .cq-win .cq-m:nth-child(4) { animation-delay: .4s }
  .cq-win .cq-m:nth-child(5) { animation-delay: .6s }
  .cq-win .cq-m:nth-child(6) { animation-delay: .8s }
  .cq-win .cq-m:nth-child(7) { animation-delay: 1s }
}
@keyframes cq-rise {
  0%, 100% { transform: translateY(0); opacity: 1 }
  50%      { transform: translateY(-6px); opacity: .75 }
}

/* -------------------------------------------------------------- buried feed -- */
.cq-bury { padding: clamp(48px, 7vw, 84px) 0; }
.cq-bury h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0 0 12px; }
.cq-bury .lede { max-width: 78ch; }

.cq-feed {
  margin-block-start: 28px;
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(16px, 3vw, 24px);
  box-shadow: 0 20px 50px -40px rgba(10, 30, 55, .55);
}
.cq-feed-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px; flex-wrap: wrap;
  padding-block-end: 14px; margin-block-end: 14px;
  border-block-end: 1px solid var(--line);
}
.cq-ch { margin: 0; color: var(--muted); font-weight: 600; }
.cq-ch b { color: var(--cq-d); }
.cq-replay {
  font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer;
  color: var(--cq-d); background: var(--white);
  border: 1px solid color-mix(in srgb, var(--cq) 38%, var(--line));
  border-radius: 9px; padding: 8px 15px;
}
.cq-replay:hover { background: var(--cq-l); }

.cq-msgs {
  list-style: none; margin: 0; padding: 4px; display: grid; gap: 7px;
  height: 300px; overflow-y: auto;
  background: #fafbfc; border: 1px solid var(--line); border-radius: 12px;
  scroll-behavior: smooth;
}
.cq-msg {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 10px; align-items: baseline;
  padding: 9px 11px; border-radius: 9px; background: var(--white);
  border: 1px solid transparent;
}
@media (prefers-reduced-motion: no-preference) {
  .cq-msg { animation: cq-in .3s ease-out both; }
}
@keyframes cq-in { from { opacity: 0; transform: translateY(-4px) } to { opacity: 1; transform: none } }
.cq-who { font-size: .82rem; font-weight: 700; color: var(--muted); }
.cq-txt { font-size: .93rem; color: var(--ink); }
.cq-msg.is-key {
  background: color-mix(in srgb, var(--zoho-red) 5%, var(--white));
  border-color: color-mix(in srgb, var(--zoho-red) 30%, var(--line));
}
.cq-badge {
  font-size: .72rem; font-weight: 800; white-space: nowrap;
  color: var(--white); background: #a5191b;
  padding: 3px 8px; border-radius: 5px;
}
.cq-lift {
  margin-block-start: 14px;
  font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer;
  color: var(--white); background: var(--cq-d); border: 1px solid var(--cq-d);
  border-radius: 10px; padding: 12px 20px;
}
.cq-lift:hover { background: var(--cq); }
.cq-out {
  margin-block-start: 14px;
  background: color-mix(in srgb, var(--zoho-green) 7%, var(--white));
  border: 1px solid color-mix(in srgb, var(--zoho-green) 30%, var(--line));
  border-radius: 12px; padding: 16px 18px;
}
.cq-out-t { margin: 0 0 5px; font-weight: 800; color: #0a6b39; }
.cq-out-b { margin: 0; color: var(--muted); font-size: .95rem; }
.cq-note { margin-block-start: 18px; color: var(--muted); font-size: .93rem; max-width: 82ch; }

/* ------------------------------------------------------------------ commands -- */
.cq-work {
  padding: clamp(48px, 7vw, 84px) 0;
  background: var(--cq-l);
  border-block: 1px solid color-mix(in srgb, var(--cq) 14%, var(--line));
}
.cq-work h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0 0 12px; }
.cq-cmds {
  margin-block-start: 26px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px;
}
.cq-cmd {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 14px; padding: 20px;
}
.cq-cmd code {
  display: inline-block; margin-block-end: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88rem; font-weight: 700;
  color: var(--cq-d); background: var(--cq-l);
  border: 1px solid color-mix(in srgb, var(--cq) 24%, var(--line));
  padding: 4px 10px; border-radius: 6px;
}
.cq-cmd h3 { margin: 0 0 7px; font-size: 1.04rem; }
.cq-cmd p { margin: 0; color: var(--muted); font-size: .95rem; }
.cq-cmds-note { margin-block-start: 18px; color: var(--muted); font-size: .94rem; max-width: 82ch; }

/* ---------------------------------------------------------------------- hours -- */
.cq-hours { padding: clamp(48px, 7vw, 84px) 0; }
.cq-hours-in {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(22px, 4vw, 44px); align-items: start;
}
.cq-hours h2 { font-size: clamp(1.4rem, 2.9vw, 2.05rem); margin: 0 0 12px; }
.cq-hours .lede { max-width: 66ch; }
.cq-hrs { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 11px; }
.cq-hrs li {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px; color: var(--muted);
}
.cq-hrs b { color: var(--cq-d); }
.cq-hours-side {
  background: var(--cq-l);
  border: 1px solid color-mix(in srgb, var(--cq) 24%, var(--line));
  border-radius: 16px; padding: 22px;
}
.cq-hours-side p { margin: 0 0 16px; color: var(--cq-ink); }
.cq-hours-side strong { display: block; margin-block-end: 6px; }

/* --------------------------------------------------------------- three routes -- */
.cq-vs {
  padding: clamp(48px, 7vw, 84px) 0;
  background: #0d1a24;
}
.cq-vs h2 { color: var(--white); font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0 0 12px; }
.cq-vs .lede { color: color-mix(in srgb, var(--white) 76%, transparent); max-width: 74ch; }
.cq-three {
  margin-block-start: 26px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px;
}
.cq-t {
  border-radius: 15px; padding: 22px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .13);
}
.cq-t h3 { margin: 0 0 9px; font-size: 1.1rem; }
.cq-t p { margin: 0; color: color-mix(in srgb, var(--white) 74%, transparent); font-size: .96rem; }
.cq-t-chat h3 { color: color-mix(in srgb, var(--cq) 55%, var(--white)); }
.cq-t-mail h3 { color: color-mix(in srgb, var(--zoho-yellow) 78%, var(--white)); }
.cq-t-sys  h3 { color: color-mix(in srgb, var(--zoho-green) 60%, var(--white)); }

/* ---------------------------------------------------------------------- build -- */
.cq-build { padding: clamp(48px, 7vw, 84px) 0; }
.cq-build h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0 0 24px; }
.cq-bgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 13px; }
.cq-bstep { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.cq-bstep b { display: block; margin-block-end: 6px; font-size: 1.02rem; color: var(--cq-d); }
.cq-bstep p { margin: 0; color: var(--muted); font-size: .95rem; }
.cq-build-cta {
  margin-block-start: 22px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  background: var(--cq-l);
  border: 1px solid color-mix(in srgb, var(--cq) 22%, var(--line));
  border-radius: 14px; padding: 20px 22px;
}
.cq-build-cta p { margin: 0; color: var(--cq-ink); max-width: 66ch; }

/* ------------------------------------------------------------------------ faq -- */
.cq-faq { padding: 0 0 clamp(48px, 7vw, 84px); }
.cq-faq h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0 0 20px; }

/* ---------------------------------------------------------------------- close -- */
.cq-close { padding: 0 0 clamp(48px, 7vw, 84px); }
.cq-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(140deg, var(--cq-d), #0b2d4a);
}
.cq-close-box h2 { color: var(--white); margin: 0 0 8px; font-size: clamp(1.4rem, 3vw, 2rem); }
.cq-close-box .lede { color: color-mix(in srgb, var(--white) 86%, transparent); margin: 0; max-width: 60ch; }

/* --------------------------------------------------------------------- narrow -- */
@media (max-width: 900px) {
  .cq-hero-in, .cq-hours-in { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .cq-msg { grid-template-columns: 56px minmax(0, 1fr); }
  .cq-badge { grid-column: 1 / -1; justify-self: start; margin-block-start: 4px; }
  .cq-msgs { height: 340px; }
}
