/* ============================================
   Revvten FAQ - Best-effort match to revvten.com
   Replace CSS variables below with exact hex
   from revvten.com when you have them.

   SECURITY NOTE: When updating color variables,
   ensure all colors are valid hex codes (#RRGGBB)
   and come from trusted sources only.
   ============================================ */

:root {
  --bg: #0f0f12;
  --bg-elevated: #18181b;
  --text: #e4e4e7;
  --text-muted: #a1a1aa;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --border: #27272a;
  --border-light: #3f3f46;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  --transition: 0.2s ease;
}

* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem;
  min-height: 100vh;
}

/* Tighter layout when embedded in iframe (?embed=1) */
body.embed-mode {
  padding-top: 0.75rem;
  min-height: auto;
}

h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

header p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 0;          /* spacing now handled by .section-heading */
  padding-bottom: 0;      /* underline handled by .section-heading */
  border-bottom: none;
  color: var(--text);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.section-heading__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.section-heading h2 {
  margin: 0;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.faq-item {
  margin-bottom: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.faq-item:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--border);
}

.faq-item details {
  cursor: pointer;
}

.faq-item summary {
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0.5rem 0 0;
  padding-left: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

footer a {
  font-weight: 500;
}
