/* ═══════════════════════════════════════════════
   SHARED MARKETING CHROME
   Used on helpspot.it/, /pricing, /security, etc.
   ═══════════════════════════════════════════════ */

/* Spot logo — green circle behind the "o" */
.spot-logo,
.spot-logo:link,
.spot-logo:hover,
.spot-logo:visited,
.spot-logo:focus,
.spot-logo:active {
  position: fixed;
  top: 20px; left: 20px;
  z-index: 560;
  font-family: 'Google Sans Display', sans-serif;
  font-size: 1.5rem; font-weight: 500;
  letter-spacing: -0.02em;
  color: #1d1d1f;
  display: flex; align-items: center;
  user-select: none;
  cursor: pointer;
  text-decoration: none !important;
}
@media (min-width: 768px) {
  .spot-logo { top: 32px; left: 40px; font-size: 2rem; }
}
.spot-logo-o {
  position: relative;
  color: transparent;
}
.spot-logo-o::after {
  content: '';
  position: absolute;
  width: 0.6em; height: 0.6em;
  left: 50%; top: 50%;
  transform: translate(-50%, -42%);
  border-radius: 50%;
  background: url('/spot-logo-canva-2.png') center/cover no-repeat;
}

/* Header nav */
.header-nav {
  position: fixed;
  top: 32px; left: 50%; transform: translateX(-50%);
  z-index: 99;
  display: flex; gap: 32px;
  flex-wrap: nowrap; white-space: nowrap;
}
.header-link {
  font-size: 0.95rem; font-weight: 500;
  color: #515154; text-decoration: none;
  transition: color 0.15s;
}
.header-link:hover { color: #1d1d1f; }
.header-link-cta {
  background: #2383e2; color: #fff;
  padding: 10px 16px; border-radius: 8px;
  margin: -10px 0; transition: background 0.15s;
}
.header-link-cta:hover { color: #fff; background: #1b6ec2; }

/* Top-right CTAs */
.top-nav {
  position: fixed;
  top: 24px; right: 40px;
  z-index: 99;
  display: flex; gap: 10px; align-items: center;
}
.nav-cta {
  padding: 12px 24px; background: #e2e2e6; color: #1d1d1f;
  border: none; border-radius: 10px;
  font-size: 0.95rem; font-weight: 500; cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  font-family: inherit;
}
.nav-cta:hover { background: #d8d8dd; transform: scale(1.03); }
.nav-login {
  padding: 12px 20px; background: #f2f2f4; color: #1d1d1f;
  border: none; border-radius: 10px;
  font-size: 0.95rem; font-weight: 500; cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}
.nav-login:hover { background: #e8e8ed; }

/* Mobile header */
.mobile-cta, .burger-btn { display: none; }
.mobile-cta {
  position: fixed; top: 18px; right: 70px; z-index: 99;
  padding: 10px 16px; background: #2383e2; border: none; border-radius: 8px;
  font-size: 0.95rem; font-weight: 500; cursor: pointer;
  font-family: inherit;
  align-items: center;
  text-decoration: none; white-space: nowrap;
  transition: background 0.15s;
}
.mobile-cta, .mobile-cta:link, .mobile-cta:visited, .mobile-cta:hover { color: #fff; }
.mobile-cta:hover { background: #1b6ec2; }
.burger-btn {
  position: fixed; top: 18px; right: 20px; z-index: 560;
  width: 44px; height: 44px; background: none; border: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 6px; cursor: pointer;
}
.burger-line {
  width: 22px; height: 2px; background: #1d1d1f;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.burger-btn.open .burger-line:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.burger-btn.open .burger-line:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0;
  background: #fff; z-index: 550;
  transform: translateX(100%); transition: transform 0.3s ease;
  display: flex; flex-direction: column;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-inner {
  padding: 80px 32px 32px;
  display: flex; flex-direction: column; gap: 24px;
  height: 100%;
}
.mobile-menu-buttons { display: flex; flex-direction: column; gap: 12px; }
.mobile-menu-btn {
  padding: 14px 20px; border: none; border-radius: 10px;
  font-size: 1rem; font-weight: 500; cursor: pointer;
  font-family: inherit;
  display: block; text-align: center; text-decoration: none;
}
.mobile-menu-btn-primary,
.mobile-menu-btn-primary:link,
.mobile-menu-btn-primary:visited { background: #2383e2; color: #fff; }
.mobile-menu-btn-secondary { background: #f2f2f4; color: #1d1d1f; }
.mobile-menu-top { display: flex; flex-direction: column; gap: 18px; }
.mobile-menu-link {
  font-size: 1.1rem; font-weight: 500; color: #1d1d1f;
  text-decoration: none;
}
.mobile-menu-bottom {
  margin-top: auto;
  display: flex; flex-direction: column; gap: 12px;
  padding-top: 24px; border-top: 1px solid #eceded;
}
.mobile-menu-link-small {
  font-size: 0.85rem; color: #86868b; text-decoration: none;
}

/* Desktop footer — small, grey, single line, bottom-left */
.chrome-footer {
  position: fixed;
  bottom: 14px; left: 40px;
  z-index: 1;
  display: flex; align-items: center; gap: 8px;
  font-size: 0.75rem; color: #000;
  white-space: nowrap;
  pointer-events: none;
}
.chrome-footer-link {
  color: #000; text-decoration: none;
  pointer-events: auto;
  transition: text-decoration-color 0.15s;
}
.chrome-footer-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.chrome-footer-sep { color: #000; }
.chrome-footer-copy { color: #000; }

/* ── Login modal ── */
.login-dropdown {
  position: fixed; top: 82px; right: 40px; z-index: 1001;
  width: 320px; background: #fff; border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18), 0 2px 12px rgba(0,0,0,0.08), 0 0 0 0.5px rgba(0,0,0,0.06);
  padding: 28px;
  opacity: 0; transform: translateY(-8px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.22, 1, 0.36, 1), transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: top right;
}
.login-dropdown.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.login-input {
  width: 100%; padding: 16px 20px;
  border: 1.5px solid #e0e0e0; border-radius: 12px;
  font-family: inherit; font-size: 1.1rem; font-weight: 400; color: #1a1a1a;
  outline: none; transition: border-color 0.2s ease; background: #fff;
}
.login-input:focus { border-color: #1a1a1a; }
.login-input::placeholder { color: #b0b0b0; }
.login-btn {
  width: 100%; margin-top: 14px; padding: 16px;
  border: none; border-radius: 12px; background: #1a1a1a; color: #fff;
  font-family: inherit; font-size: 1.1rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s ease;
}
.login-btn:hover:not(:disabled) { background: #000; transform: scale(1.01); }
.login-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.login-sent-state, .login-notfound-state { display: none; text-align: center; }
.login-dropdown.sent .login-input-state,
.login-dropdown.notfound .login-input-state { display: none; }
.login-dropdown.sent .login-sent-state { display: block; }
.login-dropdown.notfound .login-notfound-state { display: block; }
.login-sent-icon { margin-bottom: 16px; }
.login-sent-title { font-size: 1.25rem; font-weight: 600; color: #1a1a1a; margin-bottom: 8px; }
.login-sent-detail {
  font-size: 1rem; color: #86868b; line-height: 1.5; margin-bottom: 16px;
  word-break: break-word; overflow-wrap: anywhere;
}
.login-sent-detail strong { color: #1a1a1a; font-weight: 600; word-break: break-word; overflow-wrap: anywhere; }
.login-cta {
  width: 100%; padding: 14px 20px; border: none; border-radius: 12px;
  background: #2383e2; color: #fff; font-family: inherit; font-size: 1rem; font-weight: 500;
  cursor: pointer; transition: background 0.15s; margin-bottom: 10px;
}
.login-cta:hover { background: #1b6ec2; }
.login-not-me {
  background: none; border: none; font-family: inherit; font-size: 0.85rem;
  font-weight: 500; color: #86868b; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; padding: 4px 0;
  transition: color 0.2s ease;
}
.login-not-me:hover { color: #1a1a1a; }
.login-overlay { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1000; display: none; }
.login-overlay.open { display: block; }
.login-polling {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 14px;
}
.login-polling.hidden { display: none; }
.login-polling-spinner { width: 16px; height: 16px; flex-shrink: 0; }
.login-polling-spinner svg { width: 100%; height: 100%; animation: chromeSpin 1.2s linear infinite; }
.login-polling-text { font-size: 0.75rem; color: #86868b; animation: chromePulse 2s ease-in-out infinite; }
@keyframes chromeSpin { to { transform: rotate(360deg); } }
@keyframes chromePulse { 0%,100% { opacity: 1; } 50% { opacity: 0.55; } }

@media (max-width: 767px) {
  .header-nav, .top-nav { display: none; }
  .mobile-cta, .burger-btn { display: flex; }
  .login-dropdown { top: 70px; right: 16px; left: 16px; width: auto; padding: 24px 20px; }
  .chrome-footer { display: none; }
}

/* Cramped — desktop-width but the centre tabs would crash into the logo
   or top-nav (sub-30px clearance). Toggled by chrome.js measureChromeFit().
   Keeps the desktop logo size; only swaps the nav for the burger. */
body.chrome-cramped .header-nav,
body.chrome-cramped .top-nav { display: none; }
body.chrome-cramped .mobile-cta,
body.chrome-cramped .burger-btn { display: flex; }
body.chrome-cramped .login-dropdown { top: 70px; right: 16px; left: 16px; width: auto; padding: 24px 20px; }
