/* CSP4TECH — refreshed design system. Zero build tooling: plain CSS, custom properties. */

:root {
  /* Teal + orange, pulled from the CSP4TECH logo mark. --color-primary is
     deepened slightly from the mark's brightest teal (#00A89C) so white
     text on it clears WCAG AA contrast (4.5:1) — the brighter hue would
     only pass ~3:1. */
  --color-primary: #008077;      /* teal — from the CSP4TECH logo mark */
  --color-primary-dark: #005C56;
  --color-primary-light: #EFFBFA;
  --color-accent: #F2661E;       /* orange — from the CSP4TECH logo mark */
  --color-accent-dark: #C94B0F;
  --color-ink: #1E1B2E;
  --color-ink-soft: #4B4A5E;
  --color-border: #E4E2F1;
  --color-surface: #FFFFFF;
  --color-surface-alt: #F7F7FC;
  --color-success: #059669;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(30,27,46,0.06), 0 1px 1px rgba(30,27,46,0.04);
  --shadow-md: 0 8px 24px rgba(30,27,46,0.08);
  --shadow-lg: 0 20px 45px rgba(30,27,46,0.12);
  --max-width: 1200px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  /* Headings use the same Inter family as body text, but served as a
     variable font with an optical-size axis: at large sizes Inter
     switches to its Display cut, which is tighter and more refined
     than the text cut. A separate display family was tried and
     dropped - it could not be rendered for review here, and shipping
     a typeface nobody had actually looked at was not worth the risk. */
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  line-height: 1.14; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.025em;
}
h3, h4 { font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0 0 1em; color: var(--color-ink-soft); }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.95rem;
  cursor: pointer; border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn-primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--color-primary-dark); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; border-color: var(--color-border); color: var(--color-ink); }
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-accent { background: var(--color-accent); color: #1E1B2E; }
.btn-accent:hover { background: var(--color-accent-dark); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--color-border);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(30,27,46,0.1); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--color-primary-dark); }
/* logo-mark.png is 241x268 (taller than wide). Forcing a square box
   squashed the brand mark ~11% on every page. */
.brand .brand-mark { height: 34px; width: auto; }
.primary-nav { display: none; }
.primary-nav ul { display: flex; align-items: center; gap: 4px; }
.primary-nav > ul > li { position: relative; }
.nav-link { display: flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.92rem; color: var(--color-ink); }
.nav-link:hover, .nav-link[aria-expanded="true"] { background: var(--color-primary-light); color: var(--color-primary-dark); }
.nav-link svg { transition: transform .18s ease; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: inline-flex; background: none; border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 8px 10px; cursor: pointer; }
.menu-toggle svg { display: block; }

/* Mega menu */
.mega-menu {
  position: absolute; top: calc(100% + 10px); left: 50%;
  width: min(880px, 92vw); background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 28px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.nav-item.has-mega:hover .mega-menu,
.nav-item.has-mega:focus-within .mega-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear 0s;
}
.nav-item.has-mega:hover .nav-link svg,
.nav-item.has-mega:focus-within .nav-link svg { transform: rotate(180deg); }
.mega-col h4, .mega-col-title { font-size: 0.72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--color-accent-dark); margin-bottom: 10px; }
.mega-col a { display: block; padding: 6px 0; font-size: 0.9rem; color: var(--color-ink-soft); }
.mega-col a:hover { color: var(--color-primary); }
.mega-cta { grid-column: 1 / -1; border-top: 1px solid var(--color-border); margin-top: 6px; padding-top: 16px; display: flex; justify-content: space-between; align-items: center; }

/* Mobile nav */
.mobile-nav {
  position: fixed; inset: 72px 0 0 0; background: #fff; z-index: 90; overflow-y: auto; padding: 16px 20px 40px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-12px);
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
.mobile-nav.open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0);
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear 0s;
}
.mobile-nav details { border-bottom: 1px solid var(--color-border); padding: 10px 0; }
.mobile-nav summary { font-weight: 700; padding: 8px 0; cursor: pointer; display: flex; justify-content: space-between; }
.mobile-nav a { display: block; padding: 8px 4px; color: var(--color-ink-soft); font-size: 0.95rem; }
.mobile-nav > a { font-weight: 700; padding: 14px 0; border-bottom: 1px solid var(--color-border); color: var(--color-ink); }

@media (min-width: 960px) {
  .primary-nav { display: block; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 92px 0 84px; background: linear-gradient(180deg, var(--color-primary-light) 0%, #fff 100%);
}
/* Soft animated color blobs drifting behind the hero content — pure CSS,
   no images. Kept subtle (low opacity, heavy blur) so it reads as depth,
   not decoration. */
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  border-radius: 50%; filter: blur(70px); opacity: 0.32;
  animation: hero-drift 20s ease-in-out infinite alternate;
}
.hero::before {
  width: 420px; height: 420px; background: var(--color-primary);
  top: -140px; left: -100px;
}
.hero::after {
  width: 380px; height: 380px; background: var(--color-accent);
  bottom: -160px; right: -80px;
  animation-duration: 24s; animation-delay: -6s;
}
@keyframes hero-drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(36px, -24px) scale(1.1); }
  100% { transform: translate(-24px, 18px) scale(0.94); }
}
.hero > .container { position: relative; z-index: 1; }
.hero-inner { max-width: 780px; margin: 0 auto; text-align: center; animation: hero-enter .7s cubic-bezier(.2,.7,.3,1) both; }
@keyframes hero-enter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--color-border); padding: 6px 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; color: var(--color-primary-dark); box-shadow: var(--shadow-sm); margin-bottom: 22px; }
.partner-badge { height: 44px; width: auto; margin: 0 auto 24px; display: block; filter: drop-shadow(0 2px 6px rgba(30,27,46,0.12)); }
.footer-badge { height: 34px; width: auto; opacity: 0.9; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 3.9rem); color: var(--color-ink); margin-bottom: 0.45em; }
.hero h1 em { font-style: normal; color: var(--color-primary); }
.hero p.lead { font-size: 1.15rem; line-height: 1.65; max-width: 640px; margin: 0 auto 28px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }

/* Two-column hero variant with a side illustration. */
.hero-inner.has-media {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
  max-width: 1140px; text-align: left;
}
.hero-inner.has-media .partner-badge { margin: 0 0 24px; }
.hero-inner.has-media .eyebrow { margin-bottom: 18px; }
.hero-inner.has-media p.lead { margin: 0 0 28px; max-width: 560px; }
.hero-inner.has-media .hero-actions { justify-content: flex-start; }
.hero-media { display: flex; align-items: center; justify-content: center; animation: hero-enter-media .8s cubic-bezier(.2,.7,.3,1) .12s both; }
.hero-media img { width: 100%; max-width: 440px; height: auto; display: block; }

/* ---------- Hero visual (decorative, CSS-drawn) ----------
   A stylised app window with floating Zoho app icons. Deliberately abstract:
   no real data, no real screenshot, nothing claiming to be a live system.
   Built in CSS rather than as an image so it is crisp on any display and
   adds zero network requests. Every animation here is transform/opacity
   only, and all of it stops under prefers-reduced-motion (see below). */
.hv-window {
  position: relative; z-index: 1; background: #fff;
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
  animation: hv-float 7s ease-in-out infinite alternate;
}
.hv-titlebar {
  display: flex; gap: 6px; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--color-border);
  background: linear-gradient(180deg, #fcfcff 0%, #f7f7fc 100%);
}
.hv-titlebar span { width: 9px; height: 9px; border-radius: 50%; background: #dcdae9; }
.hv-titlebar span:first-child { background: #f2b8a2; }
.hv-titlebar span:nth-child(2) { background: #f4d9a6; }
.hv-titlebar span:nth-child(3) { background: #b5ded9; }

@keyframes hv-float {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

/* ---------- Soft gradient sections + floating image cards ---------- */
.section-alt {
  background: linear-gradient(180deg, #fff 0%, var(--color-surface-alt) 18%, var(--color-surface-alt) 82%, #fff 100%);
}
/* Lift page imagery onto a soft card, the way product sites present
   screenshots — applies to the illustration heroes on the inner pages. */
.hero-media img {
  border-radius: var(--radius-lg);
}

@keyframes hero-enter-media {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}
@media (max-width: 860px) {
  .hero-inner.has-media {
    grid-template-columns: 1fr; text-align: center; max-width: 560px;
  }
  .hero-inner.has-media .partner-badge { margin: 0 auto 24px; }
  .hero-inner.has-media p.lead { margin: 0 auto 28px; }
  .hero-inner.has-media .hero-actions,
  /* The headline and the call-to-action come first on a phone. The old
     rule floated the hero image above them, which pushed the button
     below the fold now that the visual is a full app window. */
  .hero-media { order: 0; margin-top: 32px; }
  .hero-media img { max-width: 260px; }
}

/* ---------- Sections ---------- */
section { padding: 78px 0; }
.section-alt { background: var(--color-surface-alt); }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
/* Scoped to .section-head originally, which left the kicker unstyled in the
   split-head and dark-band layouts. Applies everywhere now. */
.kicker { color: var(--color-accent-dark); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; display: block; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: 28px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
/* Equal-height cards so a row's buttons line up instead of stepping. */
.grid > .card { height: 100%; }
.grid { align-items: stretch; }
.card > .btn, .card > .card-link { margin-top: auto; align-self: flex-start; }
/* Space above a bottom-anchored button, without killing margin-top:auto. */
.card > .btn { margin-bottom: 0; }
.card > p:last-of-type { margin-bottom: 18px; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--color-primary-light); }
/* Glyph-only icons: no tile, no fill, just the mark in brand teal. Chosen
   over a filled tile because the tiles read as heavy and template-ish at
   this size. */
.card .icon {
  width: auto; height: 34px;
  display: flex; align-items: center; justify-content: flex-start;
  color: var(--color-primary); margin-bottom: 14px;
  background: none; box-shadow: none; border-radius: 0;
  transition: transform .2s ease;
}
.card .icon svg { width: 30px; height: 30px; stroke-width: 1.7; }

/* Images inside a card must not stretch. .card is a flex column, so a
   direct child image defaults to align-self: stretch and gets pulled to
   the card's full width while its height stays pinned - which distorted
   the Zoho partner badge to roughly 2.7x its correct width. */
.card > img { align-self: flex-start; max-width: 100%; height: auto; }
.card > img.badge-img { height: 40px; width: auto; margin-bottom: 14px; }
.card:hover .icon { transform: translateY(-2px); }
.card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card p { font-size: 0.92rem; margin-bottom: 0; }

/* ---------- Dark brand band ----------
   One saturated section breaks a page that was otherwise white and pale
   grey from top to bottom, and gives the stats somewhere to live other
   than floating in empty space. */
.section-dark {
  position: relative; overflow: hidden; padding: 88px 0;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, #00736B 55%, #016058 100%);
  color: #fff;
}
.section-dark::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(520px 320px at 88% 12%, rgba(242,102,30,0.26), transparent 70%),
    radial-gradient(420px 300px at 6% 92%, rgba(0,200,185,0.22), transparent 70%);
}
.section-dark .container { position: relative; z-index: 1; }
.section-dark h2 { color: #fff; }
.section-dark .kicker { color: #8FE3DA; }

.stat-band { display: grid; grid-template-columns: 0.9fr 1.2fr; gap: 56px; align-items: center; }
.stat-band-intro h2 { font-size: clamp(1.8rem, 3.1vw, 2.4rem); margin-bottom: 0; }
.stat-band-intro .kicker { margin-bottom: 10px; }
/* These need to out-specify the base .stat-grid rules further down the file,
   which set a dark number colour for the light-background version. */
.section-dark .stat-band .stat-grid {
  grid-template-columns: repeat(2, 1fr); text-align: left; gap: 34px 28px;
}
.section-dark .stat-band .stat-grid .stat-num {
  color: #fff; font-size: clamp(2.3rem, 3.6vw, 3rem); line-height: 1;
}
.section-dark .stat-band .stat-grid .stat-label {
  color: rgba(255,255,255,0.78); margin-top: 8px; font-size: 0.88rem;
}

@media (max-width: 860px) {
  .stat-band { grid-template-columns: 1fr; gap: 32px; }
  .section-dark { padding: 64px 0; }
}

/* ---------- Split section head (left heading, right supporting line) ----------
   Used to break the run of identically centred section headers. */
.split-head {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px;
  align-items: end; margin-bottom: 44px;
}
.split-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 0; }
.split-head-aside { font-size: 1.02rem; margin: 0; padding-bottom: 6px; }
@media (max-width: 860px) {
  .split-head { grid-template-columns: 1fr; gap: 16px; align-items: start; }
}

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 20px; text-align: center; }
.stat-grid .stat-num { font-size: 2.1rem; font-weight: 800; color: var(--color-primary-dark); }
.stat-grid .stat-label { font-size: 0.85rem; color: var(--color-ink-soft); font-weight: 600; }

.trusted-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.trusted-track {
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  animation: trusted-scroll 26s linear infinite;
  /* Hints the browser to promote this to its own compositor layer, so the
     translateX animation stays smooth (a per-frame CSS `filter` on the
     logos previously defeated this — removed in favor of baking any
     contrast fix directly into the image files instead). */
  will-change: transform;
}
.trusted-marquee:hover .trusted-track { animation-play-state: paused; }
@keyframes trusted-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.trusted-logo {
  flex: none;
  display: flex; align-items: center; justify-content: center;
  height: 72px; min-width: 120px; padding: 0 12px;
}
/* Real client logos — uniform height, shown in full brand color. Sized a
   little taller than a typical logo strip so a denser multi-line lockup
   (icon + wordmark + fine print) stays legible, not just simple single-line
   wordmarks. Any logo that doesn't have enough native contrast for a white
   background (e.g. a pale/cream mark) gets that fixed in the source image
   itself (a baked-in
   card, tighter crop, etc.) rather than a live CSS effect — keeps this
   animation cheap for the browser. */
.trusted-logo img {
  max-height: 52px; max-width: 200px; width: auto; object-fit: contain;
}
@media (prefers-reduced-motion: reduce) {
  .trusted-track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; }
  .trusted-dup { display: none; }
  .hero::before, .hero::after { animation: none; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-inner, .hero-media { animation: none; }
  /* The hero visual's float and chart-grow stop too; the bars must still
     end up at full height, so scaleY is reset rather than left mid-animation. */
  .hv-window { animation: none; }
  .wa-float { animation: none; }
  .mega-menu, .mobile-nav, .back-to-top, .site-header { transition: none; }
  .faq summary::after { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Scroll-reveal ---------- */
/* JS adds .reveal to common content blocks on load, then .is-visible once
   each block scrolls into view (see main.js). No-JS visitors and crawlers
   simply see the static, fully-visible page — this is purely additive. */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .6s cubic-bezier(.2,.7,.3,1), transform .6s cubic-bezier(.2,.7,.3,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Product / feature list rows */
.feature-list { display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.94rem; color: var(--color-ink-soft); }
.feature-list li .check { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--color-primary-light); color: var(--color-primary); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; margin-top: 2px; }

.faq details { border-bottom: 1px solid var(--color-border); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--color-primary); display: inline-block; transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin-top: 10px; }

.testimonial { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-sm); }
.testimonial p { font-style: italic; }
.testimonial .who { font-weight: 700; font-style: normal; color: var(--color-ink); font-size: 0.9rem; }
.testimonial .who span { display: block; font-weight: 500; color: var(--color-ink-soft); font-size: 0.82rem; }

/* ---------- Industries ("Our Service Sector") ---------- */
.industry-block {
  display: grid; grid-template-columns: 300px 1fr; gap: 0;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.industry-tabs { display: flex; flex-direction: column; gap: 6px; background: var(--color-surface-alt); padding: 16px; border-right: 1px solid var(--color-border); }
.industry-tab {
  display: flex; align-items: center; gap: 12px; text-align: left;
  background: transparent; border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 12px 14px; font-family: inherit; font-size: 0.95rem; font-weight: 700; color: var(--color-ink);
  cursor: pointer; transition: background .15s ease, border-color .15s ease;
}
.industry-tab:hover { background: #fff; }
.industry-tab.is-active { background: #fff; border-color: var(--color-border); box-shadow: var(--shadow-sm); }
.industry-tab-icon {
  flex: none; width: 36px; height: 36px; border-radius: 10px; color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.industry-tab-icon svg { width: 18px; height: 18px; }
.industry-panels { padding: 40px; }
.industry-panel-head { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.industry-panel-icon {
  flex: none; width: 52px; height: 52px; border-radius: var(--radius-sm); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.industry-panel-icon svg { width: 26px; height: 26px; }
.industry-panel-head h3 { margin: 0; font-size: 1.5rem; }
.industry-panel-desc { font-size: 1rem; margin-bottom: 12px; font-weight: 600; color: var(--color-ink); }
.industry-panel-detail { font-size: 0.95rem; margin-bottom: 20px; }
.industry-benefits-label { display: block; font-weight: 700; color: var(--color-ink); margin-bottom: 10px; }
.industry-panel-body { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 36px; align-items: start; }
.industry-benefits { display: grid; grid-template-columns: 1fr; gap: 10px 32px; }

/* ---------- Per-industry CRM module diagram ----------
   A sketch of how the CRM is configured for that sector: real module
   names, no record data, and visibly a diagram rather than a screenshot.
   Swapped out automatically when a real `screenshot` is supplied. */
.industry-visual-label {
  display: block; font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--color-ink-soft); margin-bottom: 12px;
}
.industry-shot { width: 100%; border-radius: var(--radius-md); border: 1px solid var(--color-border); box-shadow: var(--shadow-md); }
.crmwin {
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-md); overflow: hidden;
}
.crmwin-bar {
  display: flex; gap: 6px; padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(180deg, #fcfcff 0%, #f7f7fc 100%);
}
.crmwin-bar span { width: 8px; height: 8px; border-radius: 50%; background: #dcdae9; }
.crmwin-tabs {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 14px;
  border-bottom: 1px solid var(--color-border);
}
.crmwin-tab {
  font-size: 0.76rem; font-weight: 600; color: var(--color-ink-soft);
  background: var(--color-surface-alt); border: 1px solid var(--color-border);
  border-radius: 999px; padding: 5px 11px; white-space: nowrap;
}
.crmwin-tab.is-active {
  background: var(--accent, var(--color-primary)); border-color: transparent;
  color: #fff; font-weight: 700;
}
.crmwin-rows { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.crmwin-row { display: flex; align-items: center; gap: 10px; }
.crmwin-row i { width: 22px; height: 22px; border-radius: 6px; opacity: .22; flex: none; }
.crmwin-row u { height: 8px; border-radius: 999px; background: #eceaf6; text-decoration: none; }

@media (max-width: 980px) {
  .industry-panel-body { grid-template-columns: 1fr; gap: 28px; }
  .industry-benefits { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .industry-benefits { grid-template-columns: 1fr; }
}


.industry-benefits li { position: relative; padding-left: 16px; font-size: 0.95rem; color: var(--color-ink-soft); }
.industry-benefits li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--color-primary); }

@media (max-width: 760px) {
  .industry-block { grid-template-columns: 1fr; }
  .industry-tabs { flex-direction: row; flex-wrap: wrap; border-right: none; border-bottom: 1px solid var(--color-border); }
  .industry-tab { flex: 1 1 auto; font-size: 0.85rem; padding: 10px; }
  .industry-panels { padding: 28px 22px; }
  .industry-benefits { grid-template-columns: 1fr; }
}

/* ---------- Legal pages (Privacy / Terms) ---------- */
.legal-content h2 { font-size: 1.15rem; margin-top: 32px; margin-bottom: 10px; }
.legal-content p { font-size: 0.95rem; }
.legal-content ul { list-style: disc; padding-left: 22px; margin: 0 0 1em; }
.legal-content ul li { font-size: 0.95rem; color: var(--color-ink-soft); margin-bottom: 6px; }
.legal-content a { color: var(--color-primary); text-decoration: underline; }

/* Breadcrumbs */
.breadcrumb { font-size: 0.85rem; color: var(--color-ink-soft); margin-bottom: 20px; }
.breadcrumb a { color: var(--color-primary); }
.breadcrumb span { margin: 0 6px; }

/* Product page header */
.product-hero { padding: 48px 0 40px; border-bottom: 1px solid var(--color-border); }
.product-hero .category-tag { display: inline-block; background: var(--color-primary-light); color: var(--color-primary-dark); padding: 5px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; margin-bottom: 14px; }
.product-hero h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.product-hero .tagline { font-size: 1.05rem; }
/* Wraps because the widest platform wordmark (Oracle) plus the tag beside
   it ran 46px past a 320px screen. */
.product-hero-icon-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 14px; }
.product-hero-icon { width: 56px; height: 56px; object-fit: contain; padding: 8px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); flex: none; }

/* Official Zoho app logos on product cards and in nav menus */
.card .product-logo { width: 40px; height: 40px; object-fit: contain; margin-bottom: 14px; }
/* display: inline-block overrides the global `img { display: block }` reset
   above — without it these sit on their own line above the link text
   instead of inline before it, and the fixed 16x16/20x20 box combined with
   object-fit: contain would also crush any non-square logo (a wordmark)
   down to a near-invisible sliver. width: auto + a max-width cap keeps
   square Zoho icons pixel-identical to before while letting a squarish
   third-party mark (Salesforce, Shopify) size itself correctly instead of
   being forced into a square. */
.nav-app-icon { display: inline-block; height: 16px; width: auto; max-width: 26px; object-fit: contain; vertical-align: -3px; margin-right: 7px; }

/* Official third-party brand logos on /platforms/ pages (Odoo, Microsoft,
   Oracle, Salesforce, Shopify) — wordmarks, so sized by height with the
   width left free rather than boxed like the square Zoho app icons. */
.platform-hero-icon { height: 40px; width: auto; max-width: 200px; object-fit: contain; flex: none; }
@media (max-width: 420px) { .platform-hero-icon { height: 32px; max-width: 160px; } }
.card .platform-logo { height: 32px; width: auto; max-width: 160px; object-fit: contain; margin-bottom: 14px; display: block; }

/* ---------- "Our presence" (events / where we show up) ---------- */
.presence { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 36px; align-items: center; }
.presence-meta h3 { font-size: 1.25rem; margin: 0 0 6px; }
.presence-tag {
  display: inline-block; background: var(--color-primary-light); color: var(--color-primary-dark);
  padding: 5px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; margin-bottom: 14px;
}
.presence-sub { font-size: 0.85rem; color: var(--color-ink-soft); margin: 0 0 14px; }
.presence-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.presence-photo { margin: 0; }
.presence-photo img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius-md); border: 1px solid var(--color-border); box-shadow: var(--shadow-sm);
}
.presence-photo figcaption { font-size: 0.76rem; color: var(--color-ink-soft); margin-top: 8px; line-height: 1.4; }

@media (max-width: 860px) {
  .presence { grid-template-columns: 1fr; gap: 24px; }
  /* Three tall portraits stacked would be a lot of scrolling on a phone,
     so below this width they become a swipeable strip instead. */
  .presence-photos {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; padding-bottom: 6px;
  }
  .presence-photo { flex: 0 0 62%; scroll-snap-align: start; }
}

.related-products { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 14px; }
.related-products a { display: block; border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 14px 16px; font-weight: 700; font-size: 0.9rem; }
.related-products a:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* Comparison tables (/compare/ pages) */
.compare-kicker-tag { display: inline-block; background: var(--color-primary-light); color: var(--color-primary-dark); padding: 5px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; margin-bottom: 14px; }
.compare-table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.compare-table { width: 100%; min-width: 640px; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--color-border); font-size: 0.88rem; white-space: nowrap; }
.compare-table td:first-child, .compare-table th:first-child { text-align: left; font-weight: 600; color: var(--color-ink); white-space: normal; min-width: 200px; }
.compare-table thead th { background: var(--color-surface-alt); font-size: 0.85rem; color: var(--color-ink); }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table .col-zoho { background: var(--color-primary-light); }
.compare-table .price-row td { font-weight: 800; color: var(--color-ink); }
.compare-check { color: var(--color-success); }
.compare-cross { color: #DC2626; }
.compare-badge { display: inline-block; font-size: 0.76rem; font-weight: 700; color: var(--color-ink-soft); background: #fff; border: 1px solid var(--color-border); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.compare-table .col-zoho .compare-badge { background: #fff; }

/* Blog */
.blog-card { border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease; }
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.blog-card:hover .read-more { text-decoration: underline; }
.blog-card .body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card .meta { font-size: 0.78rem; color: var(--color-ink-soft); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.blog-card h3 { font-size: 1.05rem; }
.blog-card .read-more { margin-top: auto; font-weight: 700; color: var(--color-primary); font-size: 0.88rem; }
.blog-post-body h2 { margin-top: 2em; font-size: 1.35rem; }
.blog-post-body p { font-size: 1.02rem; }
.blog-post-body ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.blog-post-body ul li { margin-bottom: 6px; color: var(--color-ink-soft); }

/* Forms */
/* ---------- Contact dialog ----------
   Opened by the Get Started buttons, and on desktop only by a 60-second timer
   and by exit intent (see main.js). Never opens by itself on a phone: a dialog
   covering a small screen is exactly the case Google's interstitial guidance
   describes, and most of this site's traffic is mobile.
   Sits above the sticky header (z-index 100) and the floating buttons (80). */
.cm-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(2, 30, 28, .58);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  animation: cm-fade .18s ease-out both;
}
/* display:flex would otherwise beat the hidden attribute. */
.cm-overlay[hidden] { display: none; }
.cm-panel {
  position: relative; width: 100%; max-width: 560px;
  max-height: calc(100vh - 40px); overflow-y: auto;
  background: #fff; border-radius: var(--radius-lg);
  padding: 32px; box-shadow: 0 30px 80px rgba(2, 30, 28, .34);
  animation: cm-rise .22s cubic-bezier(.2,.7,.3,1) both;
}
.cm-panel h2 { font-size: 1.45rem; margin: 10px 0 8px; }
.cm-lead { font-size: .92rem; color: var(--color-ink-soft); margin: 0 0 22px; }
.cm-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  background: transparent; border: 0; border-radius: 50%;
  color: var(--color-ink-soft); cursor: pointer;
}
.cm-close:hover { background: var(--color-surface-alt); color: var(--color-ink); }
.cm-close:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.cm-status { font-size: .85rem; margin: 10px 0 0; min-height: 1.2em; }
.cm-alt { font-size: .85rem; color: var(--color-ink-soft); margin: 14px 0 0; text-align: center; }
@keyframes cm-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes cm-rise { from { opacity: 0; transform: translateY(12px) } to { opacity: 1; transform: none } }
/* The title is the first thing a small screen should show, so the panel is
   pinned to the top rather than centred once there is no room to centre in. */
@media (max-width: 560px) {
  .cm-overlay { padding: 12px; align-items: flex-start; }
  .cm-panel { padding: 24px 18px; max-height: calc(100vh - 24px); }
  .cm-panel h2 { font-size: 1.25rem; padding-right: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .cm-overlay, .cm-panel { animation: none; }
}

.form-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-md); }
@media (max-width: 420px) { .form-card { padding: 22px 18px; } }
.form-row { display: grid; gap: 6px; margin-bottom: 16px; }
.form-row label { font-size: 0.85rem; font-weight: 700; color: var(--color-ink); }
.form-row input, .form-row textarea, .form-row select {
  border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 12px 14px; font-family: inherit; font-size: 0.95rem; color: var(--color-ink);
  /* An <input> carries an intrinsic width from its default size=20, and a
     grid item will not shrink below its content, so on a 320px screen
     (iPhone SE, Galaxy S9+) the card was pushed 40px past the viewport.
     These two let it shrink to whatever room there is. */
  width: 100%; min-width: 0;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: 2px solid var(--color-primary); outline-offset: 1px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-grid-2 { grid-template-columns: 1fr; } }

.contact-info-list { display: grid; gap: 18px; }
.contact-info-list .item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-list .item .ic { flex: none; width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--color-primary-light); color: var(--color-primary-dark); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.contact-info-list .item h4, .contact-info-list .item h3 { margin-bottom: 2px; font-size: 0.95rem; }
.contact-info-list .item p { margin: 0; font-size: 0.9rem; }

.office-card { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 18px 20px; }
.office-card h4, .office-card h3 { margin-bottom: 4px; }

/* CTA band */
.cta-band { background: var(--color-primary-dark); color: #fff; border-radius: var(--radius-lg); padding: 48px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #C7C6F5; }

/* Footer */
.site-footer { background: #17152A; color: #C7C6F5; padding: 56px 0 24px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-grid h4, .footer-col-title { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }
.footer-grid a { display: block; padding: 5px 0; font-size: 0.88rem; color: #C7C6F5; }
.footer-grid a:hover { color: #fff; }
/* Fills the three cells Company leaves empty on the grid's second row.
   Tinted rather than bordered-only so it reads as one piece against the
   footer, and centred because it sits in a wide, short box. */
.footer-cta {
  grid-column: span 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 10px;
  padding: 30px 28px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: var(--radius-md);
}
.footer-cta h2 {
  color: #fff; font-size: 1.12rem; line-height: 1.3; margin: 0;
  text-transform: none; letter-spacing: 0;
}
.footer-cta p { color: #A9A7D4; font-size: .88rem; max-width: 460px; margin: 0; }
.footer-cta .btn { margin-top: 6px; }
.footer-app-icon { display: inline-block; width: 20px; height: 20px; object-fit: contain; vertical-align: -5px; margin-right: 8px; background: #fff; border-radius: 5px; padding: 2px; }
.footer-brand { color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 0.82rem; }
.social-row { display: flex; gap: 10px; }
.social-row a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-cta { grid-column: 1 / -1; padding: 26px 20px; }
}

/* Whatsapp float */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; width: 56px; height: 56px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); z-index: 80;
  animation: wa-pulse 3.2s ease-in-out infinite; transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); animation-play-state: paused; }
@keyframes wa-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* Back to top */
.back-to-top {
  position: fixed; bottom: 22px; left: 22px; width: 48px; height: 48px; border-radius: 50%;
  background: #fff; border: 1px solid var(--color-border); color: var(--color-ink-soft);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); z-index: 80;
  cursor: pointer; opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s, border-color .15s ease, color .15s ease;
}
.back-to-top.is-visible {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0);
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear 0s, border-color .15s ease, color .15s ease;
}
.back-to-top:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
/* Grid items default to min-width:auto and refuse to shrink below their
   content. Without this a wide child widens the whole page. */
.two-col > * { min-width: 0; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; }
.badge { background: var(--color-surface-alt); border: 1px solid var(--color-border); padding: 6px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }

/* Solution / AI-&-apps detail pages: the "where it usually hurts" list.
   Two columns on wide screens so four short problem statements read as a
   scannable block rather than a tall stack, and a warning-tinted bullet so
   it is visually distinct from the positive ".check" used for inclusions. */
.feature-list-2 { grid-template-columns: 1fr; gap: 14px 40px; }
@media (min-width: 760px) { .feature-list-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mega-cta .btn { flex: none; white-space: nowrap; }

/* Exactly three across on wide screens. The auto-fit .grid-3 fits four
   240px columns in the container, which strands the fifth card alone on a
   second row; 3 + 2 reads as intentional. */
@media (min-width: 1040px) { .grid-3-fixed { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feature-list li .check.check-warn { background: #FDECE7; color: #C2410C; }

/* ---------- Footer contact strip ---------- */
/* Contact details sit in the footer of every page, not only on the contact
   page: someone who decides to get in touch is usually at the bottom of
   whatever page they were reading. WhatsApp comes first because that is how
   business is actually done in Lebanon and across the region. */
.footer-contact { border-top: 1px solid rgba(255, 255, 255, .09); margin-top: 32px; padding-top: 26px; }
.footer-contact-grid {
  display: grid; gap: 16px 28px;
  grid-template-columns: repeat(auto-fit, minmax(236px, 1fr));
}
.fc-item { display: flex; gap: 11px; align-items: flex-start; color: #C7C6F5; font-size: .86rem; }
a.fc-item:hover { color: #fff; }
a.fc-item:hover .fc-ic { background: rgba(255, 255, 255, .16); }
.fc-ic {
  flex: none; width: 32px; height: 32px; border-radius: 9px;
  background: rgba(255, 255, 255, .08); color: #8FE3DA;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s ease;
}
.fc-ic.fc-wa { color: #4FE08A; }
.fc-text { display: flex; flex-direction: column; gap: 2px; line-height: 1.4; }
.fc-text strong { color: #fff; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
@media (max-width: 560px) {
  .footer-contact-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- Market page: at-a-glance, numbers, where-we-work ---------- */
/* Only the Lebanon page carries these today; the markup is omitted entirely
   for markets with no data, so these rules cost other pages nothing. */
.glance { margin: 0; display: grid; gap: 0; }
.glance dt {
  font-weight: 800; color: var(--color-ink); font-size: .95rem;
  padding: 16px 0 4px; border-top: 1px solid var(--color-border);
}
.glance dt:first-of-type { border-top: 0; padding-top: 0; }
.glance dd { margin: 0 0 4px; color: var(--color-ink-soft); font-size: .95rem; line-height: 1.6; }

.compliance-meta { font-size: .85rem; color: var(--color-ink-soft); margin-bottom: 18px; }
.compliance-table { width: 100%; border-collapse: collapse; }
.compliance-table th, .compliance-table td {
  text-align: left; vertical-align: top; padding: 13px 14px;
  border-bottom: 1px solid var(--color-border); font-size: .92rem; line-height: 1.55;
}
.compliance-table th { font-weight: 800; color: var(--color-ink); width: 34%; background: #fff; }
.compliance-table td { color: var(--color-ink-soft); }
.compliance-table tr:first-child th, .compliance-table tr:first-child td { border-top: 1px solid var(--color-border); }
.compliance-note {
  margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--color-primary-light); color: var(--color-primary-dark);
  font-size: .88rem; line-height: 1.6;
}
@media (max-width: 560px) {
  .compliance-table th, .compliance-table td { display: block; width: auto; }
  .compliance-table th { border-bottom: 0; padding-bottom: 2px; }
}

.ground-head { font-size: 1.15rem; margin-bottom: 14px; }
.ground-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ground-chips span {
  display: inline-block; padding: 6px 13px; border-radius: 999px;
  background: var(--color-surface-alt); border: 1px solid var(--color-border);
  font-size: .85rem; font-weight: 700; color: var(--color-ink);
}
.ground-note { font-size: .9rem; color: var(--color-ink-soft); margin: 0; }

/* ---------- Market page facts strip ---------- */
/* The researched, country-specific box at the top of each /markets/ page.
   It is the reason these pages are worth publishing rather than a set of
   near-identical country landing pages. */
.market-facts {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.mf-item { background: #fff; padding: 18px 20px; display: flex; flex-direction: column; gap: 5px; }
.mf-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--color-accent-dark); }
.mf-value { font-size: .92rem; color: var(--color-ink); line-height: 1.45; }

/* ---------- Footer link rows (services, markets) ---------- */
.footer-chips { border-top: 1px solid rgba(255, 255, 255, .09); margin-top: 28px; padding-top: 24px; }
.footer-chips-note { color: #9C9AC4; font-size: .84rem; max-width: 760px; margin: -6px 0 16px; }
.footer-chip-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-chip-grid a {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .09);
  color: #C7C6F5; font-size: .8rem; line-height: 1.3;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.footer-chip-grid a:hover { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .22); color: #fff; }
@media (max-width: 560px) { .footer-chip-grid { gap: 6px; } .footer-chip-grid a { font-size: .76rem; padding: 5px 10px; } }

/* ---------- Photo hero (homepage) ---------- */
/* A full-bleed image behind the headline. Scoped to .hero-photo so every
   other page's hero keeps the lighter gradient treatment. */
.hero-photo { background: #06312E; padding: 56px 0 76px; }
/* The lead-capture panel is taller than the pair of buttons it replaced, so
   the homepage hero is tightened to keep the Book a Free Consultation button
   above the fold on a 1366x768 laptop. Scoped to .hero-photo: the other
   heroes are shorter and keep their original rhythm. */
.hero-photo h1 { font-size: clamp(2.3rem, 4.3vw, 3.4rem); margin-bottom: 0.30em; }
/* Break between the plain and the highlighted half of the headline, so it
   never reads as "...Implementation Your / Team Will Actually Use". Same
   number of lines either way at this column width. */
.hero-photo h1 em { display: block; }
.hero-photo .hero-inner.has-media p.lead { margin-bottom: 20px; }
/* The drifting colour blobs are for the light hero; over a photograph they
   just muddy it. */
.hero-photo::before, .hero-photo::after { display: none; }

.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg picture, .hero-bg img { display: block; width: 100%; height: 100%; }
.hero-bg img { object-fit: cover; object-position: 34% 42%; }
/* Two stacked washes: one across (so the text column is dark enough for
   white type while the mountain stays visible on the right), one down (so
   the fixed header has something to sit against). */
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(4,46,43,.96) 0%, rgba(4,46,43,.90) 32%, rgba(4,46,43,.60) 58%, rgba(4,46,43,.22) 100%),
    linear-gradient(180deg, rgba(4,46,43,.40) 0%, rgba(4,46,43,0) 34%);
}

.hero-photo h1 { color: #fff; }
.hero-photo h1 em { color: #93EADD; }
.hero-photo p.lead { color: #CFE4E0; }
/* The white plate goes on a wrapper, not the <img>: padding on the image
   itself changes its box without changing the picture, which reads as a
   distorted logo to any aspect-ratio check (including ours). */
/* The supplied badge is already a finished lock-up: white panel, blue panel
   and rounded corners baked in, with the corners transparent. It was sitting
   inside a second white plate, which read as a box inside a box - and because
   `.hero-inner.has-media .partner-badge` is the more specific selector, the
   image kept its 24px bottom margin INSIDE that plate, leaving 30px of dead
   white under the badge against 6px above it. No plate; just the badge, with
   a shadow to lift it off the picture.
   The selector carries four classes so it beats that margin rule outright. */
.hero-photo .hero-inner.has-media .partner-badge {
  height: 56px; width: auto; display: block; margin: 0 0 16px;
  filter: drop-shadow(0 10px 24px rgba(2, 30, 28, .45));
}
/* Two-field lead capture that replaced the pair of hero buttons. It sits on
   the dark photo hero, so it is built as a translucent panel rather than a
   white card: a white card here would fight the artwork behind it. */
.hero-lead {
  max-width: 520px; margin: 0 0 28px; padding: 20px;
  background: rgba(2, 30, 28, .42);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  text-align: left;
}
.hero-lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.hero-lead-row { display: flex; flex-direction: column; min-width: 0; }
.hero-lead-row label {
  font-size: .85rem; font-weight: 600; color: rgba(255, 255, 255, .92); margin-bottom: 7px;
}
.hero-lead-row input {
  width: 100%; min-width: 0; padding: 12px 14px;
  background: rgba(0, 0, 0, .30);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius-sm);
  color: #fff; font-size: .95rem; font-family: inherit;
}
.hero-lead-row input::placeholder { color: rgba(255, 255, 255, .45); }
.hero-lead-row input:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .85); outline-offset: 1px;
  border-color: rgba(255, 255, 255, .5);
}
.hero-lead-row input[aria-invalid="true"] { border-color: #FCA5A5; }
.hero-lead-submit {
  display: block; width: 100%; border-radius: 999px; padding: 15px 24px; font-size: 1rem;
}
.hero-lead-note { font-size: .82rem; color: rgba(255, 255, 255, .62); margin: 12px 0 0; }
.hero-lead-status { font-size: .82rem; color: #FCA5A5; margin: 8px 0 0; min-height: 0; }
.hero-lead-status:empty { margin: 0; }
/* The two fields are too cramped side by side on a narrow phone. */
@media (max-width: 560px) {
  .hero-lead { padding: 18px; }
  .hero-lead-grid { grid-template-columns: 1fr; gap: 12px; }
}
/* Centred hero variant (no media column) centres everything else, so centre
   the panel too rather than leaving it stranded on the left. */
.hero-inner:not(.has-media) .hero-lead { margin-left: auto; margin-right: auto; }

.hero-photo .btn-ghost {
  background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.38); color: #fff;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero-photo .btn-ghost:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.6); }
/* Lift the mock workspace off the photo so it still reads as a surface. */
.hero-photo .hv-window { box-shadow: 0 30px 70px rgba(0,0,0,.42); }

@media (max-width: 860px) {
  /* Stacked layout: the text runs the full width, so the wash has to be
     even rather than weighted to one side. */
  .hero-photo { padding: 76px 0 64px; background: #06312E; }
  /* A phone hero is taller than it is wide, and object-fit: cover would have
     to blow up a sliver of a 16:9 picture to fill it. Run the picture as a
     band across the top instead and let it melt into the solid colour the
     rest of the text sits on. */
  .hero-bg { bottom: auto; height: 58%; }
  .hero-bg img { object-position: 70% 28%; }
  .hero-bg::after {
    background:
      linear-gradient(180deg, rgba(4,46,43,.66) 0%, rgba(4,46,43,.74) 44%, rgba(4,46,43,.94) 84%, #06312E 100%);
  }
  /* Full-width text over a busy picture needs a little help at the edges. */
  .hero-photo h1, .hero-photo p.lead { text-shadow: 0 2px 14px rgba(2,30,28,.55); }
}
@media (prefers-reduced-motion: reduce) { .hero-photo .hero-inner { animation: none; } }

/* ---------- CRM showcase section ---------- */
/* The demo video moved out of the hero into a section of its own, so it can
   run at its native 1040px instead of 520px. */
.crm-showcase { padding-bottom: 72px; }
.crm-demo {
  position: relative; width: 100%; max-width: 1040px; margin: 0 auto 28px;
}
/* The hero version drifted up and down on a loop. At this size that reads as
   the page wobbling, so it is switched off here. */
.crm-demo .hv-window { animation: none; }
.crm-showcase-cta { text-align: center; margin: 32px 0 0; }
@media (max-width: 700px) {
  .crm-showcase { padding-bottom: 48px; }
  .crm-demo { margin-bottom: 22px; }
}

/* ---------- Hero demo video ---------- */
/* Replaces the CSS workspace mock. The poster paints immediately and the
   video file is fetched after load (see main.js), so the hero's first paint
   costs the poster only. */
.app-demo .hv-window { padding: 0; overflow: hidden; }
.app-demo .hv-titlebar { padding: 11px 14px; border-bottom: 1px solid var(--color-border); }
.hv-video {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  background: #F4F3FB;
  /* contain, not cover: the box ratio matches the file exactly (1920x1080),
     so this is a no-op today, but if a future re-encode changes the ratio it
     letterboxes against the matching chrome colour instead of silently
     cropping the UI. */
  object-fit: contain;
}

/* ---------- Service pages ---------- */
/* The stage-by-stage plan. A numbered rail on the left, one stage per row,
   with the "you get" line set off so the deliverable of each stage can be
   scanned without reading the paragraph. */
.plan { list-style: none; margin: 0 auto; padding: 0; max-width: 860px; display: grid; gap: 0; }
.plan-step { display: grid; grid-template-columns: 44px 1fr; gap: 0 22px; position: relative; padding-bottom: 28px; }
.plan-step::before {
  content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px;
  background: var(--color-border);
}
.plan-step:last-child::before { display: none; }
.plan-step:last-child { padding-bottom: 0; }
.plan-num {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--color-primary); color: #fff; font-weight: 800; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 6px var(--color-surface-alt);
  position: relative; z-index: 1;
}
.plan-body { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 22px 24px; box-shadow: var(--shadow-sm); }
.plan-body h3 { font-size: 1.1rem; margin-bottom: 6px; }
.plan-body p { font-size: 0.95rem; margin-bottom: 0; }
.plan-get {
  margin-top: 14px !important; padding-top: 12px; border-top: 1px dashed var(--color-border);
  font-size: 0.9rem !important; color: var(--color-ink) !important; font-weight: 600;
  display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap;
}
.plan-get span {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800;
  color: var(--color-primary-dark); background: var(--color-primary-light);
  padding: 3px 9px; border-radius: 999px; flex: none;
}
@media (max-width: 560px) {
  .plan-step { grid-template-columns: 34px 1fr; gap: 0 14px; }
  .plan-num { width: 34px; height: 34px; font-size: .92rem; box-shadow: 0 0 0 4px var(--color-surface-alt); }
  .plan-step::before { left: 16px; top: 34px; }
  .plan-body { padding: 18px 18px; }
}

.category-tag-soft { background: #FFF1E8 !important; color: var(--color-accent-dark) !important; }
.hero-note { font-size: .85rem; color: var(--color-ink-soft); margin: 18px 0 0; }

/* A whole card as the link, for the services hub. Colour and hover come from
   .card; this only keeps the text ink-coloured and adds the arrow line. */
.card-link-block { color: inherit; }
.card-more {
  margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: .9rem; color: var(--color-primary);
}
.card-link-block:hover .card-more { gap: 10px; }
.card-more svg { transition: transform .15s ease; }

/* ---------- Zia AI & Zoho MCP (homepage) ---------- */
/* A deep ink-to-teal band with a faint grid and two soft glows, so the AI
   section reads as its own moment between the white CRM section and the
   client logos. Everything decorative is CSS; nothing here needs a script. */
.zia-section {
  position: relative; overflow: hidden; padding: 96px 0 88px; color: #fff;
  background:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(160deg, #0B1626 0%, #0C2433 48%, #063F3B 100%);
}
.zia-section .container { position: relative; z-index: 1; }
.zia-glow { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.zia-glow-a { width: 520px; height: 520px; top: -160px; right: -120px; background: rgba(0,168,156,.32); }
.zia-glow-b { width: 420px; height: 420px; bottom: -180px; left: -120px; background: rgba(242,102,30,.20); }

.zia-head { max-width: 760px; }
.zia-head h2 { color: #fff; }
.zia-head p { color: rgba(255,255,255,.74); font-size: 1.04rem; }
.zia-kicker {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #BFF3EC;
}
.zia-spark {
  width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #00C2B3, #F2661E); color: #fff;
}
.zia-grad {
  background: linear-gradient(90deg, #5EEAD4, #FDBA74);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.zia-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; margin-top: 8px; }

/* The illustrated chat window */
.zia-demo { margin: 0; }
.zia-demo figcaption { margin-top: 10px; font-size: .75rem; color: rgba(255,255,255,.45); text-align: center; }
.zia-window {
  border-radius: 18px; overflow: hidden;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 30px 70px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.zia-window-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
.zia-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.22); }
.zia-window-title { margin-left: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: #BFF3EC; }
.zia-chat { padding: 20px; display: grid; gap: 14px; }
.zia-msg { font-size: .9rem; line-height: 1.5; }
.zia-msg-user {
  justify-self: end; max-width: 82%; padding: 10px 14px; border-radius: 14px 14px 4px 14px;
  background: var(--color-primary); color: #fff;
}
.zia-msg-ai { display: flex; gap: 10px; align-items: flex-start; }
.zia-msg-ai > div { flex: 1; padding: 12px 14px; border-radius: 4px 14px 14px 14px; background: rgba(255,255,255,.09); }
.zia-msg-text { margin: 0 0 10px; color: rgba(255,255,255,.88); font-size: .9rem; }
.zia-msg-text strong { color: #fff; }
.zia-avatar {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #00C2B3, #F2661E); color: #fff;
}
.zia-deals { display: grid; gap: 6px; }
.zia-deals li {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: 8px; background: rgba(255,255,255,.06);
  font-size: .82rem; color: rgba(255,255,255,.85);
}
.zia-badge { font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(94,234,212,.16); color: #5EEAD4; white-space: nowrap; }
.zia-badge-warn { background: rgba(253,186,116,.18); color: #FDBA74; }
.zia-agent {
  padding: 14px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(0,168,156,.22), rgba(242,102,30,.14));
  border: 1px solid rgba(94,234,212,.28);
}
.zia-agent-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: .86rem; color: rgba(255,255,255,.88); }
.zia-agent-head strong { color: #fff; }
.zia-agent-icon { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.12); color: #5EEAD4; }
.zia-status { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; color: #FDBA74; }
.zia-pulse { width: 7px; height: 7px; border-radius: 50%; background: #FDBA74; box-shadow: 0 0 0 0 rgba(253,186,116,.6); animation: ziaPulse 2s infinite; }
@keyframes ziaPulse { 0% { box-shadow: 0 0 0 0 rgba(253,186,116,.6); } 70% { box-shadow: 0 0 0 8px rgba(253,186,116,0); } 100% { box-shadow: 0 0 0 0 rgba(253,186,116,0); } }
.zia-agent-actions { display: flex; gap: 8px; margin-top: 12px; }
.zia-btn { font-size: .78rem; font-weight: 700; padding: 7px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.22); color: #fff; }
.zia-btn-primary { background: #fff; color: var(--color-primary-dark); border-color: #fff; }

/* The four capabilities */
.zia-features { display: grid; gap: 14px; }
.zia-features li {
  display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 14px;
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.09);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.zia-features li:hover { background: rgba(255,255,255,.08); border-color: rgba(94,234,212,.35); transform: translateX(4px); }
.zia-ic {
  flex: none; width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(0,194,179,.25), rgba(242,102,30,.18)); color: #5EEAD4;
  border: 1px solid rgba(94,234,212,.25);
}
.zia-features h3 { color: #fff; font-size: 1.05rem; margin: 0 0 4px; }
.zia-features p { color: rgba(255,255,255,.7); font-size: .9rem; margin: 0; line-height: 1.55; }

/* MCP flow: assistant -> Zoho MCP -> Zoho apps */
.zia-mcp {
  margin-top: 56px; display: grid; grid-template-columns: 1fr 64px 1.15fr 64px 1fr; align-items: center;
}
.zia-node {
  padding: 18px 20px; border-radius: 14px; text-align: center;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
}
.zia-node-core {
  background: linear-gradient(135deg, rgba(0,168,156,.35), rgba(0,92,86,.35));
  border-color: rgba(94,234,212,.45); box-shadow: 0 0 40px rgba(0,194,179,.18);
}
.zia-node-label { display: block; font-weight: 800; color: #fff; font-size: .98rem; }
.zia-node-sub { display: block; margin-top: 4px; font-size: .8rem; color: rgba(255,255,255,.7); }
.zia-node-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.zia-node-chips span { font-size: .74rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.88); }
.zia-link { position: relative; height: 2px; margin: 0 8px; background: rgba(255,255,255,.15); overflow: hidden; border-radius: 2px; }
.zia-link span {
  position: absolute; top: 0; left: -40%; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, #5EEAD4, transparent);
  animation: ziaFlow 2.4s linear infinite;
}
@keyframes ziaFlow { to { left: 100%; } }

.zia-trust { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.zia-trust > div { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; line-height: 1.55; color: rgba(255,255,255,.72); }
.zia-trust svg { flex: none; margin-top: 2px; color: #5EEAD4; }
.zia-trust strong { color: #fff; }

.zia-cta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.zia-btn-main { background: #fff; color: var(--color-primary-dark); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.zia-btn-main:hover { background: #E8FBF8; }
.zia-btn-ghost { border-color: rgba(255,255,255,.3); color: #fff; }
.zia-btn-ghost:hover { border-color: #5EEAD4; color: #5EEAD4; }

@media (max-width: 960px) {
  .zia-grid { grid-template-columns: 1fr; gap: 32px; }
  .zia-mcp { grid-template-columns: 1fr; gap: 0; max-width: 460px; margin-left: auto; margin-right: auto; }
  .zia-link { width: 2px; height: 32px; margin: 0 auto; }
  .zia-link span { left: 0; top: -40%; width: 100%; height: 40%; background: linear-gradient(180deg, transparent, #5EEAD4, transparent); animation-name: ziaFlowV; }
  .zia-trust { grid-template-columns: 1fr; }
}
@keyframes ziaFlowV { to { top: 100%; } }
@media (max-width: 560px) {
  .zia-section { padding: 64px 0; }
  .zia-chat { padding: 14px; }
  .zia-status { margin-left: 0; }
  .zia-features li:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .zia-pulse, .zia-link span { animation: none; }
  .zia-link span { display: none; }
}
