/* =========================================================
   ChunkHost styles
   Colours live in :root below. Change them there.
   Fonts: Pixelify Sans (headings, prices) + IBM Plex Sans (text)
   ========================================================= */

:root {
  --bg: #15171a;
  --bg-2: #1c1f23;
  --line: #2c3036;
  --text: #e6e3dc;
  --muted: #a3a29c;
  --green: #5BBF3A;
  --green-dark: #3f8f27;
  --green-soft: #9be07f;
  --dirt: #8a5a36;
  --stone: #7c8087;
  --diamond: #5fd6d0;
  --warn: #e0b34a;
  --pixel: "Pixelify Sans", "Courier New", monospace;
  --body: "IBM Plex Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--body);
  overflow-x: hidden;
}
a { color: var(--green-soft); text-underline-offset: 3px; }
a:hover { color: #fff; }
code {
  font: 0.9em/1 ui-monospace, Consolas, monospace;
  background: #0f1113; border: 1px solid var(--line);
  padding: 2px 5px; overflow-wrap: anywhere;
}
h1, h2 { font-family: var(--pixel); font-weight: 700; line-height: 1.1; letter-spacing: 0.01em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.05rem; font-weight: 600; }

.wrap, .container { max-width: 1080px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.narrow { max-width: 760px; }
section { padding: 80px 0; }
section.tight { padding: 10px 0 80px; }
.band { background: var(--bg-2); border-block: 1px solid var(--line); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font: 700 1.05rem/1 var(--pixel);
  background: var(--green); color: #10210a;
  padding: 14px 22px; text-decoration: none;
  border: 0; border-radius: 0;
  box-shadow: inset 0 -4px 0 var(--green-dark), 4px 4px 0 #000;
  transition: transform .08s, box-shadow .08s;
}
.btn:hover { color: #10210a; transform: translate(-1px, -1px); box-shadow: inset 0 -4px 0 var(--green-dark), 5px 5px 0 #000; }
.btn:active { transform: translate(3px, 3px); box-shadow: inset 0 -2px 0 var(--green-dark), 1px 1px 0 #000; }
.btn-small { padding: 10px 14px; font-size: .95rem; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { color: #fff; box-shadow: inset 0 0 0 2px var(--green); }
.text-link { font-weight: 500; }
.text-link::after { content: " \2192"; }
a:focus-visible, button:focus-visible, summary:focus-visible, select:focus-visible { outline: 3px solid var(--green-soft); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 1.15rem "Silkscreen", var(--pixel); color: var(--text); text-decoration: none; }
.logo:hover { color: #fff; }
.logo-mark { width: 24px; height: 24px; background: url(/logo-mark.svg) center/contain no-repeat; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a:not(.btn) { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current] { color: var(--text); }
.nav-links a[aria-current] { box-shadow: 0 3px 0 var(--green); }
.menu-btn { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 3px; background: var(--text); margin: 4px 0; }

/* ---------- Home hero ---------- */
.hero { padding: 90px 0 70px; }
.hero-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 50px; align-items: center; }
.kicker { font: 500 .95rem var(--pixel); color: var(--green); margin-bottom: 18px; }
.hero h1 { max-width: 14ch; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 40ch; margin: 22px 0 32px; }
.hero-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.chunk-art { width: 100%; max-width: 300px; justify-self: end; image-rendering: pixelated; }

/* ---------- Split sections (heading left, content right) ---------- */
.split { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; align-items: start; }
.split-head p { color: var(--muted); margin: 12px 0 18px; }
.split-head { position: sticky; top: 100px; }

/* ---------- Feature list ---------- */
.feat-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 34px 40px; }
.feat-list li { display: flex; gap: 16px; align-items: flex-start; }
.feat-list p { color: var(--muted); font-size: .97rem; margin-top: 4px; }
.feat-list-wide { gap: 0; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.feat-list-wide li { padding: 28px 24px 28px 0; border-bottom: 1px solid var(--line); }
.px { width: 32px; height: 32px; flex: none; fill: var(--green); shape-rendering: crispEdges; }

/* ---------- Home pricing rows ---------- */
.row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.row-head p { color: var(--muted); }
.plan-rows { list-style: none; border-top: 2px solid var(--line); }
.plan-rows li {
  display: grid; grid-template-columns: 28px 130px 1fr auto 150px; gap: 20px; align-items: center;
  padding: 22px 0; border-bottom: 2px solid var(--line);
}
.pr-name { font: 700 1.4rem var(--pixel); }
.pr-spec { color: var(--muted); }
.pr-price { font: 700 1.6rem var(--pixel); }
.pr-price small, .price small { font: 400 .9rem var(--body); color: var(--muted); }
.pr-link { text-align: right; font-weight: 500; }
.ore { width: 24px; height: 24px; display: block; }
.ore.dirt { background: var(--dirt); box-shadow: inset 0 6px 0 var(--green); }
.ore.stone { background: var(--stone); box-shadow: inset 6px 6px 0 #92969c; }
.ore.diamond { background: var(--stone); box-shadow: inset 6px 6px 0 var(--diamond), inset -6px -6px 0 var(--diamond); }

/* ---------- Owner note ---------- */
.note-card > * { max-width: 640px; }
.note-card { border-left: 6px solid var(--green); padding-left: 28px; margin-left: max(20px, calc(50% - 520px)); }
.note-card h2 { margin-bottom: 18px; }
.note-card p { font-size: 1.12rem; margin-bottom: 14px; }
.note-card p:last-child { color: var(--muted); margin-bottom: 0; }

/* ---------- Page headings ---------- */
.page-head { padding-top: 70px; padding-bottom: 40px; }
.page-head p { color: var(--muted); font-size: 1.1rem; margin-top: 14px; max-width: 56ch; }
.lost { padding-top: 110px; padding-bottom: 120px; }
.after { margin-top: 40px; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }

/* ---------- Pricing page ---------- */
.picker { border: 2px dashed var(--line); padding: 20px 22px; margin-bottom: 30px; }
.picker-q { font-weight: 600; margin-bottom: 12px; }
.picker-controls { display: flex; gap: 20px; flex-wrap: wrap; }
.picker label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; color: var(--muted); }
.picker select {
  font: 500 1rem var(--body); color: var(--text); background: var(--bg-2);
  border: 2px solid var(--line); padding: 8px 10px; min-width: 180px; border-radius: 0;
}
.picker-out { margin-top: 14px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 2px solid var(--line); }
.plan { padding: 30px 26px; display: flex; flex-direction: column; transition: background .15s; }
.plan + .plan { border-left: 2px solid var(--line); }
.plan.picked { background: var(--bg-2); box-shadow: inset 0 6px 0 var(--green); }
.plan-top { display: flex; align-items: center; gap: 12px; }
.plan h2 { font-size: 1.7rem; }
.price { font: 700 2.8rem/1 var(--pixel); margin: 22px 0 14px; }
.plan-spec { font-size: 1.05rem; }
.plan-blurb { color: var(--muted); margin: 12px 0 24px; flex: 1; }
.plan .btn { text-align: center; }
.included { margin-top: 40px; }
.included h3 { margin-bottom: 12px; }
.included ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.included li { border: 1px solid var(--line); padding: 6px 12px; font-size: .95rem; }
.included li::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--green); margin-right: 9px; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 700 1.5rem/1 var(--pixel); color: var(--green); position: absolute; right: 4px; top: 18px; }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 0 22px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-item { display: flex; gap: 22px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.contact-item:first-child { border-top: 1px solid var(--line); }
.contact-item .px { width: 40px; height: 40px; }
.contact-item p { color: var(--muted); margin: 6px 0 18px; }
.mail-link { font-size: 1.15rem; font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Legal pages ---------- */
.prose { max-width: 760px; padding-bottom: 80px; }
.prose h2 { font-size: 1.3rem; margin: 34px 0 10px; }
.prose p, .prose li { color: #cfccc4; margin-bottom: 10px; }
.prose ul { padding-left: 22px; }
.draft-warning { background: #2a2413; border-left: 6px solid var(--warn); color: #f1dca3; padding: 16px 18px; margin-bottom: 30px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 30px; font-size: .95rem; }
.footer-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-brand p { color: var(--muted); margin-top: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; align-content: flex-start; max-width: 520px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.disclaimer { margin-top: 34px; padding-top: 20px; border-top: 1px dashed var(--line); color: #7d7c77; font-size: .85rem; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 2px solid var(--line); padding: 8px 20px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-links a[aria-current] { box-shadow: none; color: var(--green-soft); }
  .nav-links .btn { margin-top: 16px; display: block; text-align: center; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 36px; }
  .split-head { position: static; }
  .chunk-art { justify-self: start; max-width: 180px; order: -1; }
  .plans { grid-template-columns: 1fr; }
  .plan + .plan { border-left: 0; border-top: 2px solid var(--line); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 56px 0; }
  .wrap, .container { padding-left: 16px; padding-right: 16px; }
  .hero { padding: 50px 0 40px; }
  .feat-list, .feat-list-wide { grid-template-columns: 1fr; }
  .plan-rows li { grid-template-columns: 24px 1fr auto; gap: 4px 14px; }
  .pr-spec { grid-column: 2 / 4; grid-row: 2; }
  .pr-link { grid-column: 2 / 4; grid-row: 3; text-align: left; }
  .picker select { min-width: 0; width: 100%; }
  .picker label { flex: 1 1 100%; }
}
.refund-note { margin-top: 14px; color: var(--muted); font-size: .95rem; }
.small-note { margin-top: 10px; font-size: .9rem; color: var(--muted); }
.muted { color: var(--muted); font-weight: 400; }

/* ---------- Floating support button ---------- */
.help-widget { position: fixed; right: 18px; bottom: 18px; z-index: 20; }
.help-widget summary {
  list-style: none; cursor: pointer; font: 700 1rem/1 var(--pixel);
  background: var(--green); color: #10210a; padding: 13px 18px;
  box-shadow: inset 0 -4px 0 var(--green-dark), 4px 4px 0 #000;
}
.help-widget summary::-webkit-details-marker { display: none; }
.help-widget[open] summary { background: var(--bg-2); color: var(--text); box-shadow: inset 0 0 0 2px var(--green), 4px 4px 0 #000; }
.help-widget[open] summary::before { content: "\00D7  "; }
.help-panel {
  position: absolute; right: 0; bottom: 58px; width: min(320px, calc(100vw - 36px));
  background: var(--bg-2); border: 2px solid var(--line); box-shadow: 6px 6px 0 #000; padding: 14px;
}
.help-title { font: 700 1.1rem var(--pixel); margin-bottom: 8px; }
.help-panel a { display: block; padding: 10px; text-decoration: none; color: var(--text); border-top: 1px solid var(--line); }
.help-panel a:hover { background: var(--bg); }
.help-panel a span { display: block; color: var(--muted); font-size: .88rem; }

/* ---------- Support page ---------- */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.support-box { border: 2px solid var(--line); background: var(--bg-2); padding: 24px; }
.support-box h2 { margin-bottom: 8px; }
.chat-log { height: 300px; overflow-y: auto; margin: 16px 0 12px; padding: 10px; background: var(--bg); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 85%; padding: 8px 12px; font-size: .95rem; white-space: pre-wrap; }
.msg.bot { background: var(--bg-2); border-left: 3px solid var(--green); align-self: flex-start; }
.msg.you { background: #243322; align-self: flex-end; }
.msg.wait { color: var(--muted); font-style: italic; }
.chat-form { display: flex; gap: 8px; }
.chat-form input, .contact-form input, .contact-form select, .contact-form textarea {
  flex: 1; width: 100%; font: 1rem var(--body); color: var(--text); background: var(--bg);
  border: 2px solid var(--line); padding: 10px; border-radius: 0;
}
.chat-form input:focus, .contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--green); }
.contact-form { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; color: var(--muted); }
.contact-form .btn { align-self: flex-start; cursor: pointer; }
.form-status { min-height: 1.4em; }
.hp { position: absolute; left: -9999px; }
.other-help { margin-top: 50px; }
.other-help ul { margin: 14px 0 0 20px; color: var(--muted); }
.other-help li { margin-bottom: 8px; }
@media (max-width: 820px) { .support-grid { grid-template-columns: 1fr; } }

/* ---------- 7-plan grid + new tier colours ---------- */
.plans { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2px; background: var(--line); }
.plan, .plan + .plan { border: 0; background: var(--bg); }
.plan.picked { background: var(--bg-2); }
.ore.wood { background: #9c7444; box-shadow: inset 0 6px 0 #6b4f2e, inset 0 -6px 0 #6b4f2e; }
.ore.iron { background: var(--stone); box-shadow: inset 6px 6px 0 #e3c6a6, inset -6px -6px 0 #e3c6a6; }
.ore.emerald { background: var(--stone); box-shadow: inset 6px 6px 0 #2fd07a, inset -6px -6px 0 #2fd07a; }
.ore.netherite { background: #3b3336; box-shadow: inset 6px 6px 0 #5a4e52, inset -6px -6px 0 #6e5f63; }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }
