@import url("./brand-logo-motion.css");

/* Site-wide footer — centered logo, tagline, claim strip, mono nav, legal row */

.site-foot {
  --site-foot-accent: #2dd4bf;
  --site-foot-accent-strong: #14b8a6;
  position: relative;
  flex-shrink: 0;
  margin-top: auto;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-foot__shell {
  width: 100%;
  max-width: min(80rem, 100%);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}

.site-foot__cluster {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.75rem 0 2.5rem;
}

.site-foot__brand {
  display: inline-flex;
  flex-shrink: 0;
  opacity: 0.9;
  transition: opacity 0.15s ease;
  text-decoration: none;
}

.site-foot__brand:hover {
  opacity: 1;
}

.site-foot__brand-img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.site-foot__tagline {
  margin: 1.35rem 0 0;
  max-width: 22rem;
  text-align: center;
  font-size: 0.9375rem;
  line-height: 1.5;
  letter-spacing: -0.015em;
  font-weight: 400;
  color: rgba(161, 161, 170, 0.92);
}

.site-foot__claim {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  margin-top: 2rem;
  width: 100%;
  max-width: 22rem;
  padding: 0.375rem;
  padding-left: 0.5rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-sizing: border-box;
}

.site-foot__claim-prefix {
  flex-shrink: 0;
  padding-left: 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #d4d4d4;
  white-space: nowrap;
}

.site-foot__claim-field {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.site-foot__claim-input {
  width: 100%;
  margin: 0;
  padding: 0.35rem 0.25rem;
  border: 0;
  background: transparent;
  color: #fafafa;
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
}

.site-foot__claim-input::placeholder {
  color: rgba(161, 161, 170, 0.85);
}

.site-foot__claim-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #0c0a0b;
  background: linear-gradient(145deg, var(--site-foot-accent), var(--site-foot-accent-strong));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 2px 12px rgba(13, 148, 136, 0.28);
  transition:
    filter 0.15s ease,
    transform 0.15s ease;
}

.site-foot__claim-btn:hover {
  filter: brightness(1.06);
}

.site-foot__claim-btn:active {
  transform: translateY(1px);
}

.site-foot__mid-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.65rem;
  margin-top: 2.25rem;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-foot__mid-link {
  color: rgba(228, 228, 231, 0.82);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.site-foot__mid-link:hover {
  color: #fafafa;
}

.site-foot__mid-sep {
  color: rgba(148, 163, 184, 0.42);
  font-weight: 600;
  letter-spacing: 0.04em;
  user-select: none;
}

.site-foot__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.1rem 0 1.35rem;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.site-foot__legal-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-foot__copyright {
  margin: 0;
  text-transform: none;
  color: rgba(161, 161, 170, 0.72);
}

.site-foot__link {
  color: rgba(161, 161, 170, 0.78);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.site-foot__link:hover {
  color: #fafafa;
}

.site-foot__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 768px) {
  .site-foot__bottom {
    flex-direction: row-reverse;
    align-items: center;
  }

  .site-foot__copyright {
    margin-top: 0;
  }
}

/* Marketing: align with header / body typography and rose line */
.marketing-skin .site-foot {
  border-top-color: var(--ix-line);
}

.marketing-skin .site-foot__tagline {
  color: var(--ix-mute);
}

.marketing-skin .site-foot__mid-link {
  color: rgba(228, 228, 231, 0.78);
}

.marketing-skin .site-foot__mid-link:hover {
  color: var(--ix-paper, #fafafa);
}

.marketing-skin .site-foot__mid-sep {
  color: rgba(255, 255, 255, 0.22);
}

.marketing-skin .site-foot__bottom {
  border-top-color: var(--ix-line);
}

.marketing-skin .site-foot__copyright {
  color: rgba(163, 163, 163, 0.85);
}

.marketing-skin .site-foot__link {
  color: rgba(163, 163, 163, 0.88);
}

.marketing-skin .site-foot__link:hover {
  color: var(--ix-link-hover);
}

.marketing-skin .site-foot__claim {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 10, 0.55);
}

.marketing-skin .site-foot__claim-prefix {
  color: #d4d4d4;
}

.marketing-skin .site-foot__claim-btn {
  background: linear-gradient(145deg, var(--site-foot-accent), var(--site-foot-accent-strong));
}

/* Auth pages */
.auth-body .site-foot {
  margin-top: 2rem;
  padding-bottom: 1.5rem;
}

/* Dashboard: footer below scroll area */
.dash-content .site-foot,
.dash-panel .site-foot {
  margin-top: 2.5rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  --max: none;
}

/* Public profiles + 404: footer full-width bar */
.public-page:not(.public-page--embed) .site-foot {
  margin-top: 2rem;
  margin-bottom: 0;
  --max: none;
  width: 100%;
  box-sizing: border-box;
}

.public-page--error .public-shell .site-foot {
  margin-top: auto;
  --max: 32rem;
  align-self: stretch;
  max-width: none;
}

.public-page--error .public-shell > main {
  flex: 1;
}

/* Terms of service document */
.terms-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.terms-page .auth-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.terms-page .auth-container {
  flex: 1;
}
.terms-doc {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 0 2rem;
  color: var(--ink-paper, #e4e4e7);
  font-size: 0.92rem;
  line-height: 1.65;
}
.terms-doc h1 {
  font-family: var(--display, "Syne", sans-serif);
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  color: #fafafa;
}
.terms-doc p {
  margin: 0.75rem 0;
  color: #c4c4c8;
}
.terms-doc h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
  color: #e4e4e7;
}
.terms-lead {
  font-size: 0.9rem;
  color: #a1a1aa;
  margin: 0 0 1.25rem;
}

/* Marketing header: full-bleed bar, don’t squish LOG IN / START / Discord */
.site-top {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  left: 0;
  right: 0;
}
.site-top__inner {
  min-width: 0;
}
@media (min-width: 900px) {
  .site-top__end {
    flex-wrap: nowrap;
  }
}
.site-top .mark,
.site-top .actions,
.site-top__end {
  flex-shrink: 0;
}
.site-top .actions .btn,
.site-top__end .actions .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Marketing nav: legacy underline style only when not using marketing-skin (pink pill nav) */
body:not(.marketing-skin) .site-top .nav {
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  row-gap: 0.4rem;
  column-gap: 0.65rem;
}
body:not(.marketing-skin) .site-top .nav a.nav__link {
  display: inline;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  color: #9ca3af;
  color: var(--mute, #9ca3af);
  border: none;
  border-radius: 0;
  background: none;
  transition: color 0.2s, text-decoration-color 0.2s;
}
body:not(.marketing-skin) .site-top .nav a.nav__link:hover {
  color: #e5e5e5;
  color: var(--link-hover, #e5e5e5);
  text-decoration-color: rgba(255, 255, 255, 0.55);
}
body:not(.marketing-skin) .site-top .nav a.nav__link[aria-current="page"] {
  color: #f4f4f5;
  color: var(--paper, #f4f4f5);
  text-decoration-color: #fafafa;
  text-decoration-thickness: 2px;
  pointer-events: none;
}

.site-top .site-top__end {
  align-items: center;
}
.site-top .site-top__end > .actions,
.site-top .site-top__lead > .site-discord,
.site-top .site-top__end > .site-cart,
.site-top .site-top__end > .burger {
  align-self: center;
}

/* Mobile drawer section links as bordered controls (not bare text) */
.site-top .drawer a.drawer__nav {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: calc(100% - 1.7rem);
  margin: 0.35rem 0.85rem 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--btn-radius, 0.5rem);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: #9ca3af;
  color: var(--mute, #9ca3af);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.site-top .drawer a.drawer__nav:first-of-type {
  margin-top: 0.65rem;
}
.site-top .drawer a.drawer__nav:hover {
  color: #e5e5e5;
  color: var(--link-hover, #e5e5e5);
  border-color: rgba(255, 255, 255, 0.22);
}
.site-top .drawer a.drawer__nav[aria-current="page"] {
  color: #f4f4f5;
  color: var(--paper, #f4f4f5);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

/* Mobile hamburger menu: space below last actions (Log in / Start) and home indicator */
@media (max-width: 899px) {
  .site-top .drawer {
    box-sizing: border-box;
    padding-bottom: max(1.75rem, calc(env(safe-area-inset-bottom, 0px) + 1.15rem));
  }
  /* Section links (drawer__nav) use margin; CTAs are full-bleed a.btn and only had 1px border — add real vertical rhythm */
  .site-top .drawer > a.btn.btn-discord {
    margin-top: 0.75rem;
  }
  .site-top .drawer > a.btn + a.btn,
  .site-top .drawer > a.btn + .btn-start-wrap {
    margin-top: 0.6rem;
  }
  .site-top .drawer > .btn-start-wrap {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 0.85rem;
  }
  .site-top .drawer > .btn-start-wrap .btn.btn-fill {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
  }
}

/* Start CTA when registration is closed */
.btn-start-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  vertical-align: middle;
}
.btn-start-wrap .btn.btn-fill {
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.9;
}
.btn-start-soon {
  position: absolute;
  top: -0.4rem;
  right: -0.15rem;
  z-index: 2;
  padding: 0.12rem 0.38rem;
  font-size: 0.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(140deg, #5eead4, #0f766e 90%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.25rem;
  transform: rotate(10deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  pointer-events: none;
}
.btn-start-wrap--block {
  display: flex;
  max-width: 100%;
  box-sizing: border-box;
}
.btn-start-wrap--block .btn {
  flex: 1;
  justify-content: center;
  text-align: center;
}
.btn-start-wrap--block .btn-start-soon {
  right: 0.35rem;
  top: -0.5rem;
}
.btn-start-wrap--block .btn.btn-fill {
  opacity: 0.9;
}
