/* Integration: Telephony/PBX - page-specific design.
   A deep teal (#0E7C7B) keeps this distinct from the three blues and two greens already used
   elsewhere on the integration hub. The mechanic is an incoming-call simulator: pick a scenario,
   watch a ring beat, then see it resolve into a matched-customer card, a no-match state, a missed
   -call callback, or a recorded-call disclosure badge - a live event card, not a diagram,
   slider, switch or scan list.

   All classes scoped to .tel-page, prefixed tel-. */

.tel-page {
  --tel: #0E7C7B;
  --tel-d: #0a5b5a;
  --tel-l: #e8f4f3;
  --tel-ink: #0c2726;
}

/* ---------------------------------------------------------------------- hero -- */
.tel-hero {
  padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px);
  background: linear-gradient(100deg, var(--tel-l) 0%, var(--white) 58%);
  border-block-end: 1px solid color-mix(in srgb, var(--tel) 20%, var(--line));
}
.tel-hero-in {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(24px, 4vw, 56px); align-items: center;
}
.tel-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; background: var(--white);
  border: 1px solid color-mix(in srgb, var(--tel) 36%, var(--line));
  border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--tel-d);
  margin-block-end: 18px;
}
.tel-hero h1 { font-size: clamp(1.85rem, 4.1vw, 2.95rem); line-height: 1.16; margin: 0 0 14px; color: var(--tel-ink); }
.tel-hero .lede { max-width: 62ch; margin-block-end: 26px; }
.tel-acts { display: flex; flex-wrap: wrap; gap: 12px; }

/* a ringing phone handset, echoing the real call simulator below */
.tel-hero-vis { display: grid; place-items: center; }
.tel-hv-phone {
  position: relative; display: grid; place-items: center;
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--tel-d); color: var(--white);
  box-shadow: 0 20px 46px -26px rgba(10, 60, 60, .5);
}
.tel-hv-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--tel-d) 55%, transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .tel-hv-ring { animation: tel-hv-out 2.4s ease-out infinite; }
  .tel-hv-ring:nth-child(2) { animation-delay: .8s; }
}
@keyframes tel-hv-out {
  0% { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* ------------------------------------------------------------------------ calls -- */
.tel-calls { padding: clamp(48px, 7vw, 84px) 0; }
.tel-calls h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); margin: 0 0 12px; }
.tel-calls .lede { max-width: 82ch; }

.tel-sim {
  margin-block-start: 28px;
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(18px, 3vw, 28px);
  box-shadow: 0 20px 50px -40px rgba(10, 60, 60, .3);
}
.tel-pick { display: flex; flex-wrap: wrap; gap: 10px; margin-block-end: 22px; }
.tel-pick button {
  font: inherit; font-weight: 700; font-size: .93rem; cursor: pointer;
  padding: 10px 18px; border-radius: 999px;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--line);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.tel-pick button:hover { border-color: color-mix(in srgb, var(--tel) 45%, var(--line)); }
.tel-pick button[aria-pressed="true"] {
  background: var(--tel-d); border-color: var(--tel-d); color: var(--white);
}

.tel-call-card { background: var(--tel-l); border-radius: 14px; padding: clamp(18px, 3vw, 26px); min-height: 150px; }
.tel-cc-ring {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; color: var(--tel-ink); font-size: 1.02rem;
}
.tel-cc-ring.is-hidden { display: none; }
.tel-cc-wave { display: inline-flex; align-items: center; gap: 3px; height: 20px; }
.tel-cc-wave i { width: 4px; border-radius: 2px; background: var(--tel-d); display: block; height: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .tel-cc-wave i { animation: tel-wave 1s ease-in-out infinite; }
  .tel-cc-wave i:nth-child(2) { animation-delay: .1s; }
  .tel-cc-wave i:nth-child(3) { animation-delay: .2s; }
  .tel-cc-wave i:nth-child(4) { animation-delay: .3s; }
}
@keyframes tel-wave { 0%, 100% { height: 6px; } 50% { height: 20px; } }

.tel-res { display: grid; gap: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .tel-res { animation: tel-res-in .35s ease-out both; }
}
@keyframes tel-res-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.tel-res-head { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--tel-ink); font-size: 1.05rem; }
.tel-res-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--tel-d); flex: none; }
.tel-res-none .tel-res-dot { background: #9aa5a4; }
.tel-res-missed .tel-res-dot { background: var(--zoho-red, #e42528); }
.tel-res-name { font-weight: 700; color: var(--ink); }
.tel-res-sub { color: var(--muted); font-size: .93rem; }
.tel-res-badge {
  margin-block-start: 4px; display: inline-block; width: fit-content;
  background: color-mix(in srgb, var(--tel) 14%, var(--white));
  border: 1px solid color-mix(in srgb, var(--tel) 34%, var(--line));
  color: var(--tel-d); font-weight: 600; font-size: .85rem;
  padding: 7px 12px; border-radius: 8px;
}
.tel-note { margin-block-start: 16px; color: var(--muted); font-size: .93rem; max-width: 84ch; }

/* ------------------------------------------------------------------------ need -- */
.tel-need {
  padding: clamp(40px, 6vw, 64px) 0;
  background: var(--tel-l);
  border-block: 1px solid color-mix(in srgb, var(--tel) 18%, var(--line));
}
.tel-need h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); margin: 0 0 12px; }
.tel-need .lede { max-width: 82ch; margin: 0; }

/* -------------------------------------------------------------------- scenarios -- */
.tel-scen { padding: clamp(48px, 7vw, 84px) 0; }
.tel-scen h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0 0 22px; }
.tel-scen-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.tel-sc {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
}
.tel-sc b { width: 10px; height: 10px; margin-top: 4px; border-radius: 3px; background: var(--telz, var(--tel-d)); }
.tel-sc:nth-child(4n+1) b { --telz: var(--zoho-red); }
.tel-sc:nth-child(4n+2) b { --telz: var(--zoho-green); }
.tel-sc:nth-child(4n+3) b { --telz: var(--zoho-blue); }
.tel-sc:nth-child(4n+4) b { --telz: var(--zoho-yellow); }
.tel-sc p { margin: 0; color: var(--ink); font-size: .93rem; }

/* ----------------------------------------------------------------------- move -- */
.tel-move { padding: clamp(48px, 7vw, 84px) 0; }
.tel-move h2 { font-size: 1.35rem; margin: 0 0 10px; }
.tel-move h3 { font-size: 1.08rem; }

/* ------------------------------------------------------------------------- do -- */
.tel-do {
  padding: clamp(48px, 7vw, 84px) 0;
  background: var(--tel-l);
  border-block: 1px solid color-mix(in srgb, var(--tel) 18%, var(--line));
}
.tel-do h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0 0 24px; }
.tel-do-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 13px; }
.tel-do-steps > div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; }
.tel-do-steps b { display: block; margin-block-end: 6px; font-size: 1.02rem; color: var(--tel-d); }
.tel-do-steps p { margin: 0; color: var(--muted); font-size: .95rem; }

/* -------------------------------------------------------------------- decide -- */
.tel-decide { padding: clamp(40px, 6vw, 64px) 0 0; }
.tel-decide h3 { font-size: 1.3rem; margin: 0 0 16px; }

/* ------------------------------------------------------------------------- faq -- */
.tel-faq { padding: clamp(40px, 6vw, 64px) 0 clamp(24px, 4vw, 40px); }
.tel-faq h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0 0 20px; }

/* ----------------------------------------------------------------------- close -- */
.tel-close { padding: 0 0 clamp(48px, 7vw, 84px); }
.tel-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(120deg, var(--tel-d) 0%, #062120 100%);
}
.tel-close-box h2 { color: var(--white); margin: 0 0 8px; font-size: clamp(1.25rem, 2.7vw, 1.85rem); }
.tel-close-box .lede { color: color-mix(in srgb, var(--white) 86%, transparent); margin: 0; max-width: 62ch; }

/* --------------------------------------------------------------------- narrow -- */
@media (max-width: 900px) {
  .tel-hero-in { grid-template-columns: 1fr; }
}
