/* ============================================================
   Forum Center — language chooser landing
   ============================================================ */

html, body.landing { height: 100%; }

body.landing {
  margin: 0;
  overflow: hidden;
  font-family: var(--font-sans);
}

.split {
  display: flex;
  height: 100vh;
  height: 100dvh;
  width: 100%;
}

.split-panel {
  position: relative;
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  isolation: isolate;
  overflow: hidden;
  transition: flex-basis .5s cubic-bezier(.4,0,.2,1);
}

.split-panel.sl { background: var(--paper); color: var(--ink); align-items: flex-end; padding-right: 28px; }
.split-panel.it { background: var(--navy-900); color: var(--white); align-items: flex-start; padding-left: 28px; }
.split-panel.sl .panel-inner { text-align: right; }
.split-panel.it .panel-inner { text-align: left; }

.split:hover .split-panel:not(:hover) { flex-basis: 44%; }
.split:hover .split-panel:hover { flex-basis: 56%; }

.panel-inner { max-width: 420px; }

.panel-word {
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -0.02em;
  margin: 0;
}
.split-panel.sl .panel-word { color: var(--ink); }
.split-panel.it .panel-word .accent-italic { color: var(--blue-500); }
.split-panel.sl .panel-word .accent-italic { color: var(--blue-600); }

.panel-tagline {
  margin-top: 18px;
  font-size: 1.05rem;
  font-weight: 600;
}
.split-panel.sl .panel-tagline { color: var(--ink-soft); }
.split-panel.it .panel-tagline { color: rgba(255,255,255,0.72); }

.panel-cta {
  margin-top: 34px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: .95rem;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease, gap .2s ease;
}
.split-panel.sl .panel-cta { border-color: var(--ink); }
.split-panel.it .panel-cta { border-color: rgba(255,255,255,0.6); }
.split-panel:hover .panel-cta { gap: 16px; }

.panel-cta .arrow { transition: transform .2s ease; }
.split-panel:hover .panel-cta .arrow { transform: translateX(4px); }

.landing-mark {
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink-faint);
  text-align: center;
  pointer-events: none;
}

.landing-legal {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  font-size: .75rem;
  color: var(--ink-faint);
  text-align: center;
  pointer-events: none;
  white-space: nowrap;
}
.split:has(.it:hover) .landing-legal,
.split:has(.sl:hover) .landing-legal { color: rgba(120,130,150,0.55); }

@media (max-width: 720px) {
  .split { flex-direction: column; }
  .split-panel { flex-basis: 50% !important; padding: 28px; }
  .split:hover .split-panel:not(:hover) { flex-basis: 50% !important; }
  .split:hover .split-panel:hover { flex-basis: 50% !important; }
  /* stacked layout: merge vertically toward the shared boundary instead of the seam */
  .split-panel.sl { align-items: center; justify-content: flex-end; }
  .split-panel.it { align-items: center; justify-content: flex-start; }
  .split-panel.sl .panel-inner, .split-panel.it .panel-inner { text-align: center; }
  /* "Forum" needs to land right against the boundary too, so its tagline/button
     move above it instead of sitting between the two words. */
  .split-panel.sl .panel-inner {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 14px;
  }
  .split-panel.sl .panel-tagline,
  .split-panel.sl .panel-cta { margin-top: 0; }
  .panel-word { font-size: clamp(2.4rem, 13vw, 3.4rem); }
  .landing-mark { top: 18px; }
  .landing-legal { bottom: 12px; font-size: .68rem; padding: 0 20px; white-space: normal; }
}
