/* ==========================================================================
   Pixelands — pixelands.com
   One stylesheet for the whole site. No build step, no framework, no CDN.
   Every colour is a custom property so the palette can be retuned in one place.
   ========================================================================== */

:root {
  --bg:        #14131f;
  --bg-2:      #1b1a2d;   /* the navy from the logo banner */
  --bg-3:      #24233a;
  --bg-4:      #2e2c48;
  --border:    #34314f;
  --text:      #ecebf5;
  --dim:       #9b98b8;
  --dimmer:    #6f6c8c;
  --accent:    #ffc94a;   /* gold — primary CTA */
  --accent-dk: #d9a422;
  --green:     #52d67a;
  --red:       #f2555a;
  --blue:      #6aa9ff;

  --maxw:      1120px;
  --readw:     760px;     /* measure for long-form legal text */
  --radius:    12px;
  --radius-sm: 8px;

  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }
code {
  font-family: var(--mono);
  font-size: .88em;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: .12em .38em;
}

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #1b1a2d; padding: 10px 16px; font-weight: 700;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 19, 31, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-head .wrap {
  display: flex; align-items: center; gap: 28px;
  min-height: 66px;
}
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 26px; width: auto; }
.nav { display: flex; gap: 22px; align-items: center; margin-left: auto; flex-wrap: wrap; }
.nav a {
  color: var(--dim); font-size: 15px; font-weight: 600; text-decoration: none;
  white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700; font-size: 16px;
  border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform .1s ease, background .15s ease, border-color .15s ease;
  font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: #1b1a2d; }
.btn-primary:hover { background: #ffd76e; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-3); border-color: var(--bg-4); }
.btn[aria-disabled="true"] {
  opacity: .5; cursor: not-allowed; pointer-events: none;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("../img/hero.png") center 38% / cover no-repeat;
  image-rendering: pixelated;
  transform: scale(1.04);
}
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(20,19,31,.72) 0%, rgba(20,19,31,.80) 45%, var(--bg) 100%),
    linear-gradient(to right, rgba(20,19,31,.85) 0%, rgba(20,19,31,.35) 65%);
}
.hero-inner {
  position: relative;
  padding: 96px 0 104px;
  max-width: 700px;
}
.hero-logo { height: 74px; width: auto; margin-bottom: 26px; }
.hero p.lead {
  font-size: 21px; color: #dedbee; margin-bottom: 14px; line-height: 1.5;
}
.hero p.sub { font-size: 16px; color: var(--dim); margin-bottom: 30px; max-width: 560px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: 14px; color: var(--dimmer); margin-top: 20px; }

/* ---------- sections ---------- */
.section { padding: 76px 0; }
.section-tight { padding: 52px 0; }
.section h2 {
  font-size: 30px; margin-bottom: 10px;
}
.section .kicker {
  text-transform: uppercase; letter-spacing: .13em; font-size: 12.5px;
  font-weight: 800; color: var(--accent); margin-bottom: 10px;
}
.section .intro { color: var(--dim); max-width: var(--readw); margin-bottom: 42px; }

/* ---------- feature grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--dim); font-size: 15.5px; margin: 0; }
.card .ico {
  width: 38px; height: 38px; margin-bottom: 16px;
  display: grid; place-items: center;
  background: var(--bg-4); border-radius: 9px;
  font-size: 20px; line-height: 1;
}

/* ---------- callout / notice ---------- */
.notice {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--bg-2);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 26px 0;
}
.notice.green { border-left-color: var(--green); }
.notice.red   { border-left-color: var(--red); }
.notice p:last-child { margin-bottom: 0; }
.notice strong { color: var(--text); }

/* ---------- long-form legal pages ---------- */
.page-head {
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  padding: 56px 0 44px;
}
.page-head h1 { font-size: 38px; margin-bottom: 10px; }
.page-head .updated { color: var(--dim); font-size: 15px; margin: 0; }

.doc { padding: 48px 0 88px; }
.doc-inner { max-width: var(--readw); }
.doc h2 {
  font-size: 23px; margin-top: 2.4em; margin-bottom: .6em;
  padding-top: .3em; scroll-margin-top: 90px;
}
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 18px; margin-top: 1.9em; margin-bottom: .5em; scroll-margin-top: 90px; }
.doc ul, .doc ol { margin: 0 0 1.15em; padding-left: 1.35em; }
.doc li { margin-bottom: .5em; }
.doc li::marker { color: var(--dimmer); }
.doc table {
  width: 100%; border-collapse: collapse; margin: 1.2em 0 1.6em; font-size: 15.5px;
}
.doc th, .doc td {
  text-align: left; padding: 11px 13px;
  border: 1px solid var(--border); vertical-align: top;
}
.doc th { background: var(--bg-3); font-weight: 700; }
.doc td { color: var(--dim); }
.doc td:first-child { color: var(--text); font-weight: 600; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* table of contents */
.toc {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 40px;
}
.toc h2 {
  font-size: 12.5px !important; text-transform: uppercase; letter-spacing: .12em;
  color: var(--dim); margin: 0 0 12px !important; padding: 0;
}
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin-bottom: .3em; }
.toc a { color: var(--text); font-size: 15.5px; }

/* ---------- forms ---------- */
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block; font-weight: 700; font-size: 15px; margin-bottom: 7px;
}
.form-row .hint { display: block; font-weight: 400; color: var(--dim); font-size: 13.5px; margin-top: 4px; }
input[type="text"], input[type="email"], textarea, select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px;
}
textarea { min-height: 110px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--dimmer); }
fieldset { border: 0; margin: 0 0 20px; padding: 0; }
fieldset legend { font-weight: 700; font-size: 15px; margin-bottom: 7px; padding: 0; }
.choice { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 9px; }
.choice input { margin-top: 5px; flex: 0 0 auto; }
.choice label { font-weight: 400; font-size: 15.5px; margin: 0; }

/* ---------- steps ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 52px;
  margin-bottom: 26px;
}
.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--bg-4); color: var(--text);
  border-radius: 50%; font-weight: 800; font-size: 15px;
}
.steps h3 { margin-bottom: .3em; font-size: 17px; }
.steps p { color: var(--dim); margin-bottom: 0; font-size: 15.5px; }

/* ---------- faq ---------- */
details.faq {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  margin-bottom: 10px;
  overflow: hidden;
}
details.faq summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; color: var(--accent); font-size: 20px; flex: 0 0 auto; line-height: 1;
}
details.faq[open] summary::after { content: "\2212"; }
details.faq .faq-body { padding: 0 20px 18px; color: var(--dim); font-size: 15.5px; }
details.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- contact strip ---------- */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px;
}
.contact-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
.contact-card h3 { font-size: 16px; margin-bottom: 6px; }
.contact-card p { color: var(--dim); font-size: 15px; margin-bottom: 10px; }
.contact-card a { font-weight: 600; word-break: break-word; }

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 52px 0 40px;
  font-size: 15px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 36px;
  margin-bottom: 40px;
}
.foot-grid h4 {
  font-size: 12.5px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--dim); margin-bottom: 14px; font-weight: 800;
}
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 9px; }
.foot-grid a { color: var(--dim); }
.foot-grid a:hover { color: var(--text); }
.foot-brand img { height: 22px; margin-bottom: 14px; opacity: .9; }
.foot-brand p { color: var(--dimmer); font-size: 14.5px; max-width: 300px; margin: 0; }
.foot-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  color: var(--dimmer); font-size: 14px;
}

/* ---------- utility ---------- */
.center { text-align: center; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.section-alt {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.mb16 { margin-bottom: 16px; }
.foot-bottom--bare { border-top: 0; padding-top: 0; }
.error-main { padding: 110px 0 130px; }
.error-title { font-size: 34px; }
.error-lead { max-width: 460px; margin: 0 auto 30px; }
.btn + .btn { margin-left: 10px; }
.mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--dim); }
.small { font-size: 14.5px; }
.nowrap { white-space: nowrap; }
.mb0 { margin-bottom: 0; }
.mt2 { margin-top: 2rem; }
.badge {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  background: var(--bg-4); color: var(--dim); vertical-align: middle;
}
.badge.soon { background: rgba(255,201,74,.14); color: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .hero-inner { padding: 66px 0 74px; }
  .hero-logo { height: 54px; }
  .hero p.lead { font-size: 19px; }
  .page-head h1 { font-size: 30px; }
  .section { padding: 56px 0; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .site-head .wrap { min-height: 60px; gap: 14px; }
  .nav { gap: 14px; }
  .nav a { font-size: 14px; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .section h2 { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- print (legal pages get printed / attached to store reviews) ---------- */
@media print {
  .site-head, .site-foot, .toc, .skip { display: none; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .page-head { background: none; border: 0; padding: 0 0 12pt; }
  .doc-inner { max-width: none; }
  a { color: #000; text-decoration: underline; }
  .doc th { background: #eee; }
  .doc td, .doc th { border-color: #999; }
  .doc td { color: #000; }
}
