/* ==========================================================
   THEME TOKENS, taken from the AXSX React site
   (slate-950 background, #93a5ff glow, white/10 borders).
   Change these to re-colour the whole app.
   ========================================================== */
:root {
  --bg: #020617;
  --glow: rgba(147, 165, 255, .14);
  --panel: rgba(255, 255, 255, .04);
  --panel-2: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .12);
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, .62);
  --accent: #93a5ff;
  --accent-hover: #b6c3ff;
  --danger: #ff8f8f;
  --radius: 16px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg) radial-gradient(900px 500px at 50% -160px, var(--glow), transparent 70%) no-repeat;
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}
::selection { background: rgba(6, 182, 212, .3); }

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

.wrap { width: 100%; max-width: 56rem; margin: 0 auto; padding: 0 1.25rem; }
main.wrap { flex: 1; padding-top: 2rem; padding-bottom: 3.5rem; }

/* ---------- header: plain bar, logo + title ---------- */
.site-header {
  background: rgba(2, 6, 23, .7);
  border-bottom: 1px solid var(--line);
  padding: .9rem 0;
}
.header-inner { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.header-logo { display: inline-flex; flex-shrink: 0; }
.header-logo img { height: 32px; width: auto; display: block; }
/* plain white, no underline, in every state */
.site-header a,
.site-header a:visited,
.site-header a:hover,
.site-header a:active { color: #fff; text-decoration: none; }
.header-title { font-weight: 600; line-height: 1.3; }
.header-title:hover { opacity: .8; }

/* ---------- type ---------- */
h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 .75rem;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-weight: 700;
}
h2 { font-size: 1.1rem; margin: 1.75rem 0 .75rem; letter-spacing: .02em; }
.lead { color: var(--muted); font-size: 1.05rem; margin: 0 0 1.75rem; max-width: 40rem; }
.note { color: var(--muted); font-size: .9rem; margin: 1rem 0 0; }

.terms {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  max-width: 44rem;
}
.terms h2 { margin-top: 0; }
.terms ol { margin: 0; padding-left: 1.25rem; }
.terms li { margin-bottom: .5rem; }

/* ---------- fees table ---------- */
.fees-table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, .15);
}

.fees-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.fees-table th {
  padding: .9rem 1rem;
  text-align: left;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  font-weight: 700;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
}

.fees-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  color: var(--ink);
  font-size: .92rem;
}

.fees-table tbody tr:last-child td {
  border-bottom: none;
}

.fees-table tbody tr {
  transition: background .2s ease;
}

.fees-table tbody tr:hover {
  background: rgba(147, 165, 255, .05);
}

/* membership name */
.fees-table .membership {
  font-weight: 700;
  color: var(--ink);
}

/* category badge */
.fees-table .category {
  display: inline-flex;
  align-items: center;
  padding: .3rem .65rem;
  border: 1px solid rgba(147, 165, 255, .25);
  border-radius: 999px;
  background: rgba(147, 165, 255, .08);
  color: var(--accent);
  font-size: .75rem;
  font-weight: 600;
}

/* price */
.fees-table .price {
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
}

.fees-table .new-price {
  color: var(--accent);
}

/* mobile */
@media (max-width: 40rem) {
  .fees-table-wrap {
    margin-left: -.25rem;
    margin-right: -.25rem;
  }

  .fees-table th,
  .fees-table td {
    padding: .8rem .75rem;
  }

  .fees-table th {
    font-size: .65rem;
  }

  .fees-table td {
    font-size: .85rem;
  }
}
/* ---------- buttons: outlined, uppercase, fill on hover ---------- */
.button {
  display: inline-block;
  background: transparent;
  color: var(--ink);
  padding: .85rem 2rem;
  border: 2px solid var(--ink);
  border-radius: 0;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  cursor: pointer;
  transition: background .25s, color .25s;
}
.button:hover { background: var(--ink); color: var(--bg); }
.button:disabled { opacity: .5; cursor: not-allowed; }
.button:disabled:hover { background: transparent; color: var(--ink); }
.button:focus-visible, a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- footer ---------- */
.site-footer {
  background: rgba(0, 0, 0, .9);
  border-top: 1px solid var(--line);
  padding: 2.25rem 0 1.5rem;
  color: rgba(255, 255, 255, .62);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.site-footer .wrap { max-width: 64rem; }
.footer-grid { display: grid; gap: 1.75rem; }
.footer-grid h3 {
  margin: 0 0 .7rem;
  font-size: .7rem;
  letter-spacing: .22em;
  color: #fff;
  font-weight: 700;
}
.footer-grid p, .footer-grid ul { margin: 0 0 .45rem; padding: 0; list-style: none; }
.footer-grid li { margin-bottom: .45rem; }
.footer-grid img { height: 28px; width: auto; opacity: .9; display: block; }
.site-footer a, .site-footer a:visited { color: inherit; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.footer-copy {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: .6rem;
  letter-spacing: .3em;
  color: rgba(255, 255, 255, .35);
}
@media (min-width: 40rem) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .footer-grid { grid-template-columns: .8fr 1.3fr 1.1fr 1.5fr; } }
