/* ===== DynamicLockscreen Sub-page Shared Styles ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #080808;
  --card-bg: #111111;
  --border: rgba(255,255,255,0.08);
  --fg: #f5f5f7;
  --muted: rgba(255,255,255,0.45);
  --accent: rgba(255,255,255,0.85);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ── Nav ── */
.page-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(8,8,8,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.9rem;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.nav-back:hover { color: var(--fg); border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.05); }
.nav-brand {
  margin-left: auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
}

/* ── Main content ── */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6rem 1.5rem 4rem;
  opacity: 0;
  transition: opacity 0.6s ease;
}
main.visible { opacity: 1; }

/* ── Card ── */
.page-card {
  width: 100%;
  max-width: 52rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2.5rem 3rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.04);
}
@media (max-width: 640px) { .page-card { padding: 1.75rem 1.5rem; } }

/* ── Typography ── */
h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.page-subtitle {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}
h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg);
  margin: 2rem 0 0.75rem;
}
h2:first-of-type { margin-top: 0; }
p { color: var(--muted); margin-bottom: 0.75rem; line-height: 1.7; }
p:last-child { margin-bottom: 0; }
strong { color: var(--accent); font-weight: 600; }
em { font-style: italic; }

ul, ol {
  color: var(--muted);
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

/* ── Separator ── */
.sep {
  height: 1px;
  background: var(--border);
  margin: 1.75rem 0;
}

/* ── Changelog version block ── */
.version-block { display: flex; flex-direction: column; }
.version-block h2 { margin-top: 0; }
.version-date { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.75rem; }

/* ── Accordion (FAQ) ── */
details {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  margin-bottom: 0.75rem;
}
details[open] { background: rgba(255,255,255,0.03); }
summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--fg);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
}
summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}
details[open] summary::after { content: '−'; }
.faq-answer {
  padding: 0 1.25rem 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}
.faq-section-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 1.75rem 0 0.75rem;
}

/* ── Support Form ── */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
label { font-size: 0.85rem; font-weight: 500; color: var(--muted); }
input, textarea, select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  padding: 0.65rem 0.9rem;
  color: var(--fg);
  font-family: var(--font);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
input:focus, textarea:focus, select:focus {
  border-color: rgba(255,255,255,0.25);
}
textarea { resize: vertical; min-height: 120px; }
select option { background: #1a1a1a; color: var(--fg); }
.form-submit {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.07);
  color: var(--fg);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  margin-top: 0.5rem;
}
.form-submit:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.25); }
.form-note { text-align: center; font-size: 0.8rem; color: var(--muted); margin-top: 1.25rem; }

/* ── Footer ── */
.page-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-copy { font-size: 0.75rem; color: var(--muted); }
.footer-links-row { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-links-row a { font-size: 0.75rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links-row a:hover { color: var(--fg); }
