/* ============================================================
   SlamCaster — follows the Slam Chat design system.

   Self-contained on purpose: this palette is the Slam family's,
   not javicdev.com's, so these pages do not inherit style.css.
   ============================================================ */
:root {
  --bg:       #000000;
  --surface:  #111111;
  --surface2: #171717;
  --yellow:   #FBCF2A;
  --purple:   #8143F6;
  --teal:     #00F2C8;
  --white:    #F9F7F4;
  --muted:    rgba(249, 247, 244, 0.50);
  --border:   rgba(129, 67, 246, 0.25);
  --danger:   #FF6B6B;
}

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

body {
  background: var(--bg);
  color: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
}

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.sr-only:focus {
  position: fixed; top: 0; left: 0; width: auto; height: auto;
  padding: 10px 18px; margin: 0; overflow: visible; clip: auto;
  background: var(--purple); color: #fff; font-weight: 700; z-index: 9999;
}

/* ── Header ── */
header {
  background: var(--surface);
  border-bottom: 2px solid var(--purple);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
header img { width: 34px; height: 34px; object-fit: contain; border-radius: 8px; }
header .brand { font-size: 17px; font-weight: 800; color: var(--white); }
header .header-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
header a.back-link { font-size: 13px; color: var(--muted); text-decoration: none; transition: color .15s; }
header a.back-link:hover { color: var(--yellow); }

/* ── Main ── */
main { max-width: 820px; margin: 0 auto; padding: 48px 24px 80px; }

/* ── Hero ── */
.hero { text-align: center; margin-bottom: 40px; }
.hero h1 { margin: 0 0 18px; }
.hero__logo { width: 100%; max-width: 340px; margin: 0 auto; }
.hero .sub { color: var(--muted); font-size: 15px; max-width: 540px; margin: 0 auto; }

/* A text heading, for pages without the wordmark. Kept here rather than as a
   style attribute: the pages set style-src 'self', which blocks those. */
.page-title {
  font-size: 32px; font-weight: 900; color: var(--white); line-height: 1.2;
}
.page-title span { color: var(--yellow); }

/* ── Buttons ── */
.cta-bar { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 26px 0 40px; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 12px; border: none;
  font-size: 15px; font-weight: 700; cursor: pointer;
  text-decoration: none; transition: opacity .15s, transform .1s;
}
.cta-btn:hover { opacity: .88; transform: translateY(-1px); }
.cta-btn:active { transform: translateY(0); }
.cta-btn.primary { background: var(--purple); color: #fff; }
.cta-btn.secondary { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.2); }
.cta-btn.secondary:hover { border-color: var(--purple); opacity: 1; }

/* ── Protocol chips ── */
.payment-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 0 0 8px; }
.pay-chip {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 9px 16px;
  font-size: 13px; font-weight: 600; color: var(--white);
}

/* ── Sections ── */
h2 {
  font-size: 17px; font-weight: 700; color: var(--yellow);
  margin: 44px 0 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
h3 { font-size: 15px; font-weight: 700; color: var(--white); margin: 20px 0 8px; }
p { color: var(--muted); margin-bottom: 12px; font-size: 14px; }
strong { color: var(--white); font-weight: 600; }
a { color: var(--yellow); }

ul { list-style: none; padding: 0; margin-bottom: 14px; display: flex; flex-direction: column; gap: 8px; }
ul li { color: var(--muted); padding-left: 18px; position: relative; font-size: 14px; }
ul li::before { content: "–"; position: absolute; left: 0; color: var(--purple); }

/* ── Info boxes ── */
.info-box {
  background: var(--surface); border-left: 3px solid var(--purple);
  border-radius: 0 10px 10px 0; padding: 14px 18px;
  color: var(--muted); margin-bottom: 18px; font-size: 14px;
}
.info-box.warn { border-color: var(--yellow); }
.info-box.teal { border-color: var(--teal); }

/* ── Feature cards ── */
.cards {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin: 18px 0 8px;
}
.card {
  background: var(--surface); border: 2px solid var(--border);
  border-radius: 18px; padding: 22px 20px;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--teal));
}
.card:nth-child(even)::before { background: linear-gradient(90deg, var(--teal), var(--yellow)); }
.card h3 { margin: 0 0 8px; }
.card p { margin: 0; font-size: 13px; }

/* ── Spec tables ── */
.spec-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 18px; }
.spec-table th {
  text-align: left; color: var(--muted); font-weight: 700;
  font-size: 11px; text-transform: uppercase; letter-spacing: .05em;
  padding: 8px 12px 10px; border-bottom: 1px solid var(--border);
}
.spec-table td {
  padding: 10px 12px; color: var(--muted);
  border-bottom: 1px solid rgba(255,255,255,.04); vertical-align: top;
}
.spec-table tr:last-child td { border-bottom: none; }
.spec-table td.key { color: var(--white); font-weight: 600; width: 40%; }

/* ── Footer ── */
footer {
  text-align: center; padding: 32px 24px;
  border-top: 1px solid var(--border);
  font-size: 12px; color: var(--muted);
}
footer a { color: var(--yellow); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer p + p { margin-top: 6px; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  main { padding: 36px 18px 64px; }
  header { padding: 12px 16px; }
}

@media (max-width: 480px) {
  .cta-btn { width: 100%; justify-content: center; }
  /* Stacked, so a narrow screen does not squeeze the value into a sliver. */
  .spec-table td.key { width: auto; }
  .spec-table td { display: block; border-bottom: none; padding: 4px 12px; }
  .spec-table tr { display: block; border-bottom: 1px solid rgba(255,255,255,.06); padding: 6px 0; }
  .spec-table tr:last-child { border-bottom: none; }
}
