/*
  Void — site styles.

  The palette is lifted from the loader on purpose. Somebody who downloads the app after reading
  this page should not feel like they arrived somewhere else; matching colours does more for that
  than any amount of copy.
*/

:root {
  --bg: #0b0d12;
  --panel: #121722;
  --panel-2: #161c29;
  --line: #222a3a;
  --text: #e6eaf2;
  --muted: #8a93a6;
  --dim: #5f6879;
  --accent: #7a5cff;
  --accent-soft: #6a4de0;
  --ok: #4ade80;
  --warn: #ffb454;
  --radius: 12px;

  /* The in-game category colours, so the panels read the same as the ClickGUI. */
  --cat-combat: #ff5555;
  --cat-movement: #55ff55;
  --cat-render: #55aaff;
  --cat-misc: #ffaa00;
  --cat-hud: #aa77ff;
  --cat-donut: #ff7ad9;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* ------------------------------------------------------------------ header */

header.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 13, 18, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.top-inner { display: flex; align-items: center; gap: 12px; height: 58px; }
.top-mark { width: 26px; height: 26px; border-radius: 7px; }
.top-name { font-weight: 700; letter-spacing: 2px; }
.top-nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.top-nav a { color: var(--muted); font-size: 14px; }
.top-nav a:hover { color: var(--text); text-decoration: none; }

/* -------------------------------------------------------------------- hero */

.hero { padding: 84px 0 64px; text-align: center; position: relative; overflow: hidden; }

/* A single soft light behind the mark. Enough to stop the page reading as a flat black rectangle,
   not so much that it becomes a gradient showcase. */
.hero::before {
  content: "";
  position: absolute;
  top: -180px; left: 50%;
  width: 620px; height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(122, 92, 255, 0.20), transparent 68%);
  pointer-events: none;
}

.hero-mark { width: 96px; height: 96px; border-radius: 26px; position: relative; }
.hero h1 { font-size: 46px; margin: 22px 0 10px; letter-spacing: -0.5px; }
.hero p.lead { color: var(--muted); font-size: 18px; max-width: 620px; margin: 0 auto 30px; }

.badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.badge {
  font-size: 13px; color: var(--muted);
  border: 1px solid var(--line); background: var(--panel);
  padding: 5px 12px; border-radius: 999px;
}
.badge b { color: var(--text); font-weight: 600; }

.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 10px;
  font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer;
}
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-soft); text-decoration: none; }
.btn.ghost { border-color: var(--line); color: var(--text); background: var(--panel); }
.btn.ghost:hover { border-color: var(--dim); text-decoration: none; }

/* ----------------------------------------------------------------- section */

section { padding: 62px 0; border-top: 1px solid var(--line); }
section h2 { font-size: 28px; margin: 0 0 8px; }
section p.sub { color: var(--muted); margin: 0 0 28px; max-width: 680px; }

/* ----------------------------------------------------------------- modules */

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; }

/* The chips live in their own container so the search box can keep its own flex basis.
   That container needs to be a flex row itself, or eighty modules worth of categories run off
   the right edge on a narrow screen instead of wrapping. */
#chips { display: flex; gap: 8px; flex-wrap: wrap; }

.search {
  flex: 1 1 260px;
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
  padding: 10px 14px; border-radius: 10px; font-size: 14px; font-family: inherit;
}
.search:focus { outline: none; border-color: var(--accent); }

.chip {
  background: var(--panel); border: 1px solid var(--line); color: var(--muted);
  padding: 7px 14px; border-radius: 999px; font-size: 13px; cursor: pointer;
  font-family: inherit; display: inline-flex; align-items: center; gap: 7px;
}
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { color: var(--text); border-color: currentColor; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.chip .n { color: var(--dim); font-size: 12px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 16px; border-left: 3px solid var(--line);
}
.card:hover { background: var(--panel-2); }
.card-head { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; flex-wrap: wrap; }
.card-name { font-weight: 650; font-size: 15px; }
.card-cat { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.card-donut {
  font-size: 10px; letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--cat-donut); border: 1px solid currentColor; border-radius: 999px; padding: 1px 7px;
}
.card-desc { color: var(--muted); font-size: 13.5px; margin: 0; }

.empty { color: var(--dim); padding: 30px 0; }
.count { color: var(--dim); font-size: 13px; margin: 0 0 16px; }

/* ---------------------------------------------------------------- download */

.note {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; margin-top: 18px;
}
.note h3 { margin: 0 0 8px; font-size: 16px; }
.note p { color: var(--muted); margin: 0 0 10px; font-size: 14px; }
.note p:last-child { margin-bottom: 0; }
.note.warn { border-color: rgba(255, 180, 84, 0.35); }
.note.warn h3 { color: var(--warn); }

code, .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  background: var(--panel-2); border: 1px solid var(--line);
  padding: 2px 6px; border-radius: 5px;
  word-break: break-all;
}
pre.mono { display: block; padding: 12px 14px; overflow-x: auto; white-space: pre; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li {
  counter-increment: s; position: relative; padding: 0 0 16px 42px; color: var(--muted);
}
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: -1px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
  display: grid; place-items: center; font-size: 13px; font-weight: 600;
}
.steps b { color: var(--text); font-weight: 600; }

/* ------------------------------------------------------------------ footer */

footer {
  border-top: 1px solid var(--line); padding: 34px 0 48px;
  color: var(--dim); font-size: 13px;
}
.foot-inner { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.foot-links { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); }
.disclaimer { margin-top: 16px; max-width: 700px; line-height: 1.5; }

@media (max-width: 640px) {
  .hero { padding: 56px 0 44px; }
  .hero h1 { font-size: 34px; }
  .hero p.lead { font-size: 16px; }
  .top-nav { gap: 14px; }
  .top-nav a.hide-sm { display: none; }
  .foot-links { margin-left: 0; }
}

/* ------------------------------------------------------------------- shop */

.wrap.narrow { max-width: 620px; }

.price-box { display: flex; align-items: baseline; gap: 10px; margin: 0 0 22px; }
.price { font-size: 40px; font-weight: 700; letter-spacing: -1px; }
.price-note { color: var(--dim); font-size: 14px; }

.ticks { list-style: none; padding: 0; margin: 0 0 28px; }
.ticks li { position: relative; padding-left: 26px; color: var(--muted); margin-bottom: 8px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

.buy-form { display: grid; gap: 16px; margin-bottom: 22px; }
.field { display: grid; gap: 7px; }
.field > span { font-size: 14px; font-weight: 600; }
.field small { color: var(--dim); font-size: 12.5px; }
.opt { color: var(--dim); font-weight: 400; }
.buy-form .btn { justify-self: start; }
.buy-form .btn:disabled { opacity: 0.5; cursor: default; }

.err { color: var(--bad); font-size: 14px; margin: 0; }

/* The one string on the page somebody has to transcribe correctly. Big, spaced, and selectable in
   one gesture, because a key read wrong is a support message. */
.key {
  font-size: 19px; letter-spacing: 2px; text-align: center;
  padding: 16px 12px; user-select: all; color: var(--text);
}

.ok-box { border-color: rgba(74, 222, 128, 0.35); }
.ok-box h3 { color: var(--ok); }

/* --------------------------------------------------------------- pricing */

.pricing { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.pricing .price-box { margin: 0; }
.pricing .ticks { margin: 0; flex: 1 1 320px; }

/* ------------------------------------------------------------------ plans */

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }

.plan {
  display: grid; gap: 4px; text-align: left;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 16px; color: var(--text); font-family: inherit;
}

/* A button only when it is one. The landing page shows the same cards as a price list, and a
   pointer cursor on something that cannot be clicked is a small lie people notice. */
button.plan { cursor: pointer; }
button.plan:hover { border-color: var(--dim); }
button.plan[aria-pressed="true"] { border-color: var(--accent); background: var(--panel-2); }

.plan-name { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.plan-price { font-size: 30px; font-weight: 700; letter-spacing: -0.5px; }
.plan-term { font-size: 13px; color: var(--dim); }
.plan-note {
  justify-self: start; margin-top: 6px;
  font-size: 11px; letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--accent); border: 1px solid currentColor; border-radius: 999px; padding: 2px 9px;
}
