/* Integration: Google Workspace - page-specific design.
   Google's own four brand colours stand in for a Zoho-style four-colour band here, appearing
   once as dots in the hero tag - a deliberate one-page echo of the Zoho four-colour convention,
   using GOOGLE's actual four colours instead. The tab-switch tracker is the page's own mechanic:
   unlike Microsoft 365's inbox-boundary switch, this one is about friction (how many times you
   leave the tool you're in), not about what data crosses a privacy line.

   All classes scoped to .gws-page, prefixed gws-. */

.gws-page {
  --gws: #4285F4;
  --gws-d: #1a56c4;
  --gws-l: #eaf1fd;
  --gws-ink: #0d2043;
}

/* ---------------------------------------------------------------------- hero -- */
.gws-hero {
  padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px);
  background: linear-gradient(190deg, var(--gws-l) 0%, var(--white) 60%);
  border-block-end: 1px solid color-mix(in srgb, var(--gws) 18%, var(--line));
}
.gws-hero-in {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(24px, 4vw, 56px); align-items: center;
}
.gws-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px; background: var(--white);
  border: 1px solid color-mix(in srgb, var(--gws) 30%, var(--line));
  border-radius: 999px; font-weight: 700; color: var(--gws-d); font-size: .9rem;
  margin-block-end: 18px;
}
.gws-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gc); display: inline-block; }
.gws-hero h1 { font-size: clamp(1.85rem, 4.1vw, 2.95rem); line-height: 1.16; margin: 0 0 14px; color: var(--gws-ink); }
.gws-hero .lede { max-width: 64ch; margin-block-end: 26px; }
.gws-acts { display: flex; flex-wrap: wrap; gap: 12px; }

/* a Gmail-like window with a CRM panel docked beside the message */
.gws-hero-vis { display: grid; place-items: center; }
.gws-gmail {
  width: 100%; max-width: 300px;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px; display: grid; grid-template-columns: 1.3fr .9fr; gap: 12px;
  box-shadow: 0 20px 46px -30px rgba(10, 30, 70, .4);
}
.gws-gm-bar { grid-column: 1 / -1; display: block; height: 8px; width: 42%; border-radius: 5px; background: color-mix(in srgb, var(--gws) 28%, #e2e8ee); }
.gws-gm-line { display: block; height: 9px; border-radius: 4px; background: #eceef2; }
.gws-gm-short { width: 70%; }
.gws-panel {
  grid-row: 2 / span 2; border-radius: 10px; padding: 10px;
  background: var(--gws-l); border: 1px solid color-mix(in srgb, var(--gws) 26%, var(--line));
  display: grid; gap: 7px; align-content: start;
}
.gws-panel i { display: block; height: 26px; border-radius: 7px; background: color-mix(in srgb, var(--gws) 22%, var(--white)); }
.gws-panel b { display: block; height: 8px; width: 60%; border-radius: 4px; background: color-mix(in srgb, var(--gws) 40%, var(--white)); }

@media (prefers-reduced-motion: no-preference) {
  .gws-panel { animation: gws-slide 4.6s ease-in-out infinite; }
}
@keyframes gws-slide { 0%, 100% { transform: translateX(0) } 50% { transform: translateX(-4px) } }

/* -------------------------------------------------------------------- switches -- */
.gws-switch { padding: clamp(48px, 7vw, 84px) 0; }
.gws-switch h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); margin: 0 0 12px; }
.gws-switch .lede { max-width: 82ch; }

.gws-day {
  margin-block-start: 28px;
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(16px, 3vw, 26px);
  box-shadow: 0 20px 50px -40px rgba(10, 30, 70, .35);
}
.gws-day-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px; flex-wrap: wrap;
  padding-block-end: 14px; margin-block-end: 16px;
  border-block-end: 1px solid var(--line);
}
.gws-clock { margin: 0; color: var(--muted); font-weight: 600; }
.gws-clock b { color: var(--gws-d); font-size: 1.3rem; margin-inline-start: 6px; font-variant-numeric: tabular-nums; }
.gws-replay {
  font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer;
  color: var(--gws-d); background: var(--white);
  border: 1px solid color-mix(in srgb, var(--gws) 40%, var(--line));
  border-radius: 9px; padding: 8px 15px;
}
.gws-replay:hover { background: var(--gws-l); }

.gws-track { display: grid; gap: 8px; min-height: 260px; }
.gws-ev {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 10px 14px; border-radius: 10px;
  background: #f7f8f9; border: 1px solid var(--line);
}
@media (prefers-reduced-motion: no-preference) {
  .gws-ev { animation: gws-in .3s ease-out both; }
}
@keyframes gws-in { from { opacity: 0; transform: translateY(-4px) } to { opacity: 1; transform: none } }
.gws-ev-t { font-size: .78rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.gws-ev-l { font-size: .92rem; color: var(--ink); }
.gws-ev-flag {
  font-size: .74rem; font-weight: 800; white-space: nowrap;
  color: #a5191b; background: color-mix(in srgb, var(--zoho-red) 10%, var(--white));
  border: 1px solid color-mix(in srgb, var(--zoho-red) 30%, var(--line));
  padding: 3px 9px; border-radius: 999px;
}
.gws-ev.is-switch { background: color-mix(in srgb, var(--zoho-red) 4%, var(--white)); }

.gws-count {
  margin-block-start: 18px; padding-block-start: 16px;
  border-block-start: 1px solid var(--line);
  display: flex; gap: 28px; flex-wrap: wrap;
}
.gws-count > div { display: flex; align-items: baseline; gap: 8px; }
.gws-count b { font-size: 1.7rem; color: #a5191b; font-variant-numeric: tabular-nums; }
.gws-count span { color: var(--muted); font-size: .9rem; }
.gws-count-good b { color: var(--gws-d); }
.gws-note { margin-block-start: 18px; color: var(--muted); font-size: .93rem; max-width: 84ch; }

/* ------------------------------------------------------------------------ need -- */
.gws-need {
  padding: clamp(40px, 6vw, 64px) 0;
  background: var(--gws-l);
  border-block: 1px solid color-mix(in srgb, var(--gws) 16%, var(--line));
}
.gws-need h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); margin: 0 0 12px; }
.gws-need .lede { max-width: 82ch; margin: 0; }

/* -------------------------------------------------------------------- scenarios -- */
.gws-scen { padding: clamp(48px, 7vw, 84px) 0; }
.gws-scen h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0 0 22px; }
.gws-scen-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.gws-sc {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
}
.gws-sc b { width: 10px; height: 10px; margin-top: 4px; border-radius: 3px; background: var(--gwsz, var(--gws-d)); }
.gws-sc:nth-child(4n+1) b { --gwsz: var(--zoho-red); }
.gws-sc:nth-child(4n+2) b { --gwsz: var(--zoho-green); }
.gws-sc:nth-child(4n+3) b { --gwsz: var(--zoho-blue); }
.gws-sc:nth-child(4n+4) b { --gwsz: var(--zoho-yellow); }
.gws-sc p { margin: 0; color: var(--ink); font-size: .93rem; }

/* ----------------------------------------------------------------------- move -- */
.gws-move {
  padding: clamp(48px, 7vw, 84px) 0;
  background: var(--gws-l);
  border-block: 1px solid color-mix(in srgb, var(--gws) 16%, var(--line));
}
.gws-move h2 { font-size: 1.35rem; margin: 0 0 10px; }
.gws-move h3 { font-size: 1.08rem; }

/* ------------------------------------------------------------------------- do -- */
.gws-do { padding: clamp(48px, 7vw, 84px) 0; }
.gws-do h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0 0 24px; }
.gws-do-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 13px; }
.gws-do-steps > div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; }
.gws-do-steps b { display: block; margin-block-end: 6px; font-size: 1.02rem; color: var(--gws-d); }
.gws-do-steps p { margin: 0; color: var(--muted); font-size: .95rem; }

/* --------------------------------------------------------------------- decide -- */
.gws-decide { padding: clamp(40px, 6vw, 64px) 0 0; }
.gws-decide h3 { font-size: 1.3rem; margin: 0 0 16px; }

/* ------------------------------------------------------------------------- faq -- */
.gws-faq { padding: clamp(40px, 6vw, 64px) 0 clamp(24px, 4vw, 40px); }
.gws-faq h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0 0 20px; }

/* ----------------------------------------------------------------------- close -- */
.gws-close { padding: 0 0 clamp(48px, 7vw, 84px); }
.gws-close-box {
  display: flex; align-items: center; justify-content: space-between;
  gap: 22px; flex-wrap: wrap; border-radius: 20px;
  padding: clamp(26px, 4vw, 42px);
  background: linear-gradient(130deg, var(--gws-d), #0b2452);
}
.gws-close-box h2 { color: var(--white); margin: 0 0 8px; font-size: clamp(1.25rem, 2.7vw, 1.85rem); }
.gws-close-box .lede { color: color-mix(in srgb, var(--white) 86%, transparent); margin: 0; max-width: 62ch; }

/* --------------------------------------------------------------------- narrow -- */
@media (max-width: 900px) {
  .gws-hero-in { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .gws-gmail { grid-template-columns: 1fr; }
  .gws-panel { grid-row: auto; }
  .gws-ev { grid-template-columns: 48px minmax(0, 1fr); }
  .gws-ev-flag { grid-column: 1 / -1; justify-self: start; }
}
