/* ==========================================================================
   Runked — document pages (guides, FAQ)
   Matches the Privacy / Terms design system: quiet, dark, readable.
   ========================================================================== */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --border: #1e1e1e;
  --text: #f0f0f0;
  --text-secondary: #a8a8a8;
  --text-dim: #666666;
  --accent: #ff4d94;
  --accent-dim: rgba(255, 77, 148, 0.15);
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
}

/* ── Layout ───────────────────────────────────────────────────────────── */

.container,
.container-narrow {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 28px 80px;
}

/* ── Back link (same affordance as Privacy / Terms) ───────────────────── */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 0;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 40px 0 0;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--text);
}

.back-link svg {
  width: 16px;
  height: 16px;
}

/* ── Breadcrumbs ──────────────────────────────────────────────────────── */

.breadcrumbs {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 22px;
}

.breadcrumbs a {
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 0;
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--text);
}

/* ── Headings ─────────────────────────────────────────────────────────── */

h1,
.page-title {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin: 34px 0 10px;
  letter-spacing: -0.02em;
}

h2 {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin: 44px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

h3 {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  margin: 28px 0 10px;
}

h4 {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 22px 0 8px;
}

/* ── Text ─────────────────────────────────────────────────────────────── */

p {
  margin-bottom: 18px;
}

strong {
  color: var(--text);
  font-weight: 600;
}

em {
  color: var(--text);
  font-style: italic;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 77, 148, 0.3);
  transition: border-color 0.2s;
}

a:hover {
  border-bottom-color: var(--accent);
}

.meta {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 34px;
}

.kicker {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* ── Lists ────────────────────────────────────────────────────────────── */

ul,
ol {
  list-style: none;
  padding: 0;
  margin-bottom: 18px;
}

ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
}

ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

ol {
  counter-reset: doc-ol;
}

ol li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  counter-increment: doc-ol;
}

ol li::before {
  content: counter(doc-ol) '.';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 600;
  opacity: 0.8;
}

/* ── Callout / answer box ─────────────────────────────────────────────── */

.answer-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px;
  margin: 26px 0 30px;
}

.answer-box p:last-child {
  margin-bottom: 0;
}

/* ── Tables ───────────────────────────────────────────────────────────── */

.table-wrap {
  overflow-x: auto;
  margin-bottom: 26px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin-bottom: 26px;
}

thead th {
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

tbody tr:last-child td {
  border-bottom: 0;
}

td.yes {
  color: var(--accent);
}

td.no {
  color: var(--text-dim);
}

/* ── Figures / screenshots ────────────────────────────────────────────── */

figure,
.shot-inline {
  margin: 30px 0;
  text-align: center;
}

.shot-inline img {
  max-width: 260px;
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
}

figcaption {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 10px;
}

/* ── Cards / link lists ───────────────────────────────────────────────── */

.grid {
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
}

.grid-2,
.grid-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 620px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  transition: border-color 0.2s;
}

.card:hover {
  border-color: #2a2a2a;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.card h3 a {
  border-bottom: 0;
}

.card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
}

.card .icon {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 6px;
}

/* ── Q&A blocks (always visible, same rhythm as Privacy sections) ─────── */

.qa {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.qa:last-of-type {
  border-bottom: 0;
}

.qa h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--text);
}

.qa p:last-child {
  margin-bottom: 0;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */

/* Identical to the homepage hero pill, and fully static.
   The :hover selectors are required: the global `a:hover` rule (0,1,1) would
   otherwise outrank `.btn` (0,1,0) and paint a pink bottom border on hover. */
.btn,
.btn:hover,
.btn:focus,
.btn:active,
.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.01rem, 1.73vw, 1.15rem);
  padding: clamp(0.8rem, 1.5vh, 1.04rem) clamp(1.84rem, 3.68vw, 2.76rem);
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  background: #1a0a14;
  text-decoration: none;
  box-shadow: none;
  transform: none;
}

.btn svg {
  width: 1.15em;
  height: 1.15em;
  margin-left: -0.125rem;
  flex: none;
}

.btn-small {
  font-size: 0.9rem;
  padding: 10px 18px;
}

/* ── Guide CTA panel ──────────────────────────────────────────────────── */

.guide-cta,
.cta-band {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px 24px;
  margin: 40px 0;
  text-align: center;
}

.guide-cta h3,
.cta-band h2 {
  margin: 0 0 8px;
  border-bottom: 0;
  padding-bottom: 0;
  font-size: 1.15rem;
}

.guide-cta p,
.cta-band p {
  margin-bottom: 20px;
  font-size: 0.95rem;
}

/* ── Related links ────────────────────────────────────────────────────── */

.related {
  margin: 40px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.related h2 {
  border-bottom: 0;
  padding-bottom: 0;
  margin: 0 0 12px;
  font-size: 1rem;
}

.related ul {
  margin-bottom: 0;
}

/* ── Page footer (same as Privacy / Terms) ────────────────────────────── */

.page-footer {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  font-size: 0.85rem;
}

.page-footer a {
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 0;
  transition: color 0.2s;
}

.page-footer a:hover {
  color: var(--text);
}

.page-footer .active {
  color: var(--accent);
}

.page-footer .dot {
  color: var(--text-dim);
  opacity: 0.4;
}

.page-legal {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-top: 18px;
  opacity: 0.75;
}

/* ── Section wrapper (guides index) ───────────────────────────────────── */

.section {
  margin-bottom: 8px;
}
