/* ==========================================================================
   HtoH — global styles (Zoho-inspired design system)
   ========================================================================== */

:root {
  --red: #e42527;
  --red-dark: #c11c1e;
  --green: #089949;
  --blue: #226db4;
  --yellow: #f9b21d;

  --ink: #1b1b1b;
  --ink-2: #3d3d3d;
  --muted: #5f6368;
  --line: #e6e6e6;
  --soft: #f7f7f7;
  --soft-2: #fbf8f3;
  --white: #ffffff;
  --dark: #141414;
  --dark-2: #1f1f1f;

  --radius: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .06), 0 1px 1px rgba(0, 0, 0, .04);
  --shadow: 0 8px 24px rgba(17, 17, 17, .08);
  --shadow-lg: 0 24px 60px rgba(17, 17, 17, .14);

  --container: 1240px;
  --header-h: 72px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.02em;
  color: var(--ink);
}
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 880px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.bg-soft { background: var(--soft); }
.bg-cream { background: var(--soft-2); }
.text-center { text-align: center; }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }
.text-center .lead { margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 56px; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 6px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); box-shadow: 0 8px 20px rgba(228, 37, 39, .28); transform: translateY(-1px); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f1f1f1; }
.btn-ghost-light { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }
.btn-sm { padding: 9px 18px; font-size: .82rem; }
.btn-lg { padding: 16px 34px; font-size: 1rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--blue);
  font-size: .95rem;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow.on-dark { color: #fff; }

/* --------------------------------------------------------------------------
   Logo
   -------------------------------------------------------------------------- */
/* HtoH logo: emblem + "HTOH / CONSULTING • SOFTWARE" in one image (assets/htoh-logo.png;
   other versions in assets/brand/) */
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo img { height: 46px; width: auto; }
/* On dark backgrounds the logo sits on a white chip so its grey tagline stays legible */
.logo-chip { display: inline-flex; align-items: center; background: #fff; border-radius: 10px; padding: 6px 12px; }
.logo-chip img { height: 40px; width: auto; }

/* --------------------------------------------------------------------------
   Header + mega menu
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: 0 4px 18px rgba(0, 0, 0, .06); }
.header-inner { display: flex; align-items: center; gap: 36px; height: var(--header-h); }

.main-nav { display: flex; align-items: center; gap: 4px; height: 100%; }
.nav-item { position: static; height: 100%; display: flex; align-items: center; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink-2);
  background: none;
  border: 0;
  border-radius: 6px;
  height: 100%;
  position: relative;
  white-space: nowrap;
}
.nav-link svg { width: 17px; height: 17px; stroke-width: 1.3; margin-top: 2px; transition: transform .2s; }
.nav-link:hover, .nav-item.open > .nav-link { color: var(--red); }
.nav-item.open > .nav-link svg { transform: rotate(180deg); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 0;
  height: 3px;
  background: var(--red);
  border-radius: 3px 3px 0 0;
}

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--ink-2);
}
.icon-btn:hover { background: var(--soft); color: var(--red); }
.icon-btn svg { width: 20px; height: 20px; }
.signin-link { font-weight: 600; font-size: .95rem; color: var(--ink-2); white-space: nowrap; }
.signin-link:hover { color: var(--red); }
.menu-toggle { display: none; }

/* Mega panel */
.mega {
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.nav-item.open .mega { opacity: 1; visibility: visible; transform: none; }
.mega-inner { display: grid; grid-template-columns: 270px 1fr; min-height: 420px; max-height: calc(100vh - var(--header-h) - 24px); }
.mega-cats { background: var(--soft); padding: 18px 0; border-right: 1px solid var(--line); overflow-y: auto; }
.mega-cat {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  padding: 12px 28px;
  background: none; border: 0;
  text-align: left;
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink-2);
  border-left: 3px solid transparent;
}
.mega-cat svg { width: 14px; height: 14px; opacity: .5; }
.mega-cat:hover, .mega-cat.active { background: #fff; color: var(--red); border-left-color: var(--red); }
.mega-cat.active svg { opacity: 1; }
.mega-cats .mega-all { display: block; padding: 18px 28px 0; font-weight: 600; color: var(--blue); font-size: .9rem; }
.mega-panels { padding: 28px 36px; overflow-y: auto; }
.mega-panel { display: none; }
.mega-panel.active { display: block; animation: fadeIn .25s ease; }
.mega-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.mega-panel-head h4 { margin: 0; font-size: 1.1rem; }
.mega-panel-head p { margin: 0; color: var(--muted); font-size: .9rem; }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 18px; }
.mega-app { display: flex; gap: 14px; padding: 12px; border-radius: 8px; transition: background .15s; }
.mega-app:hover { background: var(--soft); }
.mega-app:hover strong { color: var(--red); }
.mega-app strong { display: block; font-size: .93rem; font-weight: 600; line-height: 1.3; }
.mega-app small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.4; margin-top: 2px; }

/* simple dropdown */
.nav-item.has-drop { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% - 6px);
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.nav-item.open .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown.cols-2 { display: grid; grid-template-columns: 1fr 1fr; min-width: 480px; gap: 2px 6px; }
.dropdown a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 6px; font-size: .92rem; font-weight: 500; }
.dropdown a:hover { background: var(--soft); color: var(--red); }

/* App icon tile (used everywhere) */
.app-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  color: #fff;
}
.app-icon svg { width: 21px; height: 21px; }
.app-icon.sm { width: 32px; height: 32px; border-radius: 8px; }
.app-icon.sm svg { width: 17px; height: 17px; }
.app-icon.lg { width: 56px; height: 56px; border-radius: 14px; }
.app-icon.lg svg { width: 28px; height: 28px; }
.c-red { background: var(--red); }
.c-green { background: var(--green); }
.c-blue { background: var(--blue); }
.c-yellow { background: var(--yellow); color: var(--ink); }
.c-purple { background: #7b4fd6; }
.c-teal { background: #0e9f9a; }
.c-orange { background: #f0671f; }
.c-pink { background: #d6337c; }

/* Search overlay */
.search-overlay {
  position: fixed; inset: 0;
  background: rgba(20, 20, 20, .55);
  z-index: 200;
  display: none;
  padding: 90px 24px;
}
.search-overlay.open { display: block; animation: fadeIn .2s; }
.search-box { max-width: 720px; margin: 0 auto; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.search-input-row { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.search-input-row svg { width: 22px; height: 22px; color: var(--muted); }
.search-input-row input { flex: 1; border: 0; outline: 0; font-size: 1.1rem; }
.search-results { max-height: 60vh; overflow: auto; padding: 8px; }
.search-results a { display: flex; gap: 14px; align-items: center; padding: 10px 14px; border-radius: 8px; }
.search-results a:hover, .search-results a.focus { background: var(--soft); }
.search-results small { display: block; color: var(--muted); font-size: .8rem; }
.search-empty { padding: 28px; text-align: center; color: var(--muted); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: var(--header-h) 0 0 0;
  background: #fff;
  z-index: 99;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .25s ease;
  padding: 12px 24px 40px;
}
.drawer.open { transform: none; }
.drawer-group { border-bottom: 1px solid var(--line); }
.drawer-toggle, .drawer-link {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%;
  padding: 16px 0;
  background: none; border: 0;
  font-weight: 600; font-size: 1.05rem; text-align: left; color: var(--ink);
}
.drawer-toggle svg { width: 18px; height: 18px; transition: transform .2s; }
.drawer-group.open .drawer-toggle svg { transform: rotate(180deg); }
.drawer-sub { display: none; padding: 0 0 14px; }
.drawer-group.open .drawer-sub { display: block; }
.drawer-sub h5 { margin: 14px 0 6px; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.drawer-sub a { display: flex; gap: 12px; align-items: center; padding: 8px 0; font-size: .95rem; }
.drawer-actions { display: grid; gap: 12px; margin-top: 28px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; padding: 84px 0 0; text-align: center; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 10% 10%, rgba(249, 178, 29, .12), transparent 70%),
    radial-gradient(600px 300px at 90% 20%, rgba(34, 109, 180, .10), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero h1 { max-width: 920px; margin: 0 auto 22px; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lead { margin: 0 auto 34px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: .88rem; color: var(--muted); }
.hero-note a { color: var(--blue); font-weight: 600; }

/* Hero product mock */
.hero-visual { margin: 64px auto 0; max-width: 1060px; position: relative; }
.mock {
  background: #fff;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -10px 60px rgba(0, 0, 0, .08);
  overflow: hidden;
  text-align: left;
}
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: #fafafa; }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ddd; }
.mock-bar i:nth-child(1) { background: #ff5f57; }
.mock-bar i:nth-child(2) { background: #febc2e; }
.mock-bar i:nth-child(3) { background: #28c840; }
.mock-bar span { margin-left: 14px; font-size: .8rem; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 3px 14px; }
.mock-body { display: grid; grid-template-columns: 210px 1fr 280px; min-height: 380px; }
.mock-side { border-right: 1px solid var(--line); padding: 18px 14px; background: #fcfcfc; }
.mock-side .ms-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: .84rem; color: var(--ink-2); font-weight: 500; }
.mock-side .ms-item svg { width: 16px; height: 16px; color: var(--muted); }
.mock-side .ms-item.on { background: #fdecec; color: var(--red); }
.mock-side .ms-item.on svg { color: var(--red); }
.mock-main { padding: 22px; }
.mock-main h5 { margin: 0 0 4px; font-size: 1rem; }
.mock-main .sub { font-size: .8rem; color: var(--muted); margin-bottom: 16px; }
.cand { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; transition: border-color .2s, box-shadow .2s; }
.cand:hover { border-color: #f3b1b2; box-shadow: var(--shadow-sm); }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .85rem; }
.cand strong { font-size: .9rem; display: block; }
.cand small { color: var(--muted); font-size: .76rem; }
.tags { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.tag { font-size: .68rem; padding: 2px 8px; border-radius: 20px; background: var(--soft); color: var(--ink-2); font-weight: 500; }
.score { font-weight: 800; font-size: .95rem; color: var(--green); text-align: right; }
.score small { display: block; font-weight: 500; color: var(--muted); font-size: .7rem; }
.mock-aside { border-left: 1px solid var(--line); padding: 22px; background: #fcfcfc; }
.ring { width: 130px; height: 130px; margin: 6px auto 14px; position: relative; }
.ring svg { width: 130px; height: 130px; transform: rotate(-90deg); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.7rem; font-family: var(--font-display); }
.ring b small { display: block; font-size: .7rem; font-weight: 500; color: var(--muted); font-family: var(--font); margin-top: -26px; }
.meter { margin-bottom: 12px; }
.meter div { display: flex; justify-content: space-between; font-size: .78rem; margin-bottom: 4px; color: var(--ink-2); }
.meter span { display: block; height: 6px; border-radius: 6px; background: #eee; overflow: hidden; }
.meter span i { display: block; height: 100%; border-radius: 6px; }

.floating-chip {
  position: absolute;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  font-size: .85rem;
  text-align: left;
  animation: float 5s ease-in-out infinite;
}
.floating-chip strong { display: block; font-size: .9rem; }
.floating-chip small { color: var(--muted); }
.chip-1 { left: -40px; top: 120px; }
.chip-2 { right: -30px; top: 40px; animation-delay: -2.5s; }

/* --------------------------------------------------------------------------
   Zoho-structure homepage blocks
   -------------------------------------------------------------------------- */
.z-hero { position: relative; padding: 72px 0 88px; background: var(--soft-2); overflow: hidden; }
.z-hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.z-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); }
.z-hero h1 em { font-style: normal; color: var(--red); }
.z-hero .lead { margin-bottom: 32px; }
.z-hero .lead a { color: var(--blue); font-weight: 600; white-space: nowrap; }
.z-featured { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 28px; }
.z-featured-label { font-family: var(--font); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.z-featured-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 18px; }
.z-app { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 10px; transition: background .15s; }
.z-app:hover { background: var(--soft); }
.z-app:hover strong { color: var(--red); }
.z-app strong { display: block; font-size: .95rem; line-height: 1.3; }
.z-app small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.45; margin-top: 3px; }

.z-label { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.z-label.on-dark { color: #ff8a8a; }
.z-sub { font-size: 1.1rem; color: var(--muted); margin-bottom: 28px; }

.z-story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.z-story { border-radius: 22px; padding: 48px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 340px; }
.z-story h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 24px; }
.z-story .btn { margin-top: auto; }
.z-story-dark { background: var(--dark); }
.z-story-dark h2 { color: #fff; }
.z-story-light { background: var(--soft); }
.z-mini-quotes { display: grid; gap: 14px; margin-bottom: 26px; }
.z-mini-quotes > div { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.z-mini-quotes small { display: block; color: var(--muted); font-weight: 400; font-size: .82rem; }

.z-enterprise { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.z-enterprise .lead { margin-bottom: 22px; }
.z-stats-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 56px; }
.z-stats-head h2 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); margin: 0; }
.z-announce { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.z-announce .lead { margin-bottom: 22px; }

/* --------------------------------------------------------------------------
   Logo strip
   -------------------------------------------------------------------------- */
.trust { padding: 56px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust p { text-align: center; font-family: var(--font-display); color: var(--ink-2); font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: 28px; }
.logos { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 28px 48px; }
.logos span { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: #9a9a9a; letter-spacing: -.02em; transition: color .2s; }
.logos span:hover { color: var(--ink); }

/* --------------------------------------------------------------------------
   App / service tiles (Zoho "featured apps")
   -------------------------------------------------------------------------- */
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.app-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative;
}
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.app-card h3 { margin: 4px 0 0; font-size: 1.2rem; }
.app-card p { color: var(--muted); margin: 0; font-size: .95rem; flex: 1; }
.app-card .link-arrow { margin-top: 6px; }
.app-card .app-cat { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.apps-more { text-align: center; margin-top: 44px; }

/* --------------------------------------------------------------------------
   Split spotlight blocks
   -------------------------------------------------------------------------- */
.spotlight { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.spotlight + .spotlight { margin-top: 110px; }
.spotlight.reverse .spot-media { order: -1; }
.spot-badge { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 18px; }
.spot-text h2 { margin-bottom: 18px; }
.spot-text .lead { margin-bottom: 26px; }
.checklist { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.checklist li svg { width: 22px; height: 22px; color: var(--green); flex-shrink: 0; margin-top: 1px; }
.spot-media {
  border-radius: 22px;
  padding: 36px;
  position: relative;
  min-height: 400px;
  display: grid;
  place-items: center;
}
.spot-media.tint-red { background: linear-gradient(135deg, #fff1f1, #ffe2e2); }
.spot-media.tint-blue { background: linear-gradient(135deg, #eef5fc, #dcebf9); }
.spot-media.tint-green { background: linear-gradient(135deg, #ecf8f1, #d6f1e2); }
.spot-media.tint-yellow { background: linear-gradient(135deg, #fff8e8, #ffefc7); }
.spot-card { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 22px; width: 100%; max-width: 420px; }
.spot-card h5 { margin: 0 0 14px; font-size: .95rem; display: flex; justify-content: space-between; align-items: center; }
.pill { font-size: .7rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; background: #e6f6ed; color: var(--green); }
.pill.red { background: #fdecec; color: var(--red); }
.pill.blue { background: #e7f0fa; color: var(--blue); }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding-top: 10px; }
.bars i { flex: 1; border-radius: 6px 6px 0 0; background: var(--blue); opacity: .85; transform-origin: bottom; animation: grow 1s ease both; }
.bars i:nth-child(even) { background: var(--red); }
.row-line { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .88rem; }
.row-line:last-child { border-bottom: 0; }
.row-line .grow { flex: 1; }
.row-line svg { width: 18px; height: 18px; color: var(--green); }

/* --------------------------------------------------------------------------
   Dark suite section (Zoho One style)
   -------------------------------------------------------------------------- */
.suite { background: var(--dark); color: #d9d9d9; position: relative; overflow: hidden; }
.suite::after {
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  right: -200px; top: -200px;
  background: radial-gradient(circle, rgba(228, 37, 39, .25), transparent 65%);
}
.suite .container { position: relative; z-index: 1; }
.suite h2, .suite h3 { color: #fff; }
.suite .lead { color: #b5b5b5; }
.suite-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.suite-logo { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.suite-logo .tag-one { background: var(--red); color: #fff; padding: 2px 12px; border-radius: 6px; font-size: 1.1rem; }
.suite-price { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 30px; }
.suite-price b { font-size: 2.6rem; font-family: var(--font-display); color: #fff; }
.suite-price span { color: #9a9a9a; }
.suite-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.suite-tile {
  background: var(--dark-2);
  border: 1px solid #2c2c2c;
  border-radius: 14px;
  padding: 18px 12px;
  text-align: center;
  font-size: .8rem;
  color: #cfcfcf;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: transform .2s, border-color .2s;
}
.suite-tile:hover { transform: translateY(-3px); border-color: #4a4a4a; }
.quote-dark { margin-top: 70px; padding-top: 50px; border-top: 1px solid #2c2c2c; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.quote-dark blockquote { margin: 0; font-size: 1.3rem; line-height: 1.55; color: #fff; font-family: var(--font-display); font-weight: 500; }
.quote-dark cite { display: block; margin-top: 14px; font-style: normal; font-size: .9rem; color: #9a9a9a; font-family: var(--font); }
.quote-dark cite b { color: #fff; }

/* --------------------------------------------------------------------------
   Process steps
   -------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 34px; left: 10%; right: 10%; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.step { position: relative; text-align: center; padding: 0 6px; }
.step-num {
  width: 68px; height: 68px;
  border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto 20px;
  background: #fff;
  border: 2px solid var(--line);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  position: relative;
  transition: all .25s;
}
.step:hover .step-num { background: var(--red); color: #fff; border-color: var(--red); }
.step h3 { font-size: 1.05rem; }
.step p { color: var(--muted); font-size: .9rem; }

/* --------------------------------------------------------------------------
   Feature grid (icons + text)
   -------------------------------------------------------------------------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 40px; }
.feature-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.feature-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.feature h3 { font-size: 1.12rem; margin: 18px 0 8px; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.testi-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.testi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.testi .stars { display: flex; gap: 3px; color: var(--yellow); }
.testi .stars svg { width: 18px; height: 18px; fill: currentColor; }
.testi blockquote { margin: 0; font-size: 1.08rem; line-height: 1.65; color: var(--ink-2); flex: 1; }
.testi-person { display: flex; align-items: center; gap: 14px; }
.testi-person .avatar { width: 48px; height: 48px; font-size: 1rem; }
.testi-person strong { display: block; }
.testi-person small { color: var(--muted); }
.testi-type { margin-left: auto; }

/* --------------------------------------------------------------------------
   Values (Zoho "why us")
   -------------------------------------------------------------------------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.value { padding: 40px 30px 10px 0; border-right: 1px solid var(--line); margin-right: 30px; }
.value:last-child { border-right: 0; margin-right: 0; }
.value .num { font-family: var(--font-display); font-weight: 800; font-size: .9rem; color: var(--red); margin-bottom: 14px; display: block; }
.value h3 { font-size: 1.15rem; }
.value p { color: var(--muted); font-size: .95rem; }

/* --------------------------------------------------------------------------
   Stats row
   -------------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats.cols-5 { grid-template-columns: repeat(5, 1fr); }
.stats.cols-3 { grid-template-columns: repeat(3, 1fr); }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.3rem); font-weight: 800; color: var(--ink); line-height: 1.1; letter-spacing: -.03em; }
.stat > span { color: var(--muted); font-size: .95rem; }
.stat:nth-child(4n+1) b { color: var(--red); }
.stat:nth-child(4n+2) b { color: var(--green); }
.stat:nth-child(4n+3) b { color: var(--blue); }
.stat:nth-child(4n+4) b { color: #e09a00; }

/* --------------------------------------------------------------------------
   Closing CTA
   -------------------------------------------------------------------------- */
.cta-final { text-align: center; padding: 110px 0; background: var(--soft-2); position: relative; overflow: hidden; }
.cta-final h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); margin-bottom: 10px; }
.cta-final p { color: var(--muted); font-size: 1.15rem; margin-bottom: 34px; }
.cta-final .shape { position: absolute; border-radius: 22px; opacity: .9; }
.cta-final .s1 { width: 80px; height: 80px; background: var(--red); left: 8%; top: 22%; transform: rotate(-14deg); }
.cta-final .s2 { width: 54px; height: 54px; background: var(--green); left: 15%; bottom: 18%; transform: rotate(12deg); }
.cta-final .s3 { width: 70px; height: 70px; background: var(--blue); right: 10%; top: 18%; transform: rotate(10deg); }
.cta-final .s4 { width: 46px; height: 46px; background: var(--yellow); right: 16%; bottom: 22%; transform: rotate(-10deg); }

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero { padding: 80px 0 72px; background: var(--soft-2); position: relative; overflow: hidden; }
.page-hero.center { text-align: center; }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); max-width: 860px; }
.page-hero.center h1 { margin-left: auto; margin-right: auto; }
.page-hero .lead { margin-bottom: 30px; }
.page-hero.center .lead { margin-left: auto; margin-right: auto; }
.page-hero .hero-ctas { justify-content: flex-start; }
.page-hero.center .hero-ctas { justify-content: center; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 18px; display: flex; gap: 8px; align-items: center; }
.page-hero.center .breadcrumb { justify-content: center; }
.breadcrumb a:hover { color: var(--red); }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }

/* --------------------------------------------------------------------------
   All services page (Zoho "All products")
   -------------------------------------------------------------------------- */
.catalog { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.catalog-side { position: sticky; top: calc(var(--header-h) + 24px); }
.catalog-side h4 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.cat-filter { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 11px 14px; border: 0; background: none; border-radius: 8px; text-align: left; font-weight: 500; color: var(--ink-2); }
.cat-filter:hover { background: var(--soft); }
.cat-filter.active { background: #fdecec; color: var(--red); font-weight: 600; }
.cat-filter .count { font-size: .78rem; background: var(--soft); border-radius: 20px; padding: 1px 9px; color: var(--muted); }
.cat-filter.active .count { background: #fff; color: var(--red); }
.catalog-search { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-bottom: 30px; background: #fff; transition: border-color .2s; }
.catalog-search:focus-within { border-color: var(--blue); }
.catalog-search svg { width: 20px; height: 20px; color: var(--muted); }
.catalog-search input { border: 0; outline: 0; flex: 1; font-size: 1rem; }
.catalog-group { margin-bottom: 56px; }
.catalog-group-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.catalog-group-head h2 { font-size: 1.5rem; margin: 0; }
.catalog-group-head p { margin: 0; color: var(--muted); font-size: .92rem; }
.catalog .apps-grid { gap: 18px; }
.catalog .app-card { padding: 24px; }
.app-card.highlight { border-color: var(--red); box-shadow: 0 0 0 4px rgba(228, 37, 39, .12); }
.no-results { padding: 60px 20px; text-align: center; color: var(--muted); display: none; }

/* --------------------------------------------------------------------------
   Tabs (audience switch)
   -------------------------------------------------------------------------- */
.tabs { display: inline-flex; background: var(--soft); padding: 5px; border-radius: 40px; margin-bottom: 44px; gap: 4px; }
.tab { border: 0; background: none; padding: 10px 24px; border-radius: 40px; font-weight: 600; color: var(--muted); font-size: .95rem; }
.tab.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn .3s; }

/* --------------------------------------------------------------------------
   FAQ accordion
   -------------------------------------------------------------------------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; background: none; border: 0; text-align: left; font-size: 1.08rem; font-weight: 600; color: var(--ink); }
.faq-q:hover { color: var(--red); }
.faq-q .plus { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; transition: transform .25s, background .2s; }
.faq-q .plus svg { width: 14px; height: 14px; }
.faq-item.open .plus { transform: rotate(45deg); background: var(--red); border-color: var(--red); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a > div { padding: 0 48px 24px 0; color: var(--muted); }
.faq-cats { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.faq-cat { border: 1.5px solid var(--line); background: #fff; padding: 9px 20px; border-radius: 30px; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.faq-cat.active, .faq-cat:hover { border-color: var(--red); color: var(--red); }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 7px; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #d9d9d9;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
  outline: 0;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(34, 109, 180, .12); }
.field.error input, .field.error select, .field.error textarea { border-color: var(--red); }
.field .err { display: none; color: var(--red); font-size: .8rem; margin-top: 5px; }
.field.error .err { display: block; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); margin-bottom: 20px; }
.check input { margin-top: 4px; accent-color: var(--red); }
.check a { color: var(--blue); }
.form-error { color: var(--red); font-size: .9rem; font-weight: 500; min-height: 1.2em; margin: 0 0 12px; }
.form-error:empty { margin: 0; min-height: 0; }
.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success .app-icon { margin: 0 auto 18px; }
.form-success.show { display: block; animation: fadeIn .3s; }

.role-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.role-switch label { border: 1.5px solid var(--line); border-radius: 10px; padding: 14px; cursor: pointer; display: flex; gap: 12px; align-items: center; transition: border-color .2s, background .2s; }
.role-switch input { display: none; }
.role-switch label:has(input:checked) { border-color: var(--red); background: #fff6f6; }
.role-switch strong { display: block; font-size: .92rem; }
.role-switch small { color: var(--muted); font-size: .78rem; }

/* Auth pages */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-form { padding: 40px 8%; display: flex; flex-direction: column; }
.auth-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: auto; }
.auth-switch { font-size: .9rem; color: var(--muted); }
.auth-switch a { color: var(--red); font-weight: 700; margin-left: 4px; }
.signin-id { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: 30px; margin-bottom: 18px; font-weight: 600; font-size: .92rem; }
.signin-id button { background: none; border: 0; padding: 0; }
.auth-form-inner { max-width: 440px; width: 100%; margin: 50px auto; }
.auth-form-inner h1 { font-size: 2rem; }
.auth-side { background: var(--dark); color: #fff; padding: 60px 8%; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-side h2 { color: #fff; font-size: 2rem; }
.auth-side p { color: #b5b5b5; }
.auth-side .checklist li { color: #ddd; }
.auth-divider { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .85rem; margin: 22px 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.social-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 11px; border: 1.5px solid var(--line); background: #fff; border-radius: 8px; font-weight: 600; font-size: .9rem; }
.social-btn:hover { background: var(--soft); }
.social-btn svg { width: 18px; height: 18px; }
.auth-foot { margin-top: 22px; font-size: .9rem; color: var(--muted); text-align: center; }
.auth-foot a { color: var(--blue); font-weight: 600; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.contact-cards { display: grid; gap: 16px; margin-top: 32px; }
.contact-card { display: flex; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: box-shadow .2s; }
.contact-card:hover { box-shadow: var(--shadow); }
.contact-card strong { display: block; }
.contact-card small { color: var(--muted); }

.z-help-card { display: flex; align-items: center; gap: 24px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--soft-2); }
.z-help-card > div { flex: 1; }
.z-help-card h3 { margin-bottom: 4px; }
.z-help-card p { margin: 0; }
.z-help-card.stacked { flex-direction: column; align-items: flex-start; background: #fff; }

/* Phone field with country code */
.phone-row { display: grid; grid-template-columns: 136px 1fr; gap: 8px; }

/* Content that HtoH must supply (Zoho-specific facts, real people's quotes, client logos) */
.fill-in { background: #fff3c4; color: #7a5200; outline: 1.5px dashed #e0a800; outline-offset: 1px; border-radius: 4px; padding: 0 .3em; font-style: normal; }
.fill-logo { display: inline-grid; place-items: center; min-width: 150px; height: 56px; padding: 0 18px; border-radius: 10px; background: #fff8e1; outline: 1.5px dashed #e0a800; color: #7a5200; font: 600 .85rem var(--font); white-space: nowrap; }
.suite .fill-in, .z-story-dark .fill-in, .ai-band .fill-in { background: #4a3b10; color: #ffe38a; }

/* Rich text (CMS pages & blog posts) */
.rich { font-size: 1.06rem; line-height: 1.75; color: var(--ink-2); }
.rich h2 { font-size: 1.6rem; margin: 1.6em 0 .5em; }
.rich h3 { font-size: 1.25rem; margin: 1.4em 0 .4em; }
.rich p { margin: 0 0 1.1em; }
.rich ul { padding-left: 1.3em; margin: 0 0 1.1em; }
.rich li { margin-bottom: .4em; }
.rich a { color: var(--blue); text-decoration: underline; }
.rich > :first-child { margin-top: 0; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; position: relative; }
.price-card.featured { border: 2px solid var(--red); box-shadow: var(--shadow-lg); }
.price-card .tag { position: absolute; top: -13px; left: 32px; background: var(--red); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; }
.price-card h3 { font-size: 1.35rem; margin-bottom: 6px; }
.price-card .blurb { color: var(--muted); margin-bottom: 20px; }
.price-card .amount { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.price-card .amount small { font-size: .95rem; font-weight: 500; color: var(--muted); font-family: var(--font); }
.price-card ul { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; flex: 1; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; }
.price-card li svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; margin-top: 3px; }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 10px; transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card h3 { margin: 0; font-size: 1.2rem; }
.post-card p { color: var(--muted); margin: 0; flex: 1; }
.post-meta { font-size: .82rem; color: var(--muted); }

/* Small auth-style card pages (forgot / reset / verify) */
.mini-auth { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; padding: 60px 16px; background: var(--soft-2); }
.mini-auth .form-card { width: 100%; max-width: 460px; }
@media (max-width: 960px) {
  .price-grid, .post-grid { grid-template-columns: 1fr; }
}

/* Timeline (about) */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 20px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 40px 64px; }
.tl-item::before { content: ""; position: absolute; left: 12px; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--red); }
.tl-item:nth-child(2)::before { border-color: var(--green); }
.tl-item:nth-child(3)::before { border-color: var(--blue); }
.tl-item:nth-child(4)::before { border-color: var(--yellow); }
.tl-item h3 { margin-bottom: 6px; }
.tl-item .when { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tl-item p { color: var(--muted); margin: 0; }

/* Industries */
.industry-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.industry { text-align: center; padding: 28px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: transform .2s, box-shadow .2s; }
.industry:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.industry .app-icon { margin: 0 auto 14px; }
.industry strong { font-size: .95rem; }

/* Comparison table */
.compare { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: .95rem; }
.compare th { background: var(--soft); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.compare .yes { color: var(--green); font-weight: 700; }
.compare .no { color: #b3b3b3; }
.compare tr:last-child td { border-bottom: 0; }
.compare .us { background: #fff6f6; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer-dark { background: var(--dark); color: #a9a9a9; font-size: .92rem; }
.footer-top { padding: 72px 0 40px; display: grid; grid-template-columns: repeat(4, 1fr) 1.3fr; gap: 32px; }
.footer-brand p { margin: 18px 0 22px; max-width: 300px; line-height: 1.6; }
.footer-col h5 { color: #fff; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 16px; font-family: var(--font); }
.footer-col a { display: block; padding: 5px 0; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.newsletter { display: flex; background: #222; border: 1px solid #333; border-radius: 8px; overflow: hidden; max-width: 320px; }
.newsletter input { flex: 1; background: transparent; border: 0; outline: 0; color: #fff; padding: 11px 14px; min-width: 0; }
.newsletter button { background: var(--red); color: #fff; border: 0; padding: 0 16px; font-weight: 600; font-size: .85rem; }
.newsletter button:hover { background: var(--red-dark); }
.nl-msg { font-size: .82rem; margin-top: 8px; min-height: 1.2em; color: #6ee7a2; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #333; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.socials a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.socials svg { width: 17px; height: 17px; }
.footer-bottom { border-top: 1px solid #2a2a2a; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; font-size: .85rem; }
.footer-bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom a:hover { color: #fff; }

/* Toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, calc(100% + 40px)); visibility: hidden; background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 10px; box-shadow: var(--shadow-lg); z-index: 300; transition: transform .3s, visibility .3s; font-size: .92rem; display: flex; gap: 10px; align-items: center; }
.toast svg { width: 18px; height: 18px; color: #6ee7a2; }
.toast.show { transform: translate(-50%, 0); visibility: visible; }

/* Back to top */
.to-top { position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 50%; background: var(--red); color: #fff; border: 0; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s, transform .2s; z-index: 90; }
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { transform: translateY(-3px); }
.to-top svg { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.app-card.reveal.in { transition: opacity .7s ease, transform .25s, box-shadow .25s, border-color .25s; }
.app-card.reveal.in:hover { transform: translateY(-4px); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .main-nav, .header-actions .signin-link, .header-actions .hide-md { display: none; }
  .menu-toggle { display: grid; }
  .footer-top { grid-template-columns: repeat(3, 1fr); }
  .footer-contact { grid-column: span 2; }
  .footer-brand { grid-column: 1 / -1; }
  .mock-body { grid-template-columns: 1fr 260px; }
  .mock-side { display: none; }
  .chip-1, .chip-2 { display: none; }
  .industry-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .section { padding: 72px 0; }
  .apps-grid, .feature-grid, .feature-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .spotlight, .suite-grid, .page-hero-grid, .contact-grid,
  .z-hero-grid, .z-story-grid, .z-enterprise, .z-stats-head, .z-announce { grid-template-columns: 1fr; gap: 40px; }
  .z-story { padding: 32px; min-height: 0; }
  .spotlight.reverse .spot-media { order: 0; }
  .spotlight + .spotlight { margin-top: 72px; }
  .steps { grid-template-columns: 1fr; gap: 28px; max-width: 520px; margin: 0 auto; }
  .steps::before { display: none; }
  .step { display: grid; grid-template-columns: 68px 1fr; gap: 20px; text-align: left; align-items: start; }
  .step-num { margin: 0; }
  .values { grid-template-columns: 1fr 1fr; }
  .value { margin-right: 0; padding: 30px 24px 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .stats, .stats.cols-5 { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .stats.cols-3 { grid-template-columns: 1fr; }
  .testi-wrap { grid-template-columns: 1fr; }
  .catalog { grid-template-columns: 1fr; gap: 24px; }
  .catalog-side { position: static; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
  .catalog-side h4 { display: none; }
  .cat-filter { white-space: nowrap; width: auto; gap: 8px; border: 1px solid var(--line); }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-aside { display: none; }
  .quote-dark { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 60px 0; }
  .apps-grid, .feature-grid, .feature-grid.cols-4, .feature-grid.cols-2, .values { grid-template-columns: 1fr; }
  .form-row, .role-switch, .social-btns { grid-template-columns: 1fr; }
  .form-card { padding: 26px 20px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .suite-tiles { grid-template-columns: repeat(2, 1fr); }
  .industry-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .z-help-card { flex-direction: column; align-items: flex-start; padding: 24px; }
  .header-actions .btn { display: none; }
  .hero { padding-top: 56px; }
  .hero-ctas .btn { width: 100%; }
  .spot-media { padding: 20px; min-height: 0; }
  .mega-grid, .z-featured-grid { grid-template-columns: 1fr; }
  .z-featured { padding: 18px; }
  .compare th, .compare td { padding: 12px 10px; font-size: .85rem; }
  .table-scroll { overflow-x: auto; }
  .tabs { display: flex; width: 100%; }
  .tab { flex: 1; padding: 10px 12px; }
  .cta-final .shape { display: none; }
}

/* --------------------------------------------------------------------------
   Zoho-structure additions: mega menu, dropdown groups, catalog, footer
   -------------------------------------------------------------------------- */
.mega-head { display: block; padding: 14px 28px 6px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mega-cat { padding: 8px 28px; font-size: .9rem; }
.mega-one { display: block; background: var(--dark); color: #fff; border-radius: 12px; padding: 18px 22px; margin-bottom: 16px; }
.mega-one strong { display: block; font-family: var(--font-display); font-size: 1.3rem; }
.mega-one small { color: #b5b5b5; }
.mega-one .z-label { margin-bottom: 6px; color: #ff8a8a; }
.badge { display: inline-block; font-style: normal; font-size: .62rem; font-weight: 700; letter-spacing: .06em; padding: 2px 7px; border-radius: 4px; background: #fdecec; color: var(--red); vertical-align: middle; margin-left: 4px; }

.dropdown { min-width: 260px; padding: 12px; }
.dropdown.cols-2 { min-width: 460px; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.dropdown a { padding: 9px 12px; font-size: .95rem; }
.drop-title { display: block; padding: 6px 12px 4px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.cat-head { display: block; margin: 14px 0 4px; padding: 0 14px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cat-filter { padding: 8px 14px; font-size: .92rem; }
.cat-filter.sub { padding-left: 26px; font-size: .88rem; }
.catalog-side { max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; }
.cat-sub-title { margin: 8px 0 4px; }
.suite-banner { background: var(--dark); color: #cfcfcf; border-radius: var(--radius-lg); padding: 32px; margin-bottom: 22px; }
.suite-banner h3 { color: #fff; font-size: 1.8rem; margin-bottom: 8px; }
.suite-banner p { margin-bottom: 18px; }
.z-featured-8 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.footer-copy { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 0 0 28px; font-size: .85rem; }
.footer-contact .socials { margin-top: 14px; }
.footer-office { display: flex; align-items: center; gap: 6px; font-size: .9rem; color: #a9a9a9; margin: 4px 0; }
.footer-office svg { width: 15px; height: 15px; flex-shrink: 0; }

@media (max-width: 960px) {
  .dropdown.cols-2 { min-width: 0; }
  .z-featured-8 { grid-template-columns: repeat(2, 1fr); }
  .catalog-side { max-height: none; }
  .cat-head { display: none; }
}
@media (max-width: 640px) {
  .footer-contact { grid-column: 1 / -1; }
  .z-featured-8 { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Sign up / Sign in (Zoho-style frosted card)
   -------------------------------------------------------------------------- */
.zauth { min-height: 100vh; position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: linear-gradient(135deg, #e3f6f3 0%, #eef3fb 45%, #dfe6f8 100%); }
.zauth::before, .zauth::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.zauth::before { width: 520px; height: 520px; background: #c9f0e6; top: -160px; left: -140px; }
.zauth::after { width: 560px; height: 560px; background: #cfd9fb; bottom: -200px; right: -160px; }
.zauth-top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 22px 40px; gap: 16px; flex-wrap: wrap; }
.zauth-top .auth-switch { font-size: .92rem; color: var(--ink-2); }
.zauth-top .auth-switch a { color: var(--red); font-weight: 700; margin-left: 6px; letter-spacing: .02em; }
.zauth-main { position: relative; z-index: 1; flex: 1; display: grid; place-items: center; padding: 20px 16px 60px; }
.zcard { width: 100%; max-width: 410px; padding: 44px 38px 38px; border-radius: 32px;
  background: rgba(255, 255, 255, .62); border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 30px 80px rgba(40, 70, 140, .12); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.zcard h1 { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; text-align: center; line-height: 1.3; margin: 0 0 26px; letter-spacing: -.01em; }
.zcard .zsub { text-align: center; color: var(--muted); margin: -16px 0 22px; font-size: .92rem; }
.zfield { position: relative; margin-bottom: 12px; }
.zfield input, .zfield select, .zphone {
  width: 100%; height: 46px; padding: 0 20px; border-radius: 24px; border: 1.3px solid #8fa6dd;
  background: #f1f5ff; font-size: .98rem; color: var(--ink); outline: 0; transition: border-color .2s, box-shadow .2s, background .2s; }
.zfield input::placeholder { color: #6b7280; }
.zfield input:focus, .zphone:focus-within { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(34, 109, 180, .12); }
.zfield.error input, .zfield.error .zphone { border-color: var(--red); background: #fff6f6; }
.zfield .err { display: none; color: var(--red); font-size: .78rem; margin: 5px 0 0 18px; }
.zfield.error .err { display: block; }
.zeye { position: absolute; right: 14px; top: 23px; transform: translateY(-50%); width: 32px; height: 32px; border: 0; background: none; color: #8a94a6; display: grid; place-items: center; border-radius: 50%; }
.zeye:hover { color: var(--ink); }
.zeye svg { width: 19px; height: 19px; }
.zphone { display: flex; align-items: center; padding: 0; overflow: hidden; }
.zphone select { width: 82px; height: 100%; border: 0; border-right: 1.3px solid #c4d0ee; background: transparent; padding: 0 6px 0 16px; font-size: .95rem; outline: 0; appearance: none; -webkit-appearance: none; cursor: pointer; }
.zphone input { flex: 1; height: 100%; border: 0; background: transparent; padding: 0 16px; font-size: .98rem; outline: 0; min-width: 0; }
.zgeo { font-size: .76rem; color: var(--ink-2); margin: 10px 0 12px 2px; }
.zgeo b { font-weight: 700; }
.zgeo button { border: 0; background: none; color: var(--blue); font-size: .76rem; font-weight: 600; padding: 0; margin-left: 4px; }
.zcheck { display: flex; gap: 8px; align-items: flex-start; font-size: .78rem; color: var(--ink-2); margin: 6px 0 22px; }
.zcheck input { margin-top: 2px; accent-color: var(--red); }
.zcheck a { color: var(--ink); font-weight: 700; text-decoration: underline; }
.zcheck.error { color: var(--red); }
.zbtn { width: 100%; height: 50px; border: 0; border-radius: 26px; background: var(--red); color: #fff; font-weight: 700; font-size: 1.05rem; letter-spacing: .02em; text-transform: uppercase; transition: background .2s, transform .2s, box-shadow .2s; }
.zbtn:hover { background: var(--red-dark); box-shadow: 0 10px 24px rgba(228, 37, 39, .28); transform: translateY(-1px); }
.zbtn[disabled] { opacity: .65; pointer-events: none; }
.zsocial { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 26px; font-size: .88rem; color: var(--ink-2); flex-wrap: wrap; }
.zsocial button { height: 34px; min-width: 56px; padding: 0 16px; border-radius: 18px; border: 1px solid #e3e7ef; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow-sm); transition: transform .2s; }
.zsocial button:hover { transform: translateY(-1px); }
.zsocial .li { background: #0a66c2; border-color: #0a66c2; color: #fff; font-weight: 800; font-size: .95rem; }
.zsocial svg { width: 18px; height: 18px; }
.zcard .form-error { text-align: center; margin: -8px 0 12px; }
.zfoot { text-align: center; margin-top: 22px; font-size: .9rem; color: var(--ink-2); }
.zfoot a { color: var(--blue); font-weight: 600; }
.zcard .form-success { padding: 10px 0 0; }
.zid { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 18px; border: 1.3px solid #c4d0ee; border-radius: 24px; background: #fff; margin-bottom: 14px; font-size: .92rem; font-weight: 600; overflow: hidden; }
.zid span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zid button { border: 0; background: none; color: var(--blue); font-weight: 600; font-size: .85rem; flex-shrink: 0; }
.zrow { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; margin: 2px 4px 18px; }
.zrow a { color: var(--blue); font-weight: 600; }
@media (max-width: 480px) { .zcard { padding: 34px 22px 28px; border-radius: 24px; } .zauth-top { padding: 16px; } }

/* Admin-editable content spots: hidden until their content is filled in */
[data-c-need]:not(.c-ok), [data-c-any]:not(.c-ok) { display: none !important; }

/* Long product categories scroll inside the mega menu instead of spilling over the page */
.mega-inner { overflow: hidden; }
.mega-cats, .mega-panels { min-height: 0; max-height: calc(100vh - var(--header-h) - 24px); overflow-y: auto; overscroll-behavior: contain; }

/* Contact page: direct details and office */
.contact-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.contact-chips > * { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 30px; padding: 8px 16px; font-weight: 600; font-size: .92rem; color: var(--ink); }
.contact-chips a:hover { border-color: var(--red); color: var(--red); }
.contact-chips svg { width: 16px; height: 16px; color: var(--red); }
.office-grid { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 24px; align-items: center; }
.office-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; height: 100%; transition: transform .3s, box-shadow .3s; }
.office-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.office-card h3 { margin: 16px 0 6px; }
.office-city { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin: 0 0 12px; }
.office-lines { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; color: var(--ink-2); font-size: .94rem; }
.office-lines li { display: flex; gap: 10px; align-items: flex-start; }
.office-lines svg { width: 18px; height: 18px; color: var(--red); flex-shrink: 0; margin-top: 2px; }
.socials.big { display: flex; gap: 10px; margin: 6px 0 16px; }
.socials.big a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--ink); transition: background .2s, color .2s, transform .2s; }
.socials.big a:hover { background: var(--red); color: #fff; transform: translateY(-3px); }
.socials.big svg { width: 20px; height: 20px; }
@media (max-width: 960px) { .office-grid { grid-template-columns: 1fr; } .contact-chips { justify-content: center; } }

/* Legal pages (page.html with a legal title): side navigation + "On this page" */
.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; align-items: start; }
.legal-nav { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; border-right: 1px solid var(--line); padding-right: 18px; }
.legal-group { margin-bottom: 18px; }
.legal-group h4 { display: flex; align-items: center; gap: 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 6px; }
.legal-group h4 svg { width: 15px; height: 15px; }
.legal-group a { display: block; padding: 7px 12px; border-radius: 8px; color: var(--ink-2); font-size: .93rem; font-weight: 500; border-left: 2px solid transparent; }
.legal-group a:hover { background: var(--soft); color: var(--ink); }
.legal-group a.on { background: #fdeaea; color: var(--red); font-weight: 700; border-left-color: var(--red); }
.legal-contact { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 12px; border-radius: 10px; background: var(--soft-2); font-weight: 600; font-size: .9rem; }
.legal-contact svg { width: 16px; height: 16px; }
.legal-toc { background: var(--soft-2); border-radius: 14px; padding: 18px 22px; margin-bottom: 30px; columns: 2; column-gap: 28px; }
.legal-toc h4 { column-span: all; margin: 0 0 10px; font-size: .95rem; }
.legal-toc a { display: block; padding: 4px 0; font-size: .9rem; break-inside: avoid; }
.legal-layout .rich h2 { scroll-margin-top: calc(var(--header-h) + 20px); padding-top: 8px; }
.legal-updated { margin-top: 44px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
@media (max-width: 960px) {
  .legal-layout { grid-template-columns: 1fr; gap: 24px; }
  .legal-nav { position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .legal-toc { columns: 1; }
}

/* Product enquiry pop-up */
.app-card { cursor: pointer; }
.app-card-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.enq-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(20, 20, 20, .55); display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .25s; }
.enq-overlay.show { opacity: 1; }
.enq-modal { position: relative; width: 100%; max-width: 640px; max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 18px; padding: 30px; box-shadow: var(--shadow-lg); transform: translateY(16px) scale(.98); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.enq-overlay.show .enq-modal { transform: none; }
.enq-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--soft); display: grid; place-items: center; cursor: pointer; }
.enq-close:hover { background: var(--line); }
.enq-close svg { width: 18px; height: 18px; }
.enq-head { display: flex; gap: 16px; align-items: flex-start; margin: 0 40px 20px 0; }
.enq-head h3 { margin: 2px 0 4px; font-size: 1.3rem; }
.enq-head p { margin: 0; font-size: .92rem; }
.enq-modal textarea { min-height: 110px; }
.enq-done { text-align: center; padding: 26px 6px 8px; }
.enq-done h3 { font-size: 1.6rem; margin: 14px 0 8px; }
.enq-done p { color: var(--ink-2); font-size: 1.08rem; margin: 0 0 22px; }
.enq-check { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: #e6f6ed; color: var(--green); animation: enq-pop .5s cubic-bezier(.2, 1.4, .4, 1); }
.enq-check svg { width: 40px; height: 40px; }
@keyframes enq-pop { from { transform: scale(.4); opacity: 0; } }
@media (max-width: 560px) { .enq-modal { padding: 22px 18px; } .enq-modal .form-row { grid-template-columns: 1fr; } }
.footer-contact a svg { display: inline-block; width: 15px; height: 15px; vertical-align: -2px; margin-right: 6px; }
.footer-contact a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; text-transform: uppercase; letter-spacing: .04em; }
.team-badge.sales { background: #e8f1fb; color: var(--blue); }
.team-badge.support { background: #fdeaea; color: var(--red); }
.contact-chips { max-width: 640px; }
.contact-chips > a b { color: var(--red); font-weight: 700; margin-right: 2px; }
