/* elbow — shared nav + footer + base, used across landing and subpages.
   Palette lifted from the app's ElbowTheme (dark, periwinkle + lavender). */

:root {
  --bg:          #0E1220;
  --card:        #131728;
  --card-alt:    #1A1F35;
  --line:        rgba(143, 168, 255, .14);
  --line-strong: rgba(143, 168, 255, .30);
  --text:        #E8EAF4;
  --muted:       #8892B0;
  --faint:       rgba(232, 234, 244, .45);
  --peri:        #8FA8FF;   /* primary accent */
  --peri-dim:    #6E86D8;
  --lav:         #A78BFA;   /* secondary accent */
  --green:       #5DCAA5;
  --amber:       #E0953A;
  --site-maxw:   1120px;
}

/* NAV */
.site-nav {
  align-self: stretch;
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(14, 18, 32, .82);
  border-bottom: 1px solid var(--line);
  width: 100%;
}
.site-nav-in {
  max-width: var(--site-maxw);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex; align-items: center; gap: 28px;
}
.site-nav .logo {
  font-family: 'Sora', sans-serif;
  font-size: 18px; font-weight: 700;
  letter-spacing: -.03em;
  color: var(--text);
  text-decoration: none; border: none;
  display: inline-flex; align-items: center; gap: 9px;
  transition: opacity .2s;
}
.site-nav .logo .mark {
  width: 22px; height: 22px; border-radius: 7px;
  background: linear-gradient(145deg, var(--peri), var(--lav));
  display: inline-block;
  box-shadow: 0 4px 14px rgba(143, 168, 255, .35);
}
.site-nav .logo:hover { opacity: .85; }
.site-nav .logo img { height: 22px; width: auto; display: block; }
.site-nav .spacer { flex: 1; }
.site-nav .btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 14px;
  padding: 11px 20px; border-radius: 11px;
  transition: .2s; border: 1px solid transparent;
  white-space: nowrap; text-decoration: none;
  font-family: inherit; cursor: pointer;
}
.site-nav .btn-accent {
  background: linear-gradient(180deg, var(--peri), var(--peri-dim));
  color: #0b1020;
  box-shadow: 0 6px 20px rgba(143, 168, 255, .28);
}
.site-nav .btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 26px rgba(143, 168, 255, .40);
  color: #0b1020;
}
.site-nav .btn-ghost {
  border-color: var(--line-strong);
  color: var(--text); background: transparent;
}
.site-nav .btn-ghost:hover {
  border-color: var(--peri);
  background: rgba(143, 168, 255, .08);
  color: var(--peri);
}
.site-nav .btn-sm { padding: 8px 14px; font-size: 13px; }
.site-nav .btn-sm .arrow { display: inline-block; transition: transform .2s; }
.site-nav .btn-sm:hover .arrow { transform: translateX(-3px); }

/* FOOTER */
.site-footer {
  align-self: stretch;
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  font-size: 13px; color: var(--muted);
  width: 100%; margin-top: auto;
}
.site-footer-in { max-width: var(--site-maxw); margin: 0 auto; padding: 0 28px; }
.site-footer .fgrid {
  display: flex; gap: 36px; flex-wrap: wrap;
  justify-content: space-between; margin-bottom: 22px;
}
.site-footer .fgrid a {
  display: block; padding: 2px 0;
  color: var(--muted); text-decoration: none; border: none;
}
.site-footer .fgrid a:hover { color: var(--peri); }
.site-footer .flogo {
  font-family: 'Sora', sans-serif;
  font-size: 17px; font-weight: 700; letter-spacing: -.03em;
  color: var(--text); margin-bottom: 10px;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  border: none;
}
.site-footer .flogo .mark {
  width: 18px; height: 18px; border-radius: 6px;
  background: linear-gradient(145deg, var(--peri), var(--lav));
}
.site-footer .flogo img { height: 20px; width: auto; display: block; }
.site-footer h5 {
  font-size: 10.5px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--peri); margin-bottom: 8px; font-weight: 600;
}
.site-footer .built { font-size: 13px; margin-top: 2px; }
.site-footer .built a { display: inline; padding: 0; color: var(--lav); border: none; }
.site-footer .built a:hover { color: var(--peri); }
.site-footer .disc {
  border-top: 1px solid var(--line); padding-top: 18px;
  font-size: 12px; line-height: 1.55; color: rgba(232, 234, 244, .38);
}

@media (max-width: 760px) {
  .site-nav-in { padding: 12px 20px; gap: 16px; }
  .site-footer-in { padding: 0 20px; }
}

/* SUBPAGE (legal/support) shared layout */
main.page {
  position: relative; z-index: 1;
  width: 100%; max-width: 740px; margin: 0 auto;
  padding: 48px 20px 64px; flex: 1;
}
main.page h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 700;
  color: var(--text); letter-spacing: -.02em; line-height: 1.25; margin-bottom: 6px;
}
main.page .updated { display: block; margin-bottom: 28px; color: var(--faint); font-size: .8rem; }
main.page hr { border: none; border-top: 1px solid var(--line); margin: 28px 0; }
main.page h2 {
  font-family: 'Sora', sans-serif; color: var(--peri);
  font-size: 1.05rem; font-weight: 600; margin: 26px 0 10px; letter-spacing: -.01em;
}
main.page p, main.page li { color: rgba(232, 234, 244, .80); font-size: .95rem; line-height: 1.75; }
main.page p { margin-bottom: 14px; }
main.page ul { margin-bottom: 14px; padding-left: 22px; }
main.page li { margin-bottom: 5px; }
main.page a { color: var(--peri); text-decoration: none; border-bottom: 1px solid rgba(143, 168, 255, .35); }
main.page a:hover { color: var(--lav); border-bottom-color: var(--lav); }
main.page strong { color: var(--text); font-weight: 600; }
main.page em { color: rgba(232, 234, 244, .92); }
@media (max-width: 600px) { main.page { padding: 32px 14px 48px; } }

main.page h1 .wm-inline { height: 0.72em; width: auto; vertical-align: -0.02em; margin: 0 .06em; }
