/* The Long Game: shared styles for /join/ and the policy pages. Mobile first. */
:root {
  --bg: #0b0f17;
  --ink-1: #0e1422;
  --card: #121a2b;
  --card-2: #18223a;
  --rule: #222d45;
  --text: #f4f6fb;
  --muted: #aab4c8;
  --faint: #7a85a0;
  --gold: #e9b949;
  --gold-2: #f1c35c;
  --on-gold: #1a1408;
  --ok: #38d39a;
  --bad: #ff6b7f;
  --discord: #5865f2;
  --f-body: "Figtree", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-display: "GFS Didot", "Didot", "Bodoni 72", "Bodoni MT", Georgia, serif;
  --f-label: "Big Shoulders Display", "Arial Narrow", "Figtree", system-ui, sans-serif;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(900px 420px at 50% -160px, rgba(233, 185, 73, 0.13), transparent 70%), var(--bg);
  background-color: var(--bg);
  font: 16px/1.55 var(--f-body);
  overflow-wrap: break-word;
}
[hidden] { display: none !important; }
a { color: var(--gold); }
a:hover { color: var(--gold-2); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
img { max-width: 100%; }

.wrap { max-width: 640px; margin: 0 auto; padding: 18px 16px 48px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 0 18px; }
/* Links in the header and footer get a 44px tall tap area. (Not flex here: that would drop the space in "The Long Game".) */
.top a { display: inline-block; padding: 11px 0; line-height: 22px; }
.brand {
  font-family: var(--f-label); font-weight: 700; font-size: 14px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--text); text-decoration: none;
}
.brand b { color: var(--gold); font-weight: 700; }
.by { color: var(--faint); font-size: 13px; }

.eyebrow {
  margin: 0 0 10px; color: var(--gold);
  font-family: var(--f-label); font-size: 13px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
}
h1 {
  margin: 0 0 12px; font-family: var(--f-display); font-weight: 400;
  font-size: clamp(36px, 10vw, 56px); line-height: 1.04; letter-spacing: -0.01em;
}
.lede { margin: 0 0 20px; color: var(--muted); font-size: 17px; }

.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 24px; }
.price .amt { font-family: var(--f-display); font-size: 46px; line-height: 1; color: var(--gold); }
.price .per { color: var(--muted); }
.price .alt { flex-basis: 100%; color: var(--faint); font-size: 14px; }

.card {
  margin: 0 0 16px; padding: 20px;
  background: linear-gradient(180deg, var(--card), var(--ink-1));
  border: 1px solid var(--rule); border-radius: var(--radius);
}
.card > h2 {
  margin: 0 0 14px; color: var(--muted);
  font-family: var(--f-label); font-size: 13px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
}
.card h3 { margin: 2px 0 4px; font-size: 18px; }
.card p { margin: 0 0 12px; }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.2 2.2 4.8-4.9' fill='none' stroke='%231a1408' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.step { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 16px 0 0; margin-top: 16px; border-top: 1px solid var(--rule); }
.step:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.num {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--gold); color: var(--gold); font-weight: 700; font-size: 15px;
}
.step.done .num { background: var(--gold); color: var(--on-gold); }
.step.off { opacity: 0.5; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 50px; padding: 12px 20px; border-radius: 12px; border: 1px solid transparent;
  font: 600 16px/1.2 var(--f-body); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.05s;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: var(--gold-2); color: var(--on-gold); }
.btn-discord { background: var(--discord); color: #fff; }
.btn-discord:hover { background: #4752c4; color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--gold); color: var(--text); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn svg { flex: 0 0 auto; }
.actions { display: grid; gap: 10px; }

/* One column per plan on sale (hidden plans take no column). */
.toggle {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; margin: 0 0 12px; padding: 4px;
  background: var(--bg); border: 1px solid var(--rule); border-radius: 12px;
}
.toggle button {
  min-height: 44px; padding: 8px 4px; border: 0; border-radius: 9px; background: transparent; color: var(--muted);
  font: 600 15px/1.2 var(--f-body); cursor: pointer;
}
.toggle button .nm { display: block; font-weight: inherit; }
@media (min-width: 360px) { .toggle button .nm { white-space: nowrap; } }
.toggle button span { display: block; font-weight: 400; font-size: 13px; color: var(--faint); }
.toggle button[aria-pressed="true"] { background: var(--card-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--gold); }
.toggle button[aria-pressed="true"] span { color: var(--gold); }
/* "+30 days free" during a promo, "Save CA$10" on the yearly otherwise. */
.toggle button .perk { display: block; margin-top: 2px; font-style: normal; font-weight: 600; font-size: 13px; color: var(--ok); }

.user { display: flex; align-items: center; gap: 12px; min-width: 0; }
.user img { width: 40px; height: 40px; border-radius: 50%; background: var(--card-2); flex: 0 0 auto; }
.user strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* A bigger tap area for "Not you? Sign out" without moving anything. */
.user a.small { display: inline-block; padding: 14px 0; margin: -14px 0; }
.small { font-size: 14px; color: var(--muted); }
.note { color: var(--muted); font-size: 15px; }
.fine { color: var(--faint); font-size: 14px; margin: 6px 0; }

.msg { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--rule); background: var(--card-2); font-size: 15px; }
.msg.err { border-color: rgba(255, 107, 127, 0.55); }
.msg.good { border-color: rgba(56, 211, 154, 0.55); }

.badge {
  display: inline-block; margin: 0 0 10px; padding: 4px 10px; border-radius: 999px;
  background: rgba(233, 185, 73, 0.14); color: var(--gold); font-size: 13px; font-weight: 600;
}

.spinner {
  width: 28px; height: 28px; margin: 4px 0 16px; border-radius: 50%;
  border: 3px solid var(--rule); border-top-color: var(--gold); animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }

.foot {
  display: flex; flex-wrap: wrap; gap: 0 20px; margin-top: 36px; padding-top: 8px;
  border-top: 1px solid var(--rule); color: var(--faint); font-size: 14px;
}
.foot a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--gold); }

/* Policy pages */
.prose h1 { font-size: clamp(32px, 9vw, 46px); }
.prose h2 { margin: 28px 0 8px; font-size: 19px; }
.prose p, .prose li { color: #dfe4ee; }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
.updated { color: var(--faint); font-size: 14px; margin: 0 0 24px; }

@media (min-width: 720px) {
  .wrap { padding: 32px 24px 64px; }
  .actions { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}
