/* ============================================================
   MonOn AI — Landing page (calm redesign)
   Depends on monon-ds.css (tokens, base, component classes).
   The feeling target: a quiet, sunlit room.
   ============================================================ */

body.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 80% at 50% -10%, var(--bg-tint-blue) 0%, var(--bg-page) 55%);
  background-attachment: fixed;
  color: var(--text-body);
}

/* ---------- Top navigation ---------- */
.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 20px 32px;
  position: relative;
  z-index: 1000;
}

.landing-brand .mon-logo__mark { color: var(--blue-600); }

.landing-nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.landing-nav__links a {
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: background var(--duration-normal) var(--ease-out),
              color var(--duration-normal) var(--ease-out);
}

.landing-nav__links a:hover {
  color: var(--text-strong);
  background: var(--bg-sunken);
  text-decoration: none;
}

.landing-nav__end {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Recolor the white person-icon SVG that script.js injects when signed in
   so it stays legible on the soft button. */
.get-started-btn svg,
.get-started-btn svg path { fill: currentColor; }
.get-started-btn svg { width: 18px; height: 18px; }

/* ---------- Hamburger (mobile) ---------- */
.landing-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  background: var(--surface-card);
  cursor: pointer;
}

.landing-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-strong);
  transition: transform var(--duration-normal) var(--ease-out),
              opacity var(--duration-fast) var(--ease-out);
}

#hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#hamburger.active span:nth-child(2) { opacity: 0; }
#hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mobile menu overlay ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: var(--bg-page);
  transform: translateY(-100%);
  transition: transform var(--duration-slow) var(--ease-out);
}

.mobile-menu.active { transform: translateY(0); }

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  gap: 14px;
}

.mobile-menu-content a {
  color: var(--text-strong);
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 500;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  transition: background var(--duration-normal) var(--ease-out);
}

.mobile-menu-content a:hover { background: var(--bg-sunken); text-decoration: none; }

/* ---------- Hero ---------- */
.landing-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 24px 60px;
}

.landing-hero__mark {
  width: 64px;
  height: 64px;
  color: var(--blue-600);
  margin-bottom: 22px;
}

.landing-hero__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 56px);
  color: var(--text-strong);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  max-width: 720px;
  text-wrap: balance;
}

.landing-hero__title .accent {
  font-style: italic;
  color: var(--primary-active);
}

.landing-hero__subtitle {
  font-family: var(--font-sans);
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  line-height: var(--leading-normal);
  margin: 0 0 36px;
  max-width: 520px;
  text-wrap: pretty;
}

.landing-hero .talk-btn i { font-size: 19px; }

/* ---------- Footer ---------- */
.landing-footer {
  text-align: center;
  padding: 0 24px 24px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--text-faint);
}

.landing-footer a {
  color: var(--text-muted);
  font-weight: 600;
  text-decoration: none;
}

.landing-footer a:hover { text-decoration: underline; }

/* ---------- Info modal (Bootstrap) re-skin ---------- */
#infoContentModal { z-index: 3100; }
.modal-backdrop.show { z-index: 3050; }

#infoContentModal .modal-content {
  background: var(--surface-card);
  color: var(--text-body);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

#infoContentModal .modal-header {
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-page);
  padding: 1rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 5;
}

#infoContentModal .modal-title {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--text-strong);
}

#infoContentModal .modal-body { padding: 1.15rem 1.35rem 1.4rem; }

.info-modal-body h5 {
  font-family: var(--font-serif);
  color: var(--text-strong);
  font-weight: 700;
  margin: 0.2rem 0 0.6rem;
}

.info-modal-body h6 {
  font-family: var(--font-sans);
  color: var(--text-strong);
  font-weight: 700;
  margin-top: 1.1rem;
  margin-bottom: 0.45rem;
}

.info-modal-body p,
.info-modal-body li {
  color: var(--text-body);
  line-height: 1.62;
  font-size: 0.98rem;
}

.info-modal-body ul { padding-left: 1.25rem; margin-bottom: 0.85rem; }
.info-modal-body li { margin-bottom: 0.36rem; }
.info-modal-body strong { color: var(--text-strong); }
.info-modal-body a { color: var(--text-link); font-weight: 600; }
.info-modal-body hr { border: 0; border-top: 1px solid var(--border-subtle); opacity: 1; }

/* The injected info tables use inline white hairlines (built for the old
   dark modal); recolor them to warm beige so they read on the light card. */
.info-modal-body table td,
.info-modal-body table th { border-bottom-color: var(--border-subtle) !important; }
.info-modal-body table th { color: var(--text-strong); }

/* ---------- Language switcher (injected into modal) ---------- */
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
  padding: 0.26rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-sunken);
}

.language-switcher .lang-btn {
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.34rem 0.78rem;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}

.language-switcher .lang-btn.is-active {
  background: var(--primary-soft);
  color: var(--primary-active);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .landing-nav {
    display: grid;
    grid-template-columns: 44px 1fr minmax(44px, auto);
    grid-template-areas: "start brand end";
    align-items: center;
    gap: var(--space-2);
    padding: calc(16px + env(safe-area-inset-top, 0px)) 18px 16px;
  }
  .landing-hamburger {
    display: flex;
    grid-area: start;
    justify-self: start;
  }
  .landing-brand {
    grid-area: brand;
    justify-self: center;
    min-width: 0;
  }
  .landing-nav__links { display: none; }
  .landing-nav__end {
    grid-area: end;
    justify-self: end;
  }
  .landing-nav__end .get-started-btn {
    max-width: min(140px, 28vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .get-started-btn.landing-cta-top { display: none; }
  .landing-nav__end { min-width: 44px; }
  /* Extra bottom padding biases the vertically-centered hero slightly upward */
  .landing-hero { padding: 16px 18px 120px; }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu { transition: none; }
  .landing-hamburger span { transition: none; }
}
