/* Hubversity shared styles for secondary pages (FAQ, privacy, 404).
   index.html is self-contained by design and does not use this file.
   See DESIGN-LANGUAGE.md for the full system. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --paper: #fafbfd;
  --ink: #0e1b33;
  --muted: #55627b;
  --line: #dee4ef;
  --cobalt: #1743d6;
  --ice: #e8eefb;
  --soft: #f1f4fa;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 17.5px;
  line-height: 1.62;
  font-optical-sizing: auto;
}
::selection { background: var(--cobalt); color: #fff; }
a { color: var(--cobalt); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.col { max-width: 760px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: "Plus Jakarta Sans", sans-serif; text-wrap: balance; margin: 0; }

.btn {
  display: inline-block; font-family: "Plus Jakarta Sans", sans-serif; font-size: 15px; font-weight: 620;
  background: linear-gradient(180deg, #2e59ec, #1539c2); color: #fff; border: none; border-radius: 999px;
  padding: 12px 26px; text-decoration: none; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 14px -8px rgba(23, 67, 214, 0.5);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { background: linear-gradient(180deg, #2b53de, #1130a8); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 24px -12px rgba(23, 67, 214, 0.6); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* ---------- nav ---------- */
header { position: sticky; top: 0; z-index: 50; padding-top: 12px; }
nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 12px 10px 22px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.34));
  backdrop-filter: blur(18px) saturate(1.7); -webkit-backdrop-filter: blur(18px) saturate(1.7);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 6px 24px -14px rgba(14, 27, 51, 0.25);
}
.word { display: flex; align-items: center; text-decoration: none; }
.word img { height: 26px; width: auto; display: block; }
.navlinks { display: flex; align-items: center; gap: 22px; font-family: "Plus Jakarta Sans", sans-serif; font-size: 14.5px; }
.navlinks a.plain { color: var(--muted); text-decoration: none; }
.navlinks a.plain:hover { color: var(--ink); }
@media (max-width: 700px) { .navlinks a.hide-s { display: none; } }

/* ---------- page head ---------- */
/* overflow-x: clip because the ::before glow below bleeds 6% past each side by
   design; without it that bleed adds horizontal page scroll. clip rather than
   hidden: hidden would make this a scroll container, forcing overflow-y to auto
   and breaking position: sticky for anything inside. */
.phead { padding: 56px 0 30px; position: relative; z-index: 0; overflow-x: clip; }
.phead::before {
  content: ""; position: absolute; inset: -30% -6% 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(460px 300px at 18% 10%, rgba(23, 67, 214, 0.11), transparent 70%),
    radial-gradient(420px 280px at 88% 0%, rgba(109, 141, 255, 0.14), transparent 70%);
}
.phead h1 {
  font-size: clamp(34px, 5vw, 52px); line-height: 1.05; font-weight: 240;
  letter-spacing: -0.018em; margin: 0 0 16px;
}
.phead h1 b { font-weight: 650; }
.phead .lead { color: var(--muted); font-size: 18px; max-width: 60ch; margin: 0; }

main { padding-bottom: 60px; }
.prose h2 { font-size: clamp(21px, 2.6vw, 26px); font-weight: 640; line-height: 1.2; margin: 40px 0 10px; }
.prose h3 { font-size: 18px; font-weight: 640; margin: 26px 0 6px; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 16px; padding-left: 20px; }
.prose li { margin-bottom: 7px; }
.prose .muted { color: var(--muted); }

/* ---------- faq ---------- */
.faqlist { border-top: 1px solid var(--line); margin-top: 34px; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font-family: "Plus Jakarta Sans", sans-serif; font-weight: 620; font-size: 18.5px; line-height: 1.35;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; position: absolute; right: 8px; top: 27px; width: 11px; height: 11px;
  border-right: 2px solid var(--cobalt); border-bottom: 2px solid var(--cobalt);
  transform: rotate(45deg); transition: transform 0.25s ease;
}
.qa[open] summary::after { transform: rotate(-135deg); }
.qa summary:hover { color: var(--cobalt); }
.qa .ans { padding: 0 40px 22px 0; color: var(--muted); max-width: 68ch; }
.qa .ans p { margin: 0 0 12px; }
.qa .ans p:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .qa summary::after { transition: none; } }

/* ---------- callout ---------- */
.note {
  border-radius: 16px; padding: 20px 24px; margin: 0 0 30px;
  background: linear-gradient(150deg, rgba(232, 238, 251, 0.92), rgba(232, 238, 251, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.note p { margin: 0; font-size: 16px; }
.note strong { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 640; }
.big-email {
  font-family: "Plus Jakarta Sans", sans-serif; font-weight: 640; font-size: 22px;
  color: var(--cobalt); text-decoration: none;
}
.big-email:hover { text-decoration: underline; }
.todo {
  display: inline-block; font-family: "Plus Jakarta Sans", sans-serif; font-size: 11px; font-weight: 650;
  letter-spacing: 0.08em; text-transform: uppercase; color: #8a5a1f;
  background: #f6edda; border: 1px dashed #c79a4e; border-radius: 6px;
  padding: 2px 8px; vertical-align: 1px;
}

/* ---------- cta strip ---------- */
.endcta { border-top: 1px solid var(--line); padding: 46px 0; text-align: center; }
.endcta h2 { font-size: clamp(24px, 3.2vw, 32px); font-weight: 250; margin: 0 0 8px; }
.endcta h2 b { font-weight: 640; }
.endcta p { color: var(--muted); margin: 0 0 22px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 30px 0 44px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; justify-content: space-between; }
footer .fnote { font-family: "Plus Jakarta Sans", sans-serif; font-size: 13px; color: var(--muted); }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }

/* ---------- 404 ---------- */
.oops { text-align: center; padding: 90px 0 70px; }
.oops .big { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 240; font-size: clamp(64px, 12vw, 120px); line-height: 1; color: var(--cobalt); letter-spacing: -0.03em; }
.oops h1 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 250; margin: 14px 0 12px; }
.oops h1 b { font-weight: 640; }
.oops p { color: var(--muted); margin: 0 auto 26px; max-width: 46ch; }
