/* Content-page layer on top of styles.css, which is written for the
   full-bleed visualizer and locks scrolling. */

/* This stylesheet only loads on content pages, so it can override the
   visualizer's scroll lock unconditionally. */
html { height: auto; overflow: auto; }

body.page {
  height: auto;
  min-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

/* Ambient wash so the page shares the visualizer's atmosphere. */
.page-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(80vw 60vh at 20% -10%, rgba(177, 75, 255, .16), transparent 65%),
    radial-gradient(70vw 55vh at 95% 15%, rgba(0, 229, 255, .10), transparent 60%),
    radial-gradient(60vw 50vh at 50% 110%, rgba(255, 46, 136, .10), transparent 60%);
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 26px clamp(20px, 5vw, 56px);
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.lockup-link { text-decoration: none; }
.page-header .lockup-mark { width: 42px; height: 42px; }
.page-header .wordmark { font-size: clamp(20px, 3vw, 26px); }

.cta {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, .05);
  color: var(--text);
  text-decoration: none;
  font-size: 13.5px;
  white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.cta:hover {
  background: rgba(255, 255, 255, .11);
  border-color: var(--stroke-strong);
  transform: translateY(-1px);
}

.page-main {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 60px) clamp(20px, 5vw, 56px) 0;
}

.page-main h1 {
  font-size: clamp(38px, 8vw, 72px);
  font-weight: 200;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 18px;
}

.lede {
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.6;
  color: rgba(255, 255, 255, .62);
  max-width: 62ch;
  margin-bottom: clamp(32px, 6vw, 56px);
}

/* ---------- accordion ---------- */

.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

details {
  background: rgba(14, 16, 24, .62);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s ease, background .2s ease;
}
details:hover { border-color: var(--stroke-strong); }
details[open] { background: rgba(18, 20, 30, .78); }

summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  cursor: pointer;
  font-size: clamp(15px, 2vw, 17px);
  font-weight: 500;
  list-style: none;
  user-select: none;
}
summary::-webkit-details-marker { display: none; }

/* Chevron drawn in CSS so there is no icon dependency. */
summary::after {
  content: "";
  margin-left: auto;
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .25s ease, border-color .2s ease;
}
details[open] summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
  border-color: var(--accent);
}
summary:hover::after { border-color: var(--text); }

.answer {
  padding: 0 22px 22px;
  color: rgba(255, 255, 255, .68);
  font-size: 15px;
  line-height: 1.7;
  max-width: 74ch;
}
.answer p + p,
.answer ol,
.answer dl,
.answer .note { margin-top: 14px; }
.answer b { color: var(--text); font-weight: 600; }

.answer ol {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.answer ol::marker { color: var(--muted); }

.answer code {
  font: 500 13px/1 ui-monospace, Menlo, Consolas, monospace;
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--stroke);
  border-radius: 5px;
  padding: 2px 6px;
}

.note {
  border-left: 2px solid rgba(0, 229, 255, .45);
  padding-left: 14px;
  color: rgba(255, 255, 255, .55);
  font-size: 14px;
}

/* keyboard reference */
.keys {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px 20px;
  align-items: baseline;
}
.keys dt {
  font: 600 12px/1.4 ui-monospace, Menlo, Consolas, monospace;
  color: var(--text);
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--stroke);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 5px 9px;
  text-align: center;
  white-space: nowrap;
}
.keys dd { color: rgba(255, 255, 255, .66); font-size: 14.5px; }

/* ---------- closing ---------- */

.closing {
  display: flex;
  justify-content: center;
  padding: clamp(40px, 8vw, 80px) 0 clamp(20px, 4vw, 40px);
}
.cta-big {
  padding: 15px 30px;
  font-size: 15px;
  font-weight: 600;
  border-color: rgba(0, 229, 255, .35);
  background: linear-gradient(100deg, rgba(255, 46, 136, .18), rgba(0, 229, 255, .18));
}
.cta-big:hover {
  border-color: rgba(0, 229, 255, .7);
  background: linear-gradient(100deg, rgba(255, 46, 136, .3), rgba(0, 229, 255, .3));
}

.page-footer {
  padding: 24px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  border-top: 1px solid var(--stroke);
  margin-top: 20px;
}
.page-footer a { color: var(--accent); text-decoration: none; }
.page-footer a:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .page-header { padding-bottom: 8px; }
  .keys { grid-template-columns: 1fr; gap: 4px 0; }
  .keys dt { justify-self: start; margin-top: 8px; }
}
