/* ─── Camcastar — Sub-page Styles (about, how-to-use, contact) ───────────── */

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

/* ─── Nav ─────────────────────────────────────────────────────────────────── */
.page-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 32px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.page-nav-brand {
  font-family: var(--font-brand);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}

.back-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--t);
}
.back-link:hover { color: var(--text-dim); }

/* ─── Page layout ─────────────────────────────────────────────────────────── */
.page-content {
  max-width: 660px;
  margin: 0 auto;
  padding: 56px 32px 100px; /* extra bottom padding clears fixed footer */
}

/* ─── Breadcrumb ──────────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: 36px;
}
.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--t);
}
.breadcrumb a:hover { color: var(--text-dim); }

/* ─── Page title & subtitle ───────────────────────────────────────────────── */
.page-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.page-subtitle {
  font-size: var(--text-base);
  color: var(--text-dim);
  margin-bottom: 48px;
  line-height: 1.7;
  max-width: 520px;
}

/* ─── About body ──────────────────────────────────────────────────────────── */
.about-body {
  font-size: var(--text-base);
  color: var(--text-dim);
  line-height: 1.85;
}
.about-body p { margin-bottom: 22px; }
.about-body strong { color: var(--text); font-weight: 600; }
.about-body h2 {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* ─── Feature list ────────────────────────────────────────────────────────── */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-list li {
  font-size: var(--text-sm);
  color: var(--text-dim);
  padding-left: 18px;
  position: relative;
  line-height: 1.65;
}
.feature-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

/* ─── Steps ───────────────────────────────────────────────────────────────── */
.step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.step {
  display: flex;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }

.step-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 3px 9px;
  height: fit-content;
  flex-shrink: 0;
  margin-top: 3px;
  white-space: nowrap;
}

.step-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}
.step-desc {
  font-size: var(--text-sm);
  color: var(--text-dim);
  line-height: 1.75;
}
.step-desc strong { color: var(--text); font-weight: 600; }

/* ─── Info boxes ──────────────────────────────────────────────────────────── */
.note-box {
  margin-top: 12px;
  padding: 11px 14px;
  background: var(--accent-dim);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: var(--r);
  font-size: var(--text-sm);
  color: var(--accent-text);
  line-height: 1.6;
}
.warn-box {
  margin-top: 12px;
  padding: 11px 14px;
  background: var(--amber-dim);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: var(--r);
  font-size: var(--text-sm);
  color: var(--amber);
  line-height: 1.6;
}

/* ─── Controls table ──────────────────────────────────────────────────────── */
.controls-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: var(--text-sm);
}
.controls-table th {
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 0 10px 0;
  border-bottom: 1px solid var(--border);
}
.controls-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  vertical-align: top;
}
.controls-table td:first-child {
  color: var(--text);
  font-weight: 500;
  width: 130px;
  padding-right: 20px;
}
.controls-table tr:last-child td { border-bottom: none; }

/* ─── Section divider ─────────────────────────────────────────────────────── */
.section-divider {
  margin: 48px 0 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.section-divider h2 {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ─── FAQ ─────────────────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.5;
}
.faq-a {
  font-size: var(--text-sm);
  color: var(--text-dim);
  line-height: 1.75;
}

/* ─── Contact card ────────────────────────────────────────────────────────── */
.contact-card {
  margin-top: 24px;
  padding: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--t);
}
.contact-row:hover { color: var(--text); }
.contact-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-muted);
  width: 80px;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── Related links ───────────────────────────────────────────────────────── */
.related-links {
  margin-top: 56px;
  padding: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.related-links h2 {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.related-links a {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-dim);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--t);
}
.related-links a:last-child { border-bottom: none; }
.related-links a:hover { color: var(--text); }

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.page-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 7px 20px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  background: var(--bg-surface);
  line-height: 1;
  font-family: var(--font-body);
  z-index: 50;
}
.page-footer .footer-link,
.page-footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--t);
}
.page-footer .footer-link:hover,
.page-footer a:hover { color: var(--text-dim); }

/* ─── Contact form ────────────────────────────────────────────────────────── */
.form-field { margin-bottom: 28px; }

.field-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
}
.field-label .req { color: var(--accent-text); margin-left: 3px; }
.field-label .opt {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 6px;
}

/* Stars */
.stars {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.star {
  font-size: 28px;
  cursor: pointer;
  color: var(--border-bright);
  transition: color 0.1s, transform 0.1s;
  line-height: 1;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.star.lit { color: var(--amber); }
.star:hover { transform: scale(1.1); }

.rating-hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
  min-height: 16px;
  transition: color var(--t);
}
.rating-hint.chosen { color: var(--amber); font-weight: 500; }

/* Chips */
.chip-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r);
  cursor: pointer;
  transition: all var(--t);
  text-align: left;
  font-size: var(--text-sm);
  color: var(--text-dim);
  font-family: var(--font-body);
  -webkit-tap-highlight-color: transparent;
}
.chip:hover { border-color: var(--border-bright); color: var(--text); }
.chip.on {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent-text);
}
.chip-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-muted);
  flex-shrink: 0;
}
.chip.on .chip-key {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Inputs */
.form-input,
.form-textarea {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 11px 14px;
  font-size: var(--text-sm);
  font-family: var(--font-body);
  color: var(--text);
  outline: none;
  transition: border-color var(--t);
}
.form-input:focus,
.form-textarea:focus { border-color: var(--accent); }
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }
.form-textarea { resize: vertical; min-height: 110px; line-height: 1.6; }

/* Submit */
.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 24px;
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: var(--r);
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: opacity var(--t), transform 0.1s;
}
.submit-btn:hover { opacity: 0.88; }
.submit-btn:active { transform: scale(0.98); }
.submit-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.submit-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Success */
.success-box {
  display: none;
  padding: 36px 24px;
  background: var(--bg-elevated);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: var(--r-lg);
  text-align: center;
  margin-bottom: 32px;
}
.success-box.show { display: block; }
.success-icon { font-size: 36px; margin-bottom: 14px; }
.success-title {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--green);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.success-sub { font-size: var(--text-sm); color: var(--text-dim); line-height: 1.7; }

/* Divider */
.or-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 36px 0 24px;
  color: var(--text-muted);
  font-size: var(--text-xs);
}
.or-divider::before,
.or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .page-content { padding: 32px 20px 60px; }
  .page-nav { padding: 0 20px; }
  .step { gap: 14px; }
  .page-title { font-size: var(--text-xl); }
}
