/* The public landing page (index.html). Its own small stylesheet, so it
   loads fast and stays separate from the app (css/app.css). */

/* Colors come from css/tokens.css (the brand theme). The short names are
   kept for the rules below. */
:root {
  --bg: var(--tq-bg);
  --panel: var(--tq-panel);
  --line: var(--tq-line);
  --text: var(--tq-text);
  --muted: var(--tq-muted);
  --accent: var(--tq-accent);
  --on-accent: var(--tq-on-accent);
  --gold: var(--tq-brand-gold);
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    16px/1.6 Inter,
    system-ui,
    sans-serif;
}
a {
  color: inherit;
}
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
/* Cinzel is for the wordmark and the home page's headline only; every
   other heading is Inter (docs/DESIGN.md). */
.brand span,
#hero-title {
  font-family: var(--tq-font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
}
h1,
h2,
h3 {
  font-weight: var(--tq-weight-strong);
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 10;
  padding: 8px 12px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 8px;
}

/* Top bar ------------------------------------------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 19px;
  color: var(--accent);
}
.nav nav {
  display: flex;
  gap: 22px;
  flex: 1;
}
.nav nav a,
.link {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}
.nav nav a:hover,
.link:hover {
  color: var(--text);
  text-decoration: underline;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}
.cta:hover {
  filter: brightness(1.08);
}
.cta.small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 15px;
}

/* Opening section ----------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(82vh, 720px);
  display: flex;
  align-items: flex-end;
  padding: clamp(24px, 6vw, 72px) clamp(16px, 4vw, 40px);
  overflow: hidden;
}
.hero-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.river {
  fill: none;
  stroke: #1d4a55;
  stroke-width: 26;
  stroke-linecap: round;
}
.road {
  fill: none;
  stroke: #2a4c55;
  stroke-width: 7;
  stroke-linecap: round;
}
.road.thin {
  stroke-width: 4;
}
.blocks rect {
  fill: #183239;
  stroke: #2a4c55;
}
.pin circle {
  fill: transparent;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 4 4;
}
.pin text {
  fill: var(--accent);
  font:
    600 15px Inter,
    sans-serif;
  text-anchor: middle;
}
/* Each pin lights up in turn, stays lit, and the loop starts over. */
.pin {
  animation: discover 16s calc(var(--n) * 1.6s) infinite both;
}
@keyframes discover {
  0%,
  4% {
    opacity: 0.45;
  }
  6% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0.45;
  }
}
.pin circle {
  animation: fill-pin 16s calc(var(--n) * 1.6s) infinite both;
}
.pin.gold circle {
  stroke: var(--gold);
}
.pin.gold text {
  fill: var(--gold);
}
@keyframes fill-pin {
  0%,
  5% {
    fill: transparent;
    stroke-dasharray: 4 4;
  }
  6%,
  90% {
    fill: #7fd6c233;
    stroke-dasharray: none;
  }
  100% {
    fill: transparent;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pin,
  .pin circle {
    animation: none;
    opacity: 1;
  }
}
.hero-card {
  position: relative;
  max-width: 560px;
  padding: clamp(20px, 3vw, 32px);
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px #0008;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1.12;
}
.lead {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 17px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
.fine {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* Sections ------------------------------------------------------------------ */
main > section:not(.hero) {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 88px) clamp(16px, 4vw, 40px) 0;
}
h2 {
  margin: 0 0 24px;
  font-size: clamp(24px, 3vw, 32px);
}
h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.feature-grid,
.plan-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.plan-list li + li {
  margin-top: 4px;
}
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}
.feature-grid article,
.price-grid article,
.steps li {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.feature-grid p,
.price-grid p,
.steps p {
  margin: 0;
  color: var(--muted);
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}
.price {
  margin: 0 0 8px !important;
  color: var(--text) !important;
  font-size: 26px;
  font-weight: 600;
  /* "$10 a month" stays on one line. */
  white-space: nowrap;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  min-height: 56px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
  font-size: 17px;
}
.faq details p {
  margin: 0 0 18px;
  color: var(--muted);
}
.closing {
  text-align: center;
  padding-bottom: clamp(48px, 8vw, 88px) !important;
}

/* Footer -------------------------------------------------------------------- */
.footer {
  margin-top: 56px;
  padding: 36px clamp(16px, 4vw, 40px) 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}
.footer h2 {
  margin: 0 0 8px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
.footer nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer nav a {
  color: var(--muted);
  text-decoration: none;
}
.footer nav a:hover {
  color: var(--text);
  text-decoration: underline;
}
.footer .brand {
  font-size: 16px;
}
.footer > .fine {
  max-width: 760px;
  margin: 0 0 6px;
}
.socials {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.soon {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.nav nav a[aria-current='page'] {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 6px;
}
.cart-count {
  color: var(--accent);
}

/* Simple pages (features, pricing, help, legal) ----------------------------- */
.page {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 64px) clamp(16px, 4vw, 40px) 0;
}
.page h1 {
  font-size: clamp(28px, 4vw, 40px);
}
.page h2 {
  margin-top: 36px;
  font-size: 22px;
}
.page p,
.page li {
  color: var(--muted);
}
.page .notice {
  padding: 12px 16px;
  border: 1px solid var(--gold);
  border-radius: 12px;
  color: var(--text);
}
.form {
  display: grid;
  gap: 14px;
  max-width: 620px;
}
.form label {
  display: grid;
  gap: 6px;
  font-weight: 500;
}
.form input,
.form textarea,
.form select {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font: inherit;
}
.form textarea {
  min-height: 140px;
}
.form button {
  justify-self: start;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}
.status {
  min-height: 1.6em;
  color: var(--accent);
}

/* Marketplace ---------------------------------------------------------------- */
.market-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}
.preview-note {
  margin: 0 0 20px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}
.filters button,
.chip-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.filters button[aria-pressed='true'] {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}
.market-search {
  min-height: 40px;
  min-width: 240px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font: inherit;
}
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.product {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel);
}
.cover {
  position: relative;
  height: 150px;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  color: #fff;
}
.cover .kind {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  background: #0009;
}
.product-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  padding: 14px;
}
.product-body h3 {
  margin: 0;
  font-size: 17px;
}
.product-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.product-meta {
  margin-top: auto !important;
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.product-price {
  color: var(--text) !important;
  font-weight: 600;
  font-size: 16px !important;
}
.product-actions {
  display: flex;
  gap: 8px;
  padding: 0 14px 14px;
}
.product-actions button {
  flex: 1;
}
.chip-button[aria-pressed='true'] {
  border-color: var(--gold);
  color: var(--gold);
}
.chip-button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}
.chip-button:focus-visible,
.filters button:focus-visible,
.market-search:focus-visible,
.form :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
dialog.sheet {
  width: min(560px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  color: var(--text);
}
dialog.sheet::backdrop {
  background: #000a;
}
.sheet-body {
  padding: 20px 22px 22px;
}
.sheet-body h2 {
  margin: 0 0 8px;
}
.sheet-body p,
.sheet-body li {
  color: var(--muted);
}
.sheet-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.sheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  /* Phones: the page links move to their own scrolling row. */
  .nav {
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .nav nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    gap: 18px;
  }
  .cart-link {
    display: none;
  }
  .nav {
    justify-content: space-between;
  }
  .hero {
    min-height: 0;
    padding-top: 220px;
  }
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* Sign-in and account pages (signin.html, account.html) ---------------------- */
.auth-page {
  display: grid;
  justify-items: center;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.auth-card h1 {
  margin-top: 0;
  font-size: 1.6rem;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.auth-tabs button {
  padding: 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
.auth-tabs button[aria-selected='true'] {
  background: var(--bg);
  color: var(--text);
  font-weight: 600;
}
.auth-providers {
  display: grid;
  gap: 10px;
}
.auth-provider {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.auth-provider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.auth-logo {
  flex: none;
}
.auth-provider.google {
  background: #fff;
  border-color: #747775;
  color: #1f1f1f;
}
.auth-provider.discord {
  background: #5865f2;
  border-color: #5865f2;
  color: #fff;
}
.auth-provider.twitch {
  background: #9146ff;
  border-color: #9146ff;
  color: #fff;
}
.auth-provider:hover {
  filter: brightness(0.95);
}
.auth-provider:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.auth-soon {
  color: var(--muted);
  font-size: 0.85em;
  font-weight: 400;
}
.auth-or {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 0.9em;
}
.auth-or::before,
.auth-or::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--line);
}
.auth-form {
  max-width: none;
}
.auth-form input {
  width: 100%;
}
.auth-label-row {
  display: flex;
  justify-content: space-between;
}
.auth-rule {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 0.9em;
}
.auth-check {
  display: flex !important;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400 !important;
}
.auth-check input {
  min-height: auto;
  margin-top: 4px;
}
.auth-form button[type='submit'] {
  justify-self: stretch;
}
button.link {
  border: 0;
  padding: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.auth-status {
  min-height: 1.4em;
  margin: 14px 0 0;
  color: #ffb4a8;
}
.auth-status.good {
  color: var(--accent);
}
.account-page {
  max-width: 640px;
}
.account-section {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.account-section h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}
.account-row {
  display: flex;
  gap: 10px;
  max-width: none;
}
.account-row input {
  flex: 1;
}
.account-methods {
  margin: 0;
  padding-left: 20px;
}
.badge {
  margin-left: 6px;
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.85em;
}
.cta.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

/* Account page: the danger zone at the very bottom (docs/DESIGN.md). */
.danger-zone {
  margin-top: var(--tq-space-7);
  border: 1px solid var(--tq-danger);
  border-radius: var(--tq-radius-md);
}
.danger-zone > summary {
  padding: var(--tq-space-3) var(--tq-space-4);
  color: var(--tq-danger);
  font-weight: var(--tq-weight-strong);
  cursor: pointer;
}
.danger-zone > div {
  padding: 0 var(--tq-space-4) var(--tq-space-4);
}
.danger-zone form {
  display: grid;
  gap: var(--tq-space-3);
}
.cta.danger {
  background: transparent;
  border: 1px solid var(--tq-danger);
  color: var(--tq-danger);
}

/* The not-found page (404.html). */
.not-found ul {
  display: grid;
  gap: var(--tq-space-2);
  margin: var(--tq-space-4) 0 var(--tq-space-6);
}

/* Pricing: the sale. The regular price is crossed out, the sale price
   beside it in the accent colour. */
main > section.sale-banner {
  margin: var(--tq-space-4) 0 var(--tq-space-5);
  padding: var(--tq-space-4) var(--tq-space-5);
  border: 1px solid var(--accent);
  border-radius: var(--tq-radius-md);
  background: var(--tq-accent-soft);
}
.page .sale-banner h2 {
  margin-top: 0;
  margin-bottom: var(--tq-space-2);
  font-size: var(--tq-text-lg);
}
.sale-banner p {
  margin: 0;
}
.price-grid .on-sale {
  border-color: var(--accent);
}
/* The crossed-out price sits on its own line above the sale price. */
.price .was {
  display: block;
}
.sale-tag {
  margin: 0 0 var(--tq-space-2) !important;
  color: var(--accent) !important;
  font-size: var(--tq-text-xs);
  font-weight: var(--tq-weight-strong);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.was {
  color: var(--muted);
  margin-right: 4px;
  font-size: 0.7em;
  font-weight: var(--tq-weight);
}
.now {
  color: var(--accent);
}

/* Pricing: founders and players notes under the cards. */
.founders,
.players-note {
  margin-top: var(--tq-space-6);
  max-width: 720px;
}
.credit-packs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tq-space-3);
}
.auth-news {
  margin-top: var(--tq-space-3);
}
