/* =====================================================================
   Zoho pages — zoho.com-inspired design (content from quantra-iq.com)
   White canvas, light headlines with blue highlights, red uppercase CTAs,
   thin-bordered cards, soft pastel panels, divider-line FAQs.
   Source of truth: build/zoho-style.css (copied to site/assets/css/zoho.css by zoho_import.py)
   ===================================================================== */
.zq {
  --z-red: #e42527; --z-red-dark: #c41d1f; --z-blue: #0067ff; --z-blue-dark: #0052cc;
  --z-green: #089949; --z-yellow: #f9b21d; --z-ink: #0b0b0b; --z-text: #2b2b2b; --z-muted: #5f6368;
  --z-line: #e6e8eb; --z-soft: #f6f8fb; --z-blue-soft: #eef5ff; --z-green-soft: #eaf7ef; --z-red-soft: #fdeeee; --z-yellow-soft: #fff6e0;
  --z-radius: 14px;
  display: block; background: #fff; color: var(--z-text);
  font-family: "Inter", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px; line-height: 1.65; overflow-x: clip; -webkit-font-smoothing: antialiased;
}
[dir="rtl"] .zq { font-family: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif; line-height: 1.85; }
.zq *, .zq *::before, .zq *::after { box-sizing: border-box; }
.zq section { position: relative; }
.zq a { color: inherit; text-decoration: none; }
.zq p a:not(.zq-btn), .zq li a:not(.zq-btn) { color: var(--z-blue); }
.zq img { max-width: 100%; height: auto; }
.zq ul, .zq ol { list-style: none; margin: 0; padding: 0; }
.zq p { margin: 0; }
.zq p + p { margin-top: .75em; }

/* ---------------------------------------------------------------- type */
.zq h1, .zq h2, .zq h3, .zq h4, .zq h5 { font-family: inherit; color: var(--z-ink); margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
[dir="rtl"] .zq :is(h1, h2, h3, h4, h5) { letter-spacing: 0; line-height: 1.4; }
.zq h3 { font-size: 1.3rem; font-weight: 600; line-height: 1.3; }
.zq h4 { font-size: 1.1rem; font-weight: 600; line-height: 1.35; }
.zq .zq-hero-title { font-size: clamp(2.5rem, 5.6vw, 4.6rem); font-weight: 500; line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 22px; }
[dir="rtl"] .zq .zq-hero-title { font-weight: 600; line-height: 1.3; font-size: clamp(2.2rem, 4.8vw, 3.8rem); }
.zq .zq-section-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 16px; }
[dir="rtl"] .zq .zq-section-title { font-weight: 600; line-height: 1.4; }
.zq .zq-hl { color: var(--z-blue) !important; }
.zq .zq-light { color: inherit; }
.zq .zq-subtitle, .zq .zq-section-title + p, .zq .zq-hero-title + p { color: var(--z-muted); font-size: 1.15rem; }
.zq .zq-text-center { text-align: center; }
.zq .zq-text-center .zq-section-title + p, .zq .zq-text-center > p { margin-inline: auto; max-width: 760px; }
/* no decorative rule under titles */
.zq .zq-text-center > .zq-section-title::after, .zq .zq-section-title.zq-text-center::after {
  content: none;
}

/* ---------------------------------------------------------------- layout */
.zq .zq-container { width: min(100% - 48px, 1200px); margin-inline: auto; }
.zq .zq-section-padding { padding-block: clamp(72px, 9vw, 112px); }
.zq > section:nth-of-type(even):not(.zq-page-header) { background: var(--z-soft); }
.zq .zq-grid-2, .zq .zq-grid-3, .zq .zq-grid-4 { display: grid; gap: 24px; align-items: start; }
.zq .zq-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); align-items: center; }
.zq .zq-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.zq .zq-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.zq .zq-grid-3 > .zq-card, .zq .zq-grid-4 > .zq-card { height: 100%; }
.zq .zq-container + .zq-container { margin-top: 64px; }
.zq .zq-text-center + .zq-grid-2, .zq .zq-text-center + .zq-grid-3, .zq .zq-section-title + .zq-grid-3 { margin-top: 40px; }

/* ---------------------------------------------------------------- hero (pastel, light — like zoho.com product pages) */
.zq .zq-page-header {
  padding-top: calc(var(--header-h, 84px) + clamp(56px, 7vw, 96px)); padding-bottom: clamp(64px, 8vw, 104px); text-align: center;
  background:
    radial-gradient(60% 70% at 12% 20%, #ffe9d9 0%, transparent 60%),
    radial-gradient(55% 65% at 88% 15%, #e6e9ff 0%, transparent 60%),
    radial-gradient(60% 60% at 50% 100%, #e3f2ff 0%, transparent 65%),
    #fffdfb;
}
.zq .zq-page-header .zq-container { max-width: 980px; }
.zq .zq-page-header p { color: var(--z-text); font-size: 1.15rem; max-width: 760px; margin-inline: auto; }
.zq .zq-page-header .zq-callout { text-align: start; max-width: 720px; margin: 28px auto 0; }
.zq .zq-zoho-hero-badge-icon { width: 56px; height: 56px; display: inline-block; margin: 0 8px 14px; vertical-align: middle; }

/* ---------------------------------------------------------------- labels (zoho.com small caps tags) */
.zq .zq-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  padding: 6px 12px; border-radius: 4px; background: var(--z-blue-soft); color: var(--z-blue);
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4;
}
[dir="rtl"] .zq .zq-badge { letter-spacing: 0; font-size: .88rem; text-transform: none; }

/* ---------------------------------------------------------------- buttons (red, uppercase, square-ish) */
.zq .zq-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 12px 26px; border-radius: 4px; border: 1px solid var(--z-red); background: var(--z-red); color: #fff;
  font-size: .9rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; line-height: 1.2; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}
[dir="rtl"] .zq .zq-btn { letter-spacing: 0; font-size: .98rem; text-transform: none; }
.zq .zq-btn:hover { background: var(--z-red-dark); border-color: var(--z-red-dark); box-shadow: 0 8px 20px -10px rgba(228, 37, 39, .6); }
.zq .zq-btn-glass, .zq .zq-btn-outline { background: #fff; color: var(--z-ink); border-color: #cfd4dc; }
.zq .zq-btn-glass:hover, .zq .zq-btn-outline:hover { background: #fff; color: var(--z-blue); border-color: var(--z-blue); box-shadow: none; }
.zq .zq-btn-large { min-height: 54px; padding: 14px 32px; font-size: .95rem; }
.zq .zq-btn .zq-i { font-size: 1.05em; }
.zq .zq-btn:focus-visible, .zq summary:focus-visible, .zq a:focus-visible { outline: 2px solid var(--z-blue); outline-offset: 3px; }
.zq .zq-page-header .zq-btn, .zq .zq-glass-panel-dark .zq-btn { margin: 6px; }
.zq .zq-float-anim { animation: none; }

/* ---------------------------------------------------------------- cards */
.zq .zq-card {
  background: #fff; border: 1px solid var(--z-line); border-radius: var(--z-radius); padding: clamp(24px, 2.6vw, 34px);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.zq .zq-card:hover { border-color: #c9d6e8; box-shadow: 0 16px 36px -18px rgba(16, 24, 40, .22); }
.zq a.zq-card:hover { transform: translateY(-3px); }
.zq .zq-card h3, .zq .zq-card h4 { margin-bottom: 8px; }
.zq .zq-card p { color: var(--z-muted); font-size: .98rem; }
.zq .zq-card ul { margin-top: 12px; }
.zq .zq-card .zq-btn { min-height: 42px; padding: 10px 18px; font-size: .8rem; }
[dir="rtl"] .zq .zq-card .zq-btn { font-size: .92rem; }
.zq .zq-zoho-card-icon { width: 52px; height: 52px; }
.zq .zq-zoho-product-icon { width: 88px; height: 88px; margin-bottom: 16px; }
.zq .zq-zoho-inline-icon { width: 34px; height: 34px; flex: none; }
.zq .zq-zoho-mini-icon { width: 30px; height: 30px; }
.zq .zq-zoho-cat-icons, .zq .zq-zoho-icon-cluster { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.zq .zq-zoho-cluster-item { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--z-line); border-radius: 8px; background: #fff; font-size: .9rem; }

/* ---------------------------------------------------------------- icons (converted from emoji) */
.zq .zq-i { width: 1em; height: 1em; display: inline-block; vertical-align: -0.14em; flex: none; }
.zq .zq-icon-solo {
  display: inline-flex !important; align-items: center; justify-content: center; flex: none;
  width: 48px; height: 48px; border-radius: 12px; background: var(--z-blue-soft); color: var(--z-blue);
  font-size: 22px; line-height: 1; margin-bottom: 14px;
}
.zq .zq-grid-3 > :nth-child(4n+2) .zq-icon-solo, .zq .zq-grid-2 > :nth-child(4n+2) .zq-icon-solo { background: var(--z-green-soft); color: var(--z-green); }
.zq .zq-grid-3 > :nth-child(4n+3) .zq-icon-solo, .zq .zq-grid-2 > :nth-child(4n+3) .zq-icon-solo { background: var(--z-red-soft); color: var(--z-red); }
.zq .zq-grid-3 > :nth-child(4n+4) .zq-icon-solo, .zq .zq-grid-2 > :nth-child(4n+4) .zq-icon-solo { background: var(--z-yellow-soft); color: #c88400; }
/* inline / bullet icons */
.zq li .zq-icon-solo, .zq .zq-callout .zq-icon-solo, .zq .zq-tint .zq-icon-solo, .zq .zq-btn .zq-icon-solo,
.zq p .zq-icon-solo, .zq summary .zq-icon-solo, .zq .zq-zoho-connections .zq-icon-solo {
  width: auto; height: auto; background: none !important; border-radius: 0; font-size: 1.05em; margin: 0; color: var(--z-blue) !important; padding-top: .25em;
}
.zq li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; }
.zq .zq-i--check { color: var(--z-green); }
.zq .zq-i--x { color: var(--z-red); }
.zq li .zq-icon-solo .zq-i--check { color: var(--z-green); }
.zq li .zq-icon-solo .zq-i--x { color: var(--z-red); }
.zq .zq-btn .zq-i { color: currentColor !important; }

/* ---------------------------------------------------------------- callouts & tinted boxes */
.zq .zq-callout { border-inline-start: 3px solid var(--z-blue); background: #f3f8ff; padding: 18px 22px; border-start-end-radius: 10px; border-end-end-radius: 10px; color: var(--z-text); }
.zq .zq-callout p { color: var(--z-text); font-size: 1rem; }
.zq .zq-tint { background: var(--z-soft); border-radius: 12px; padding: 18px 22px; }
.zq > section:nth-of-type(even) .zq-tint { background: #fff; border: 1px solid var(--z-line); }
.zq .zq-zoho-connections { display: grid; gap: 10px; margin-top: 20px; }
.zq .zq-zoho-connections > div { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid var(--z-line); border-radius: 10px; background: #fff; }

/* ---------------------------------------------------------------- closing CTA panel (zoho.com "Take us for a spin" look) */
.zq .zq-glass-panel-dark {
  border-radius: 28px; padding: clamp(48px, 7vw, 88px) clamp(24px, 5vw, 64px); text-align: center;
  background:
    radial-gradient(70% 90% at 10% 0%, #e7e5ff 0%, transparent 60%),
    radial-gradient(60% 80% at 100% 100%, #dff0ff 0%, transparent 60%),
    linear-gradient(135deg, #f7f5ff, #eef6ff);
  border: 1px solid #e3e6f5;
}
.zq .zq-glass-panel-dark .zq-section-title { color: var(--z-blue); font-size: clamp(2rem, 4.4vw, 3.4rem); }
.zq .zq-glass-panel-dark .zq-section-title::after { display: none; }
.zq .zq-glass-panel-dark p { color: var(--z-text); max-width: 680px; margin-inline: auto; }
.zq .zq-glass-panel-dark .zq-badge { background: #fff; }

/* ---------------------------------------------------------------- FAQ (zoho.com: simple divider list) */
.zq .zq-zoho-faq-list { max-width: 880px; margin: 32px auto 0; border-top: 1px solid var(--z-line); }
.zq .zq-zoho-faq-item { border-bottom: 1px solid var(--z-line); }
.zq .zq-zoho-faq-item summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; cursor: pointer; font-weight: 600; font-size: 1.05rem; color: var(--z-ink); text-align: start;
}
.zq .zq-zoho-faq-item summary::-webkit-details-marker { display: none; }
.zq .zq-zoho-faq-item summary:hover { color: var(--z-blue); }
.zq .zq-faq-icon { font-size: 1.5rem; font-weight: 300; line-height: 1; color: var(--z-blue); transition: transform .25s ease; flex: none; }
.zq .zq-zoho-faq-item[open] .zq-faq-icon { transform: rotate(45deg); }
.zq .zq-faq-answer p { color: var(--z-muted); padding: 0 0 22px; font-size: 1rem; }

/* ---------------------------------------------------------------- "show more applications" */
.zq #more-apps { max-height: 0; overflow: hidden; transition: max-height .6s ease; }
.zq #more-apps.zq-show { max-height: none; padding-block: 56px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 960px) {
  .zq .zq-grid-2, .zq .zq-grid-3, .zq .zq-grid-4 { grid-template-columns: 1fr !important; }
  .zq [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .zq [style*="order: -1"] { order: 0 !important; }
}
@media (min-width: 961px) and (max-width: 1140px) {
  .zq .zq-grid-3, .zq .zq-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .zq { font-size: 16px; }
  .zq .zq-btn-large { width: 100%; }
  .zq .zq-page-header .zq-btn:not(.zq-btn-large) { min-height: 40px; padding: 8px 14px; font-size: .78rem; margin: 4px; }
  .zq .zq-zoho-faq-item summary { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .zq *, .zq *::before, .zq *::after { animation: none !important; transition: none !important; }
}
