/* Jprints3D links page. Bump ?v= in the HTML after visual edits. */

:root {
  --bg-start: #000000;
  --bg-mid: #021c3f;
  --bg-end: #205480;
  --accent: #00a0f0;
  --logo-blue: #03a1fc;
  --btn: #1769c2;
  --btn-hover: #1a78d6;
  --text: #ffffff;
  --muted: #c8d0d8;
  --vote: #ffed00;
  --vote-text: #111111;
  --radius: 18px;
  --max: 440px;
  --pad: 20px;
  --focus: 0 0 0 2px #000, 0 0 0 4px var(--accent);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-optical-sizing: auto;
  background-color: var(--bg-end);
  background-image:
    radial-gradient(1200px 520px at 50% -80px, rgba(3, 161, 252, 0.18), transparent 62%),
    linear-gradient(180deg, var(--bg-start) 0%, var(--bg-mid) 28%, var(--bg-end) 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  color: var(--text);
  line-height: 1.45;
  position: relative;
}

body::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("assets/noise.png");
  background-repeat: repeat;
  background-size: 128px 128px;
}

main {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.js-required {
  max-width: var(--max);
  margin: 4rem auto;
  padding: 0 var(--pad);
  color: var(--muted);
  text-align: center;
}

.page {
  width: min(100%, calc(var(--max) + var(--pad) * 2));
  margin: 0 auto;
  padding: 2.25rem var(--pad) 3.5rem;
  padding-top: max(2.25rem, env(safe-area-inset-top));
  padding-bottom: max(3.5rem, env(safe-area-inset-bottom));
}

.profile {
  text-align: center;
  margin-bottom: 1.1rem;
}

.avatar {
  width: 112px;
  height: 112px;
  margin: 0 auto 1rem;
  border-radius: 28px;
  object-fit: cover;
  background: #000;
  box-shadow:
    0 0 0 2px rgba(3, 161, 252, 0.35),
    0 10px 28px rgba(0, 0, 0, 0.35);
}

.profile h1 {
  margin: 0;
  font-family: "MuseoModerno", "DM Sans", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.bio {
  margin: 0.55rem auto 0;
  max-width: 22rem;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 400;
  white-space: pre-line;
}

.followers-total {
  margin: 0 0 0.9rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.followers-total strong {
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem 0.4rem;
  margin: 0 0 1.35rem;
}

.social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  width: 50px;
  min-height: 44px;
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.social-icon svg {
  width: 20px;
  height: 20px;
}

.social-count {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.social:hover .social-icon {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.stack > * {
  animation: fade-up 0.45s ease both;
}

.stack > :nth-child(1) { animation-delay: 0.04s; }
.stack > :nth-child(2) { animation-delay: 0.08s; }
.stack > :nth-child(3) { animation-delay: 0.12s; }
.stack > :nth-child(4) { animation-delay: 0.16s; }
.stack > :nth-child(5) { animation-delay: 0.2s; }
.stack > :nth-child(6) { animation-delay: 0.24s; }
.stack > :nth-child(7) { animation-delay: 0.28s; }
.stack > :nth-child(8) { animation-delay: 0.32s; }
.stack > :nth-child(9) { animation-delay: 0.36s; }

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.btn,
.card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  min-height: 56px;
  padding: 0.85rem 1.05rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary {
  background: var(--btn);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(10, 70, 140, 0.28);
}

.btn-primary:hover {
  background: var(--btn-hover);
  transform: translateY(-1px);
}

.btn-quiet {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-quiet:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.btn-icon,
.btn-icon svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  min-width: 0;
}

.btn-label {
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.25;
}

.btn-sub {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.3;
}

.btn-primary .btn-sub {
  color: rgba(255, 255, 255, 0.86);
}

.thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background: #000;
  flex-shrink: 0;
}

/* Wide logo tiles (Creality, Flashforge): logo sits on a tile so it stays readable on the dark card */
.thumb-wide {
  width: 112px;
  height: 44px;
  padding: 7px 9px;
  object-fit: contain;
}

.thumb-light {
  background: #fff;
}

.thumb-dark {
  background: #0b0d12;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.card-vote {
  min-height: 92px;
  padding: 0.7rem 1rem 0.7rem 0.7rem;
  background: var(--vote);
  color: var(--vote-text);
  box-shadow:
    0 0 0 1px rgba(255, 237, 0, 0.25),
    0 10px 30px rgba(255, 237, 0, 0.2);
}

.card-vote:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(255, 237, 0, 0.4),
    0 12px 32px rgba(255, 237, 0, 0.28);
}

.card-vote img {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: #000;
}

.card-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.card-title {
  font-family: "MuseoModerno", "DM Sans", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.card-sub {
  font-size: 0.78rem;
  font-weight: 500;
  color: #2a2a2a;
  line-height: 1.35;
}

.card-short {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.55rem 1rem 0.55rem 0.55rem;
}

.card-short img {
  width: 96px;
  height: 54px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  background: #000;
}

.link-row {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
}

.link-row .btn {
  flex: 1;
  min-width: 0;
}

.code-btn {
  flex-shrink: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
  min-width: 6.4rem;
  min-height: 44px;
  padding: 0.4rem 0.65rem;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-size: 0.72rem;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.code-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.5);
}

.code-value {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.code-state {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.code-btn.copied {
  border-style: solid;
  border-color: var(--accent);
}

.section {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0.45rem;
}

.section h2 {
  margin: 0.55rem 0 0.05rem;
  font-family: "MuseoModerno", "DM Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.product {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.6rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  color: inherit;
  min-height: 44px;
  transition: background 0.18s ease, transform 0.18s ease;
}

.product:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.product img,
.product-placeholder {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.35);
}

.product-name {
  font-weight: 600;
  font-size: 0.86rem;
  line-height: 1.3;
}

.product-price {
  color: var(--muted);
  font-size: 0.82rem;
}

/* Levelwise card: brand kit colors apply to this card only */
.levelwise-card {
  --lw-bg: #0b0d12;
  --lw-surface: #151922;
  --lw-accent: #2dd4bf;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.9rem;
  padding: 1.3rem 1rem 1.1rem;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--lw-surface) 0%, var(--lw-bg) 70%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

.levelwise-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    #22c55e 0 20%,
    #2dd4bf 20% 40%,
    #a855f7 40% 60%,
    #f97316 60% 80%,
    #eab308 80% 100%
  );
}

.lw-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-align: center;
  text-decoration: none;
  color: #fff;
  border-radius: 12px;
  transition: transform 0.18s ease;
}

a.lw-link:hover {
  transform: translateY(-1px);
}

.lw-eyebrow {
  color: var(--lw-accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lw-logo {
  width: min(220px, 70%);
  height: auto;
}

.lw-name {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.lw-sub {
  color: var(--muted);
  font-size: 0.82rem;
}

.app-store {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  border-radius: 8px;
  text-decoration: none;
}

.app-store img {
  height: 40px;
  width: auto;
}

.footer {
  margin-top: 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.footer p {
  margin: 0.4rem 0;
}

.footer a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.footer a:hover {
  border-bottom-color: var(--accent);
}

.page-kit .kit-intro,
.page-kit .kit-block {
  color: var(--muted);
  font-size: 0.98rem;
}

.page-kit .kit-intro {
  margin: 0 0 1.4rem;
  text-align: center;
}

.page-kit .kit-block {
  margin: 0 0 1.4rem;
}

.page-kit h2 {
  margin: 0 0 0.4rem;
  font-family: "MuseoModerno", "DM Sans", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.kit-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.kit-list li {
  margin: 0.3rem 0;
}

.kit-list a,
.page-kit a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.kit-list a:hover,
.page-kit a:hover {
  border-bottom-color: var(--accent);
}

.page-error {
  text-align: center;
  padding-top: 4rem;
}

.page-error h1 {
  font-family: "MuseoModerno", "DM Sans", sans-serif;
  font-size: 1.6rem;
  margin: 0 0 0.6rem;
}

.page-error p {
  color: var(--muted);
}

.sr-live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .stack > *,
  .btn,
  .card,
  .social,
  .product,
  .code-btn {
    animation: none !important;
    transition: none !important;
  }
}
