/* Home hero: Zoho services and ZMOS share one spot and flip between each other (js/hero-flip.js). Loaded by index.html only. */
.hero__flip { display: grid; }
.hero__face { grid-area: 1 / 1; align-self: start; }
.cap[data-flip] { display: grid; }
.cap[data-flip] > a { grid-area: 1 / 1; }
[data-flip] > [data-face]:not(.is-active) { visibility: hidden; }
.hero__flip, .cap[data-flip] { backface-visibility: hidden; }

.lockup__zword { display: block; height: 3rem; font-family: var(--font-display); font-weight: 700; font-size: 2.9rem; line-height: 3rem; letter-spacing: 0.02em; color: var(--ink); white-space: nowrap; }
.lockup__zoho { width: auto; height: 40px; flex: none; }
.lockup__full--plain { text-align: left; text-align-last: auto; letter-spacing: 0.01em; }
.cap img.zi { background: #fff; padding: 0.22rem; box-shadow: inset 0 0 0 1px var(--hairline); }

/* Zoho | ZMOS switch: the active side carries a ring that fills while it is on screen; when the ring closes the
   hero flips. A click picks a side and stops the automatic flipping. */
@property --sw-p { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.hero__switch { display: inline-flex; width: max-content; white-space: nowrap; gap: 2px; padding: 3px; margin: 0 auto 0.9rem; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--hairline); box-shadow: 0 8px 24px -12px rgba(13, 37, 61, 0.25), 0 1px 2px rgba(13, 37, 61, 0.06); }
.sw { position: relative; display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.28rem 0.7rem; border-radius: var(--r-pill); font-size: 0.78rem; font-weight: 600; color: var(--muted); transition: background 300ms ease, color 300ms ease, box-shadow 300ms ease; }
.sw img { height: 12px; width: auto; flex: none; }
.sw:hover { color: var(--ink); }
.sw.is-active { background: var(--primary-soft); color: var(--ink); box-shadow: inset 0 0 0 1px #cfe0f3; }
.sw::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; opacity: 0; pointer-events: none;
  background: conic-gradient(from 0deg, rgba(34, 109, 180, 0.3) var(--sw-p), transparent 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); transition: opacity 300ms ease; }
.hero__switch.is-auto .sw.is-active::after { opacity: 1; animation: sw-ring 6.5s linear forwards; }
.hero.is-paused .hero__switch .sw::after { animation-play-state: paused; }
@keyframes sw-ring { from { --sw-p: 0deg; } to { --sw-p: 360deg; } }
@media (min-width: 900px) {
  .hero__inner > .hero__switch { position: absolute; left: auto; right: 1.25rem; top: 21%; translate: 0 -50%; margin: 0; z-index: 2; }
}
@media (min-width: 1200px) {
  .hero__inner > .hero__switch { right: 3.5%; top: 4.5%; }
}
@media (max-width: 599px) {
  .lockup--zoho .lockup__zoho { height: 30px; }
  .lockup--zoho .lockup__zword { font-size: 2.2rem; height: 2.4rem; line-height: 2.4rem; }
  .lockup--zoho .lockup__full { white-space: normal; font-size: 0.62rem; }
}
.hero__actions .button svg { width: 1.1em; height: 1.1em; }
.lockup__zoho--full { height: 56px; width: auto; }
.lockup__zword--sub { font-weight: 600; letter-spacing: -0.02em; }
@media (max-width: 599px) { .lockup--zoho .lockup__zoho--full { height: 42px; } }

/* the AI-powered Zoho chip: a "New" tag and a soft glow while the Zoho side is showing */
.cap--2 > a { position: static; }
@media (max-width: 899px) { .cap--2 { position: relative; } }
.new-tag { position: absolute; top: -0.55rem; right: 0.9rem; padding: 0.1rem 0.45rem; border-radius: var(--r-pill); background: linear-gradient(135deg, #226db4, #4f8fd6); color: #fff; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.4; box-shadow: 0 4px 10px -4px rgba(34, 109, 180, 0.6); pointer-events: none; }
.hero[data-show="zoho"] .cap--2 { border-color: #b9d3ee; box-shadow: 0 0 0 0 rgba(34, 109, 180, 0.22), 0 8px 24px -12px rgba(13, 37, 61, 0.25); }
@media (prefers-reduced-motion: no-preference) {
  @media (min-width: 900px) {.js .hero[data-show="zoho"] .caps .cap--2 { animation: cap-in 650ms var(--ease-expo) both, cap-float 7s ease-in-out infinite, cap-glow 2.8s ease-in-out infinite; animation-delay: calc(450ms + var(--i) * 110ms), calc(1.2s + var(--i) * -1.1s), 1.2s; } }
  @media (max-width: 899px) { .js .hero[data-show="zoho"] .cap--2 { animation: cap-in-row 500ms var(--ease-out) forwards, cap-glow 2.8s ease-in-out infinite; animation-delay: calc(300ms + var(--i) * 80ms), 1.2s; } }
  .new-tag { animation: tag-shine 2.8s ease-in-out 1.2s infinite; }
}
@keyframes cap-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 109, 180, 0.0), 0 8px 24px -12px rgba(13, 37, 61, 0.25); }
  50% { box-shadow: 0 0 0 5px rgba(34, 109, 180, 0.12), 0 10px 28px -12px rgba(34, 109, 180, 0.45); }
}
@keyframes tag-shine { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.15); } }

/* The same switch, docked in the header once the hero's switch scrolls out of view (built by js/hero-flip.js).
   A click shows that side and brings the visitor back to the top of the page. */
.nav-switch { flex: none; display: inline-flex; align-items: center; gap: 2px; padding: 0; margin-left: 0; max-width: 0; opacity: 0; visibility: hidden; overflow: hidden; white-space: nowrap; border-radius: var(--r-pill); background: #fff; border: 0 solid var(--hairline); box-shadow: 0 6px 18px -10px rgba(13, 37, 61, 0.3); translate: 0 -4px;
  transition: max-width 450ms var(--ease-out), opacity 300ms ease, translate 450ms var(--ease-out), padding 450ms var(--ease-out), margin 450ms var(--ease-out), visibility 0s linear 450ms; }
.nav-switch.is-docked { max-width: 16rem; opacity: 1; visibility: visible; padding: 3px; margin-left: 0.6rem; border-width: 1px; translate: 0 0; transition-delay: 0s; }
.nsw { flex: none; display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.65rem; border-radius: var(--r-pill); font-size: 0.78rem; font-weight: 600; color: var(--muted); transition: background 300ms ease, color 300ms ease; }
.nsw img { height: 14px; width: auto; flex: none; }
.nsw:hover { color: var(--ink); }
.nsw.is-active { background: var(--primary-soft); color: var(--ink); box-shadow: inset 0 0 0 1px #cfe0f3; }
@media (min-width: 1280px) and (max-width: 1599px) { .nsw span { display: none; } .nsw { padding: 0.4rem 0.55rem; } .nav-switch.is-docked { margin-left: 0.4rem; } }
/* make room in the header for the docked switch on smaller desktops */
@media (min-width: 1280px) and (max-width: 1365px) {
  .navbar.has-dock .navbar-link { padding-inline: 0.5rem; }
  .navbar.has-dock .site-head { gap: 0.75rem; }
  .navbar.has-dock .navbar-cta { margin-left: 0.25rem; }
}
@media (max-width: 479px) { .nsw span { display: none; } .nsw { padding: 0.4rem 0.55rem; } }
