/* ============================================
   Water LLM — Site Chrome
   Header, footer, and document-level defaults for
   the static site hosted on Netlify.

   Loaded on every page BEFORE global.css so that
   page-level styles keep the final say.
   ============================================ */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

/* Keyboard users land here first */
.wl-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--gray-900);
  color: var(--white);
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
}
.wl-skip-link:focus { left: 0; }

/* ===== HEADER ===== */
.wl-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--gray-300);
}

.wl-site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.wl-site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--gray-900);
  text-decoration: none;
  flex-shrink: 0;
}

.wl-site-brand__mark {
  width: 28px;
  height: 28px;
  display: block;
}

.wl-site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.wl-site-nav__link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.wl-site-nav__link:hover { color: var(--gray-900); background: var(--gray-100); }

.wl-site-nav__link.is-active {
  color: var(--purple-dark);
  background: rgba(124, 92, 252, 0.09);
  font-weight: 600;
}

.wl-site-nav__cta {
  margin-left: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  background: var(--gradient);
  box-shadow: 0 4px 14px rgba(124, 92, 252, 0.3);
  transition: var(--transition);
  white-space: nowrap;
}

.wl-site-nav__cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(124, 92, 252, 0.4); }

/* Menu toggle is a checkbox so the nav needs no JavaScript */
.wl-site-nav__toggle { display: none; }
.wl-site-nav__burger { display: none; }

@media (max-width: 860px) {
  .wl-site-header__inner { height: 60px; flex-wrap: wrap; }

  .wl-site-nav__burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    margin-left: auto;
    padding: 0 9px;
    border-radius: var(--radius-sm);
    cursor: pointer;
  }
  .wl-site-nav__burger:hover { background: var(--gray-100); }
  .wl-site-nav__burger span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--gray-900);
  }

  .wl-site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0 0 12px;
  }

  .wl-site-nav__toggle:checked ~ .wl-site-nav { display: flex; }

  .wl-site-nav__link { padding: 12px 14px; font-size: 1rem; }
  .wl-site-nav__cta { margin: 8px 0 0; text-align: center; }
}

/* ===== FOOTER ===== */
.wl-site-footer {
  background: var(--gray-900);
  color: rgba(255, 255, 255, 0.65);
  padding: 64px 24px 40px;
  font-size: 0.9rem;
}

.wl-site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}

.wl-site-footer__mark {
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
}

.wl-site-footer__tagline { line-height: 1.6; max-width: 300px; margin: 0; }

.wl-site-footer__parent {
  margin: 16px 0 0;
  max-width: 300px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
}

.wl-site-footer__parent a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  transition: var(--transition);
}

.wl-site-footer__parent a:hover { color: var(--white); border-bottom-color: var(--white); }

.wl-site-footer__heading {
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.wl-site-footer__list { list-style: none; margin: 0; padding: 0; }
.wl-site-footer__list li { margin-bottom: 10px; }

.wl-site-footer__list a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: var(--transition);
}
.wl-site-footer__list a:hover { color: var(--white); }

.wl-site-footer__bottom {
  max-width: var(--max-width);
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

.wl-site-footer__bottom a { color: inherit; text-decoration: none; }
.wl-site-footer__bottom a:hover { color: var(--white); }

/* Privacy and EULA also sit in the bottom bar, which is where people look
   for them, not only in the Company column above. */
.wl-site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

@media (max-width: 860px) {
  .wl-site-footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .wl-site-footer__inner { grid-template-columns: 1fr; }
  .wl-site-footer__bottom { flex-direction: column; gap: 16px; }
  .wl-site-footer__legal { gap: 16px; }
}

/* ===== 404 ===== */
.wl-notfound {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px;
  gap: 20px;
}
.wl-notfound__code {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================
   Google Workspace Marketplace install card

   Water LLM is a Workspace add-on: people have to install it from the
   Marketplace before they can use it. This block is repeated wherever
   that step matters, so it is styled once here.
   ============================================ */

.wl-install {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 32px;
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.wl-install__mark {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--gray-100);
  font-size: 1.6rem;
  line-height: 1;
}

.wl-install__body { flex: 1 1 320px; }

.wl-install__body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}

.wl-install__body p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--gray-700);
}

.wl-install__cta { flex-shrink: 0; }

@media (max-width: 700px) {
  .wl-install { padding: 24px; gap: 18px; }
  .wl-install__cta, .wl-install__cta .wl-btn { width: 100%; }
}

