/* Pathraboard — legal & support pages. Same look as the landing page (index.html). */
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap");

:root {
  --bg: #0a0a0f;
  --bg-2: #12121a;
  --fg: #f5f5f7;
  --muted: #8b8b96;
  --soft: #c9c9d1;
  --accent: #6366f1;
  --accent-2: #a855f7;
  --pink: #ec4899;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-strong: rgba(255, 255, 255, 0.07);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.7 Inter, -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* same animated glow + grid as the landing page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(99, 102, 241, 0.22), transparent 60%),
    radial-gradient(ellipse 70% 50% at 80% 80%, rgba(168, 85, 247, 0.16), transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(236, 72, 153, 0.12), transparent 60%);
  z-index: -1;
  animation: breathe 12s ease-in-out infinite;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
  pointer-events: none;
}
@keyframes breathe {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}
@media (prefers-reduced-motion: reduce) { body::before { animation: none; } }

a { color: #a5a6f6; text-underline-offset: 3px; }
a:hover { color: #c7c8ff; }

/* ---------- top bar ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.top-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  font: 700 22px/1 "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
  text-decoration: none;
  background: linear-gradient(135deg, #fff 0%, #a855f7 50%, #6366f1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand .star { display: none; }

.lang {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  text-decoration: none;
}
.lang a, .lang span {
  font: 600 13px/1 Inter, sans-serif;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
}
.lang a[aria-current="true"] { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }

/* ---------- hero ---------- */
.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 20px 32px;
}
.hero[hidden] { display: none; }
.cutout { display: none; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  backdrop-filter: blur(10px);
}
.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 12px #10b981;
}
.hero h1 {
  font: 700 clamp(38px, 6.5vw, 64px)/1.04 "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #fff 0%, #c4b5fd 55%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .lead { font-size: 18px; color: var(--soft); max-width: 640px; }
.hero .meta { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* ---------- layout ---------- */
.layout {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 64px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.layout.no-toc { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.layout > * { min-width: 0; }

.toc { position: sticky; top: 90px; font-size: 14px; }
.toc .toc-title { font: 600 12px/1 Inter, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 6px 0 12px; }
.toc ol { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.toc a {
  display: block;
  padding: 7px 12px;
  border-radius: 10px;
  color: var(--soft);
  text-decoration: none;
  line-height: 1.35;
}
.toc a:hover { background: var(--glass); color: var(--fg); }
.toc a.active { background: var(--glass-strong); color: var(--fg); box-shadow: inset 2px 0 0 var(--accent-2); }

/* ---------- content ---------- */
article {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 44px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  counter-reset: sec;
  color: var(--soft);
}
article[hidden] { display: none; }
article p { margin: 0 0 14px; }
article strong { color: var(--fg); }
article em { color: var(--fg); font-style: normal; }

article h2 {
  counter-increment: sec;
  display: flex;
  align-items: center;
  gap: 12px;
  font: 600 21px/1.3 "Space Grotesk", sans-serif;
  color: var(--fg);
  margin: 40px 0 12px;
  scroll-margin-top: 96px;
}
article > h2:first-child, article > .contact:first-child { margin-top: 0; }
article h2::before {
  content: counter(sec);
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font: 600 13px/1 Inter, sans-serif;
}
article h2.plain { counter-increment: none; }
article h2.plain::before { display: none; }

ul { padding-left: 22px; margin: 0 0 14px; }
li { margin: 6px 0; }
li::marker { color: var(--accent-2); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 16px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
td:first-child { color: var(--fg); }

/* "at a glance" */
.glance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 4px 0 20px;
}
.glance div {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(168, 85, 247, 0.08));
  border: 1px solid rgba(129, 140, 248, 0.25);
  border-radius: 16px;
  padding: 18px;
  font-size: 14px;
  line-height: 1.5;
}
.glance strong { display: block; font: 600 16px/1.3 "Space Grotesk", sans-serif; margin: 10px 0 4px; }
.glance svg { width: 26px; height: 26px; color: #a5b4fc; }

/* support */
.faq { display: grid; gap: 10px; margin-top: 8px; }
details {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0 20px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
details:hover { border-color: var(--border-strong); }
details[open] { background: var(--glass-strong); }
summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  color: var(--fg);
  padding: 16px 30px 16px 0;
  position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 12px;
  font: 400 24px/1 Inter, sans-serif;
  color: #a5b4fc;
}
details[open] summary::after { content: "–"; }
details p { margin: 0 0 16px; }

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(168, 85, 247, 0.18) 60%, rgba(236, 72, 153, 0.15));
  border: 1px solid rgba(129, 140, 248, 0.3);
  border-radius: 20px;
  padding: 24px 26px;
  margin-bottom: 32px;
}
.contact h2 { margin: 0 0 4px; }
.contact p { margin: 0; color: var(--soft); font-size: 15px; }
.contact a.btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  text-decoration: none;
  font: 600 15px/1 Inter, sans-serif;
  padding: 14px 18px;
  border-radius: 12px;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact a.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border); }
.foot-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14px;
  color: var(--muted);
}
.foot-inner a { color: var(--soft); text-decoration: none; }
.foot-inner a:hover { color: var(--fg); }
.foot-inner .copy { margin-right: auto; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .hero { padding-top: 36px; }
  .layout { grid-template-columns: 1fr; gap: 16px; }
  .toc { position: static; }
  .toc .toc-title { display: none; }
  .toc ol { flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 4px; scrollbar-width: none; }
  .toc a { white-space: nowrap; background: var(--glass); border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; }
  .toc a.active { box-shadow: none; border-color: var(--accent-2); }
  article { padding: 26px 20px; border-radius: 20px; }
  .glance div { padding: 14px; }
  table { font-size: 14px; }
  th, td { padding: 10px 6px; }
}
